cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2348
Views
0
Helpful
8
Replies

IP Default Gateway

shimabuku
Level 1
Level 1

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

8 Replies 8

shimabuku
Level 1
Level 1

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?

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

HTH Regards Santhosh Saravanan


@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/

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

HTH

Rick

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

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

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

rasmus.elmholt
Level 7
Level 7
Hi

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.

Review Cisco Networking products for a $25 gift card