IP Default Gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2013 11:47 PM - edited 03-07-2019 03:17 PM
SW1 is connected to the router is a layer 3 switch and is doing intervlan routing. SW2 is a layer 2 switch and is conneted to SW1 via trunk link. SW3 is a layer 2 switch and connected to S2 via trunk link. Will SW2 and SW3 ip default gateway be 10.0.0.1?
Router:
G0/1 <--Switch-->
ip address 10.0.0.1 255.255.255.252
-------------------------------------------
SW1:
Fa0/48 <--Router-->
ip address 10.0.0.2 255.255.255.252
VLAN99 <--Management-->
ip address 10.0.99.1 255.255.255.0
VLAN100 <--Servers-->
ip address 10.0.100.1 255.255.255.0
VLAN200 <--Users-->
ip address 10.0.200.1 255.255.255.0
-------------------------------------------
SW2:
ip default gateway 10.0.0.1
VLAN99 <--Management-->
ip address 10.0.99.2 255.255.255.0
------------------------------------------
SW3:
ip default gateway 10.0.0.1
VLAN99<--Management-->
ip address 10.0.99.3 255.255.255.0
- Labels:
-
Other Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2013 11:48 PM
Sorry, i meant to say this.
If I have a router and three switches (SW1, SW2, SW3) and all three of these switches are dasiy chained. SW1 is connected to the router is a layer 3 switch and is doing intervlan routing. SW2 is a layer 2 switch and is conneted to SW1 via trunk link. SW3 is a layer 2 switch and connected to S2 via trunk link. Will SW2 and SW3 ip default gateway be 10.0.0.1?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2013 03:17 AM
Dear shimabuku
Your default gateway must be configured as 10.0.99.1 on your switch 2 & Switch 3 .
If you want to ping or manage both Sw2 & Sw3 from your router you need to have reverse route on router pointing to 10.0.0.2/30 either statically or dynamically .
HTH
Santhosh Saravanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2018 09:50 AM - edited 03-12-2018 06:44 PM
@shimabuku wrote:
Sorry, i meant to say this.
If I have a router and three switches (SW1, SW2, SW3) and all three of these switches are dasiy chained. SW1 is connected to the router is a layer 3 switch and is doing intervlan routing. SW2 is a layer 2 switch and is conneted to SW1 via trunk link. SW3 is a layer 2 switch and connected to S2 via trunk link. Will SW2 and SW3 ip default gateway be 10.0.0.1?
Well if the SW1 is connected to the router is in layer 3 then The default gateway for SW1 and SW3 is most probably 10.0.0.1. More Info here: https://10-0-0-0-1.org/10-0-0-1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2018 10:13 AM - edited 03-12-2018 10:14 AM
If SW 1 is operating as a layer 3 switch then it would have a default route and probably not configure ip default-gateway (of course SW 1 could configure ip default-gateway but it would not be used while the switch is in layer 3 mode). The original poster was clear that the SVI in SW 3 is in vlan 99. Therefore the default gateway for SW 3 needs to be an IP in the subnet of vlan 99 and not 10.0.0.1.
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 04:11 PM
Not necessarily. You can also use 10.0.1.1 for logging into your router. basically 10.0.1.1 is used by apple airport routers and belkin routers. If your router also uses the same then click here to read how to login 10.0.1.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2018 01:21 AM - edited 08-24-2018 01:23 AM
Hello
SW2/3 will have a D/G of the whatever management SVI ip address is configured on SW1 .
example:
Sw1
int vlan x
description MGT vlan for switches
ip address 10.0.0.1 255.255.255.0
Sw2/3 with have a D/G of 10.0.0.1
or
Sw1
int vlan x
description MGT vlan for switches
ip address 20.0.0.1 255.255.255.0
Sw2/3 with have a D/G of 20.0.0.1
etc...
Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.
Kind Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2013 12:00 AM
All the three switches have in common is the Management-Vlan but not the 10.0.0.0/30 subnet. So the default-gateway for the L2-switches will be the Mgmt-IP-address of the L3-switch which is 10.0.99.1.
Sent from Cisco Technical Support iPad App

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2018 05:46 AM
You management VLAN for SW2 and SW3 is in the 10.0.99.x subnet so the default gateway should be 10.0.99.1(SVI99 on SW1) the same as if you would configure a computer. Always default gateway in the same network as you ip address.
