Question

Locked

Routing between VLANs

By edepa ·
Hello,

I am researching this topic before drafting a design and would like some guidance.

Reduced to its simplest, the problem is this. I have two Cisco Catalyst L2 switches (switch SA and switch SB) and one Cisco 1811 router (router RA). All three devices support VLANs with 802.1Q encapsulation.

The VLANs will be port-based on both switches. The number of VLANs is irrelevant but it should be taken that there are more than two to make this scenario sensible. It will be necessary to route IP between VLANs on SA and VLANs on SB, using RA.

In so far as connections between switches and routers are concerned, in order to achieve this routing, I understand that the switches should be connected to the router using trunk ports. I understand that the advantage of this method over that of connecting the router to the switches using access ports on the switches is that the former scales better to handling several VLANs.

Thanks!

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

This might help with your problem for "Routing between VLANs"

http://www.cisco.com/univercd/cc/td/doc/product/software/ios113ed/113ed_cr/switch_c/xcvlan.htm

Please post back if you have any more problems or questions.

Collapse -

Rouring between VLANs

by edepa In reply to This might help with your ...

Thank-you for replying. I had read that article. While it provides some insights, I understood that article to apply to the problem of physically setting up routing between two L3 devices (such as the Catalyst 3000 devices) that implement VLANs. Individually, these devices are themselves capable of routing between the VLANs configured and the ISL/802.10 protocols are used to achieve inter - L3 device routing of the VLANs.

What I had a problem with, but now believe to have solved, is the the physical connection between an 802.1q-compliant router and 802.1q - L2 devices. Since then, I found that the router should be connected to the trunk ports on the switches and subinterfaces defined on each router interface that is connected in this way. I found these two articles, particularly the wikipedia one, very helpful:

1. http://en.wikipedia.org/wiki/Subinterface

2. http://www.cisco.com/en/US/products/hw/switches/ps628/products_configuration_example09186a00800ef797.shtml#conf

Collapse -

Yup...

by Jellimonsta In reply to Rouring between VLANs

Sounds like you got it.
You would trunk the port to the router from the switch.
Then define the subinterfaces on the router.

<switch-1>
int fa 0/1
desc Trunk to Router-1
switchport trunk encaps dot1q
switchport mode trunk
switchport trunk native vlan <primary vlan>

<router-1>

int fa0/0.1
ip add 192.168.1.1 255.255.255.0

int fa0/0.2
ip add 192.168.2.1 255.255.255.0

int fa0/0.3
ip add 192.168.3.1 255.255.255.0

Don't forget to make the IP of the main router sub interface (main VLAN) your default gateway on the switch.
Good luck.

Collapse -

Thanks a million!

by edepa In reply to Yup...

Grand Jellimonsta, thanks for your detailed reply.

It was the wikipedia article that pinned down the picture.

I hope to implement by the end of August (still have to purchase the devices).

Cheers!

Collapse -

No problem.

by Jellimonsta In reply to Thanks a million!

Good luck with the config! :)

Back to Networks Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums