02-20-2017 08:11 AM - edited 03-08-2019 09:25 AM
I am currently installing a 4500 switch between a set of servers and a second set of 4500 switches. Sadly the "ip default-gateway" statement is not working, and I failed to realize this prior to shipping the device to the remote site.
My question is: Can I remove the "ip default-gateway x.y.20.254" statement within the following configuration segment and NOT lose connectivity to this switch? <I have added the replacement "ip route 0.0.0.0 0.0.0.0 x.y.20.254" statement already, but am not sure if the vrf functionality is going to create a problem when I remove the "ip default-gateway x.y.20.254" statement>
ip default-gateway x.y.20.254
no ip http server
ip http secure-server
ip route 0.0.0.0 0.0.0.0 x.y.20.254
ip route 192.168.235.0 255.255.255.0 192.168.235.9
ip route 192.168.236.0 255.255.255.0 192.168.236.9
ip route vrf mgmtVrf 0.0.0.0 0.0.0.0 x.y.20.254
ip route vrf mgmtVrf x.y.20.0 255.255.255.0 x.y.20.254
Any help is GREATLY appreciated!
02-20-2017 08:45 AM
Hi,
You vrf configuration implies that you are going to use the out of bang management port to manage the switch. If that is the case, what is important is the vrf config you have applied (ip route vrf mgmtVrf 0.0.0.0 0.0.0.0 x.y.20.254) and so the "ip default-gateway x.y.20.254" will have no effect.
Remember "ip default-gateway x.y.20.254" is a global command and it is used for in band management (usually a vlan) or a none out of band management port. and the vrf command is only useful when you are using the out of band management port.
BDW, you don't need this command
ip route vrf mgmtVrf x.y.20.0 255.255.255.0 x.y.20.254
since you already have a vrf default route.
HTH
02-20-2017 08:49 AM
So I should be able to make my changes and resolve the "Gateway of last resort is not set" issue without effecting the access to the device?
02-20-2017 09:37 AM
As long as you are accessing the device remotely via the out-of-band management port with vrf config noted in the first post, you can make any changes to the device and will not lose connectivity.
HTH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide