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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

2 VLANS 2 networks on a layer 2 switch

Hello,

I want to setup my layer 2 switch to have 2 different VLANS and 2 different networks. For example

VLAN 10 10.10.1.1/24

VLAN 11 10.11.1.1/24

I have only one connection to my router. which is 10.10.1.1.

I know I can setup the VLANS. My question is, do I need a layer 3 switch to do this? Since I'll have two different VLANS with Different IP's that will need to be routed. I'm thinking I do, but wanted to check with the experts

Thanks

Mike

8 REPLIES

Re: 2 VLANS 2 networks on a layer 2 switch

Mike,

Your understanding is correct. To route traffic between VLANs you need a layer 3 switch/router. However, if your router supports dot1q/isl encapsulation then you can setup a trunk between the switch and the router and make the router forward traffic between the VLANs. This feature is called router-on-a-stick.

HTH

Sundar

New Member

Re: 2 VLANS 2 networks on a layer 2 switch

Sundar,

Thanks for the help. I have a 2620, which is pretty old. I'm not sure if it supports dot1q/isl encapsulation or not. I'll have to check that out.

Thanks again

Mike

Re: 2 VLANS 2 networks on a layer 2 switch

It depends on what version IOS you are currently running in the router. I believe you need an IOS with atleast an IP Plus feature set for this. Try this;

R3#config t

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#int f0/0.1

R3(config-subif)#encapsulation ?

dot1Q IEEE 802.1Q Virtual LAN

isl Inter Switch Link - Virtual LAN encapsulation

tr-isl Token Ring Inter Switch Link - Virtual LAN encapsulation

As you can see from the above output, the router would show you whether it supports this feature or not.

HTH

Sundar

New Member

Re: 2 VLANS 2 networks on a layer 2 switch

Sundar,

Currently, my IOS does not support this feature, but now I know I can upgrade and do what I need to do.

Thanks

Mike

Silver

Re: 2 VLANS 2 networks on a layer 2 switch

You do NOT need an L3 switch to do VLANs. You need an L3 switch or a router to route between them.

What type of switch and router do you have?

New Member

Re: 2 VLANS 2 networks on a layer 2 switch

I have a 2620 Router. currently the switch is a foundry switch, but I will be replacing it with a cisco 3524 or 3550. I know the 3550 will do layer 3 so I can go that way. I just wasn't sure if I had a true layer 2 switch if I could do what I wanted to.

Re: 2 VLANS 2 networks on a layer 2 switch

as far as VLAN configuration in layer2 switch you can do... i mean you can configure the VLANs on LAYER 2 switches... but when ever you are talking about the routing between two different VLAN then you have to have Layer 3 device...

if you have router then you can have intervlan routing by creating subinterfaces... and if you have layer3 switch then you can go for the SVI interfaces...

http://www.cisco.com/en/US/tech/tk389/tk390/technologies_configuration_example09186a00800949fd.shtml

If you have foundry switch then you can have only dot1Q encapsulation as ISL is the cisco propritery...

please rate the post if it helps...

regards

Devang

New Member

Re: 2 VLANS 2 networks on a layer 2 switch

Devang,

Thanks for the help... This is what I was looking for. I just need to update my IOS and this will work. Thanks again

Mike

186
Views
12
Helpful
8
Replies
CreatePlease to create content