ip default-gateway Configuration Command
ip default-gateway CISCO Switch Command in Linux
Explanation
ip default-gateway command is used to set the default gateway of the switch in privileged mode.
Usage:
ip address
Example:
HSCRIPTS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
HSCRIPTS(config)#ip default-gateway 192.168.0.1
HSCRIPTS(config)#exit
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'.