ip default-gateway Configuration Command
ip default-gateway CISCO Switch Command in Linux
ip default-gateway command is used to set the default gateway of the switch in privileged mode.
Enter configuration commands, one per line. End with CNTL/Z.
HSCRIPTS(config)#ip default-gateway 192.168.0.1
Run "show running-config" command to know whether the configuration has been modified. Inorder to make this change permanent, run "reload" command to reload the switch.Note:
To make any cofiguration changes, you need to log into 'configure terminal'.