03-25-2022 08:16 AM - edited 03-25-2022 08:27 AM
I want to change the ip default-gateway and MGMT IP/VLAN on a switchstack, and i have a possibly dumb question that I can't find the answer to.
If i change the ip default-gateway on a layer 2 switch that the switch is using for management, will any of the other VLANs be affected? Will devices on other VLANs connected to this switch loose any pings?
The situation is something like this... The switch is using VLAN1 for management with an IP of 10.10.1.40 and gateway 10.10.1.254, but I will move this to 10.10.40.40 and gateway 10.10.40.254.
interface vlan1 shutdown interface vlan40 ip address 10.10.40.40 255.255.255.0 ip default-gateway 10.10.40.254
Does the default gateway in the config only apply to the management VLAN, and all other VLAN's use their own default gateway?
Thanks.
03-25-2022 08:27 AM
If i change the ip default-gateway on a layer 2 switch that the switch is using for management, will any of the other VLANs be affected? Will devices on other VLANs connected to this switch loose any pings?
No since its only used for Layer switch (so other VLAN not going to effected)
But suggest to change using console.
he situation is something like this... The switch is using VLAN1 for management with an IP of 10.10.1.40 and gateway 10.10.1.254, but I will move this to 10.10.40.40 and gateway 10.10.40.254.
Sure this can be cahnged, it required both the side switch vlan 1 IP also gateway side.
Does the default gateway in the config only apply to the management VLAN, and all other VLAN's use their own default gateway?
we use ip default-gateway for Layer switch. so managmeent network is ok
hope this make sense ?
03-25-2022 10:57 AM
Does the default gateway in the config only apply to the management VLAN, and all other VLANs use their own default gateway?
That is correct. In this case, if you change the default gateway's IP, it will only affect the management access to the switch and not the data VLANs. It is important to know that if you are accessing the device remotely via SSH or telnet, once you change the IP, you will lose your connection to the switch. So, if you are planning on doing this, make sure to log on via console first.
HTH
03-26-2022 12:16 PM - edited 03-26-2022 12:17 PM
Hello
@DHGmem wrote:
Does the default gateway in the config only apply to the management VLAN, and all other VLAN's use their own default gateway?
Correct
@DHGmem wrote:
Will devices on other VLANs connected to this switch loose any pings?
No, the D/G on a distrubution/access switch is only for remote mgt of that distrubution/access switch nothing more
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