cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
796
Views
0
Helpful
6
Replies

router and vlans

zeeshanr202
Level 1
Level 1

hi every body

please consider the following scenario.

"r" stands for router

"sw1" for switch1

"sw2" for switch2

router"r" has two fast ethernet interface e1 and e2

router is connected to sw1 by e1 and to sw2 by e2.

both sw1 and sw2 have vlanA configured on their ports.

asumming router has all the proper configurations, Can a user in vlan A on sw1 communicates with a user in vlanA on sw2?

simply put can two similar vlan say vlana

communicate via router with each other?

thanks alot have a nice day

2 Accepted Solutions

Accepted Solutions

guruprasadr
Level 7
Level 7

HI,

Pls understand the basic scenario. Normally, the Router will do the L3 routing and can be used for communication between two different VLAN or Routing Protocols.

In your case,

Just Configure an up-link (trunk) between SW1 and SW2 which is higly enough for users in VLANA of both switches to communicate.

Router is not required in this case.

Do RATE if HELPS

Best Regards,

Guru Prasad R

View solution in original post

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Guru Prasad is correct in that nowadays switches are often L3 capable and so take care of the inter-vlan routing but to answer your question.

Assuming the switches are not connected together and that you are using one IP subnet for vlanA then no because you will not be able to give e1 & e2 an IP address out of the same IP subnet so you could not set this up.

You could bridge between the 2 interfaces on the router which would allow you to do this but then the router is acting at layer 2 rather than layer 3.

Jon

View solution in original post

6 Replies 6

guruprasadr
Level 7
Level 7

HI,

Pls understand the basic scenario. Normally, the Router will do the L3 routing and can be used for communication between two different VLAN or Routing Protocols.

In your case,

Just Configure an up-link (trunk) between SW1 and SW2 which is higly enough for users in VLANA of both switches to communicate.

Router is not required in this case.

Do RATE if HELPS

Best Regards,

Guru Prasad R

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Guru Prasad is correct in that nowadays switches are often L3 capable and so take care of the inter-vlan routing but to answer your question.

Assuming the switches are not connected together and that you are using one IP subnet for vlanA then no because you will not be able to give e1 & e2 an IP address out of the same IP subnet so you could not set this up.

You could bridge between the 2 interfaces on the router which would allow you to do this but then the router is acting at layer 2 rather than layer 3.

Jon

thanks alot jon.marshall .I really appreciate your help. i got it now

i was just thinking about your response. let say there is no one-to-one correspondence between vlanA and ip subnet. rather vlanA on switch1 encompasses major net 192.192.192.0 while vlanA on switch2 encompasses 193.193.193.0

both switches are connected to router via e1 and e2.what would happen in that case? can users in vlanA on sw1 communicate with users in vlanA on sw2?

thanks alot

Hi

Again, assuming that your switches are not interconnected then yes you would now get connectivity. Because the switches are not connected to each other vlanA on switch1 is not the same vlan as vlanA on switch2.

Jon

thanks alot. i got it now

Review Cisco Networking for a $25 gift card