Monday, November 6, 2017

Making Cisco switch pingable

If you're like me, you went through the initial setup wrong and need to do the following:

 (remember to enable)

Switch# write erase Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK] Erase of nvram: complete Switch# Switch# reload

This will run for a while... a long while

In my case, I wanted to assign an IP to the vlan 1 (why? I don't know, I just did OK?)

Ok, so after that:
switch#config t
switch[config]#interface vlan 1
switch[config-if]#ip address x.x.x.x x.x.x.x
(second set of x.x.x.x for subnet)
switch[config-if]#exit
switch[config]#ip routing
switch[config]#show running-config
(make sure ip routing is listed)
switch[config]#interface vlan 1
switch[config-if]#ip address x.x.x.x x.x.x.x
switch[config-if]#no shutdown
switch[config-if]#exit
switch[config]#exit
switch#write memory
switch#copy running-config startup-config
(hit enter on the save prompt)

now that IP routing is turned on, you won't be able to ping from another subnet... until:

switch#config t
switch[config]#ip route 0.0.0.0 0.0.0.0 (ip of router)

No comments:

Post a Comment

Samsung refrigerator not making ice

How I got my stupid fridge to work again. Normally, I press/hold the blue button till it chimes. Well that didn’t work this time. Darn. I re...