When we talk about cisco switches the "ip routing" and "default-gateway" is two common commands that we use for configure the routing info. But if you didn't use this 2 carefully it can cause some serious routing issues. You cannot use both of this in same time in any switches.
Use of default-gateway
To define a default gateway (router) when IP routing is disabled, use the…