MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
September
Sun Mon Tue Wed Thu Fri Sat
22
         
2024
Months
Sep
Nov Dec


Sun, Sep 22, 2024 9:50 pm

Changing the default gateway address on a Cisco switch

For a Cisco network switch, to change the default gateway address, i.e., to specify the IP address of a router that the switch will use, enter privileged EXEC mode with the enable command, then enter configuration mode with the command configure terminal and then set the default gateway address with the command ip default-gateway gatewayIPAddress where gatewayIPAddress is the address for the router you wish the switch to use. Then exit configuration mode with the end command. To make the change permanent, so that it will persist after a reboot of the switch, enter the command write memory.

Switch>enable
Password:
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#ip default-gateway 192.168.1.1
Switch(config)#end
Sep 23 01:26:53.415: %SYS-5-CONFIG_I: Configured from console by console
Switch#write memory
Building configuration...
[OK]
Switch#

You can view the default gateway address with the command show ip default-gateway.

Switch>show ip default-gateway
192.168.1.1
Switch>

[/hardware/network/switch/cisco] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo