router on a stick
hodgey87
Member Posts: 232
in CCNA & CCENT
hi all,
just a quick question about a topology that ive been doing. Ive been doing a router on a stick and just wondering what default gateways i have to use on the switches.
this is the link for the image
i can correctly ping the other pc in vlan 10 from the pc on vlan 20 however i cant ping the switches that are connected to the pcs but it will let me go through them .
addressing is:
PC0 : 192.168.10.10
PC1 : 192.168.20.20
SW0 : 192.168.1.3
SW1 : 192.168.1.4
SW2 : 192.168.1.2
R0 : Subinterface 192.168.10.1
Subinterface 192.168.20.1
What do i need to use as the default gateways on SW0 and SW1
sorry about not explaining it very well its the best i could do
[/code]
just a quick question about a topology that ive been doing. Ive been doing a router on a stick and just wondering what default gateways i have to use on the switches.
this is the link for the image
i can correctly ping the other pc in vlan 10 from the pc on vlan 20 however i cant ping the switches that are connected to the pcs but it will let me go through them .
addressing is:
PC0 : 192.168.10.10
PC1 : 192.168.20.20
SW0 : 192.168.1.3
SW1 : 192.168.1.4
SW2 : 192.168.1.2
R0 : Subinterface 192.168.10.1
Subinterface 192.168.20.1
What do i need to use as the default gateways on SW0 and SW1
sorry about not explaining it very well its the best i could do
[/code]
Comments
-
mwgood Member Posts: 293Put another subinterface for Vlan1 on the router with 192.168.1.1.
That will allow you to route to another subnet - just like you are doing between Vlan 10 and Vlan 20. -
hodgey87 Member Posts: 232thanks for a quick reply, what do I need to do about the default gateways on the switches do I just it blank and not put one
Thanks -
mwgood Member Posts: 293Since you've addressed the switches in the 192.168.1.x subnet, then you would set their gateways to 192.168.1.1 subinterface on the router.