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

routing vlans

Hi all, can anyone tell me if I have a layer 3 switch with 5 vlans on say 10.1.1.0/24 to 10.1.5.0/24 , 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 10.1.6.1/16 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 ?

3 REPLIES
Community Member

Re: routing vlans

Yes you'd create a VLAN on your switch for the 10.1.6.1 (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 10.1.6.0/24 subnet to talk directly to the router.

Community Member

Re: routing vlans

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 ?

Cisco Employee

Re: routing vlans

Carl,

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

249
Views
3
Helpful
3
Replies
CreatePlease to create content