This command is usually issued on a switch (L2). It's like when you configure a default gateway for a PC, you'll need to configure a default gateway for the switch also to be able to access it from a remote location. So on a Cisco switch, the command is "ip default-gateway"