09-13-2013 07:54 AM - edited 03-07-2019 03:27 PM
Hi Everyone,
Need to understand the concept below.
Say we have Switch 1 which has SVI Vlan say 10 it has IP 192.168.1.1
Users connect to the Subnet of Vlan 10 which is 192.168.1.x
Is this ok to have default gateway for this vlan 10 on say Router 7201 even though this router has no vlan 10 ?
Is this design ok?
Regards
Mahesh
Solved! Go to Solution.
09-13-2013 08:10 AM
Hi Mahesh,
You need to create a sub-interface on the physical interface of the 7200 router where the switch 1 connects to. And then use the enacpsulation dot1Q 10 representing vlan 10 on the sub-interface. Then assign an IP address in the 192.168.1.0/24 subnet and use this IP as the G/W IP for the Vlan 10 on the LAN side.
On Cisco 7200
interface gi 0/0.10
encapsulation dot1q 10
ip address 192.168.1.11 255.255.255.0
Now the IP 192.168.1.11 can be used as the G/W IP for the vlan 10 on the LAN side.
Hope this helps.
***********Plz do rate this post if you found it helpful*************************
Thanks & Regards,
Vignesh R P
09-13-2013 09:12 AM
Mahesh,
If the switch is L2, you'll need to create a subinterface on the router like Vignesh stated. If it's a L3 switch, you won't have to do that if routing is enabled on the switch, but you will need vlan 10 created on the switch. Then all of your users will use the SVI as their gateway. If you have a L3 switch, the router doesn't need to know about vlan 10 itself, but will need to know how to route to that subnet.
HTH,
John
*** Please rate all useful posts ***
09-13-2013 08:10 AM
Hi Mahesh,
You need to create a sub-interface on the physical interface of the 7200 router where the switch 1 connects to. And then use the enacpsulation dot1Q 10 representing vlan 10 on the sub-interface. Then assign an IP address in the 192.168.1.0/24 subnet and use this IP as the G/W IP for the Vlan 10 on the LAN side.
On Cisco 7200
interface gi 0/0.10
encapsulation dot1q 10
ip address 192.168.1.11 255.255.255.0
Now the IP 192.168.1.11 can be used as the G/W IP for the vlan 10 on the LAN side.
Hope this helps.
***********Plz do rate this post if you found it helpful*************************
Thanks & Regards,
Vignesh R P
09-13-2013 09:12 AM
Mahesh,
If the switch is L2, you'll need to create a subinterface on the router like Vignesh stated. If it's a L3 switch, you won't have to do that if routing is enabled on the switch, but you will need vlan 10 created on the switch. Then all of your users will use the SVI as their gateway. If you have a L3 switch, the router doesn't need to know about vlan 10 itself, but will need to know how to route to that subnet.
HTH,
John
*** Please rate all useful posts ***
09-13-2013 09:51 AM
Hi John,
Thanks for more and clear explanation.
Yes the switch is Layer 3.
Router is learning the route via routing.
Regards
MAhesh
06-17-2020 08:24 AM
You need to configure a sub interface on router and ensure that the configured sub-interface is tagging vlan 10.
Interface GigabitEthernet 0/0.10
Encapsulation dot1q
IP address 192.168.1.x with mask
Ensure that Gigbabitethernet 0/0 is not shutdown. You do not need to assign IP address to Gi-0/0
Hope this helps.
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