cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
654
Views
0
Helpful
2
Replies

default gateway on switch change

Amafsha1
Level 2
Level 2

Hello folks,  I'm wondering let's say I have a switch that I can access remotely only.

 

The switch is IP address is configure below:

 

 

switch1# 
! int vlan 6 ip address 192.168.6.5 255.255.255.0 ! !
int vlan 120 ip address 192.168.120.5 255.255.255.0 ! ip route 0.0.0.0 0.0.0.0 192.168.6.1 !

 

 

 

 

So when I want to access the switch I just use the mgmt IP address 192.168.120.5 to do so.  So now let's say VLAN 6 will go away and I have to delete the int vlan 6 from the switch and only use vlan 120 to access the switch.  I also must delete that static route since that gateway of 192.168.6.1 will not exist anymore. How would I do this without losing permanent access to my switch?

 

I know that the ip route command puts me under the default route for a gateway that does not exist anymore and I must point the default route now to 192.168.120.1.  

 

2 Replies 2

luis_cordova
VIP Alumni
VIP Alumni

Hi @Amafsha1 ,

 

I know that the ip route command puts me under the default route for a gateway that does not exist anymore and I must point the default route now to 192.168.120.1.  

 

That's right.

Without more details of your network.

I suggest you see the effect of this and be aware of possible complications.

 

Regards

 

so the default gateway SVI resides at the core router which is trunked to this switch that I'm changing the IP for. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card