cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
588
Views
0
Helpful
3
Replies

Cisco catalyst 4500 switch - routing statement updates

fergusoj
Level 1
Level 1

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!

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

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

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?

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

Review Cisco Networking for a $25 gift card