routing vlans

Unanswered Question
Mar 27th, 2007

Hi all, can anyone tell me if I have a layer 3 switch with 5 vlans on say to , they all route between each other on the switch. If I had a router with the ethernet port that plugs in the switch on a address, would I need to put a port on the switch on a vlan in the same subnet as the router to see the router ?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
rolandshum Tue, 03/27/2007 - 18:11

Yes you'd create a VLAN on your switch for the (I'm assuming the /16 was a type) interface on your router to connect to. You can also create a layer 3 interface on your switch on the subnet to talk directly to the router.

carl_townshend Tue, 03/27/2007 - 23:40

I gather I would need a route on my switch to the router, and a route to the switch from the router for the five networks ?

Amit Singh Wed, 03/28/2007 - 01:17


You can either connect to router to a L2 switch port and create an SVI for the vlan6. or Just create a L3 port on the switch with the same range IP and connect the router to it directly.

Yes you need routes on your router to rack all the other 5 vlans. There are 2 ways to it:

1 Run a routing protocol between the router and the L3 switch.

2. Use a deafult route on the switch towards the router and use static reverse routes on the router for all the vlans, like

ip route < mask>

ip route < mask>

ip route < mask>

.... and the same for every vlan.

HTH,Please rate if it does.

-amit singh


This Discussion