Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Default gateway of SVI subnet

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

2 ACCEPTED SOLUTIONS

Accepted Solutions

Default gateway of SVI subnet

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

Default gateway of SVI subnet

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 ***

HTH, John *** Please rate all useful posts ***
3 REPLIES

Default gateway of SVI subnet

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

Default gateway of SVI subnet

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 ***

HTH, John *** Please rate all useful posts ***
New Member

Default gateway of SVI subnet

Hi John,

Thanks for more and clear explanation.

Yes the switch is Layer 3.

Router is learning  the route via routing.

Regards

MAhesh

875
Views
5
Helpful
3
Replies
CreatePlease to create content