Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distributed VLAN Environment

Status
Not open for further replies.

AJ1982

Technical User
Joined
Jun 13, 2001
Messages
644
Location
GB
Afternoon All,

My test lab environment looks like this...


CORE ROUTER === ROUTER 1 === SWITCH1
|= ROUTER 2 === SWITCH2
|= ROUTER 3 === SWITCH3

I have managed to get inter-vlan routing working between one router and switch.

What I would like to do is expand this. Is it possible to have, example, VLAN10 available on all three switches (Switches communicate via core router) as I am looking to play around with VMPS but would need to know how to allow the same VLAN to be on many switches.

Hope this makes sense, any advice greatly appreciated.

Thanks

AJ


===

Fatman Superstar (Andrew James)

CCNA,
(CCNA Cisco Academy Instructor Trained)
 
You'll want to look into setting up trunks using ISL or 802.1q. Then you will probably want to setup VTP to push out the VLAN configuration to the other switches.
 
There is no problem in having VLAN 10 on all of your switches, but with your setup since every switch is beyond router, every VLAN 10 (created on any of your three switches) will need to be on different subnet.

By the way I am also CNAP Instructor here at Slovak Technical University Bratislava, Slovakia and during writing this post my students are taking CCNA version 3 Semester 3 final:)

Peter Mesjar
CCNA, A+ certified
pmesjar@centrum.sk
 
You should also ditch the routers completely and use a layer3 switch. Much faster.
 
You can use trunks as baddos suggested, but until you create more than one VLAN or connect your three switches directly (not via routers), there is no need for them.

Peter Mesjar
CCNA, A+ certified
pmesjar@centrum.sk
 
Thanks for the responses guys.

Just to confirm their is no way to distribute VLAN's over router links, therefore I would need to adapt into ...


ROUTER - SWITCH - SWITCH

type setup?

Thanks for info.

pmesjar - As I am writing this, I am preparing for my Sem3 upgrade skills exam :P

Thanks

AJ

===

Fatman Superstar (Andrew James)

CCNA,
(CCNA Cisco Academy Instructor Trained)
 
Your set will be:

ROUTER --trunk-- SWITCH --trunk-- SWITCH

if you want to create more than one VLAN and let the router route between them.

Let's take a look at an example. I want to create two VLANs one with subnet 192.168.1.0/24, the second 192.168.2.0/24. I have hosts from both VLANs on both switches and I want them to communicate. I will do the following:

router(config)# int f0/0
router(config-if)# no shut
router(config-if)# int f0/0.10
router(config-subif)# encapsulation dot1q 10
router(config-subif)# ip address 192.168.1.1 255.255.255.0
router(config-subif)# int f0/0.20
router(config-subif)# encapsulation dot1q 20
router(config-subif)# ip address 192.168.2.1 255.255.255.0

switch1(config)# int f0/1
switch1(config-if)# desc TRUNK TO ROUTER
switch1(config-if)# switchport trunk encapsulation dot1q
switch1(config-if)# switchport mode trunk
switch1(config)# int f0/2
switch1(config-if)# desc TRUNK TO SWITCH2
switch1(config-if)# switchport trunk encapsulation dot1q
switch1(config-if)# switchport mode trunk

switch2(config)# int f0/1
switch2(config-if)# desc TRUNK TO SWITCH1
switch2(config-if)# switchport trunk encapsulation dot1q
switch2(config-if)# switchport mode trunk

Then on each switch create the VLAN 10 and VLAN 20 and add appropriate ports to them. Or just create the two VLANs on one switch and then let VTP distribute the VLAN info to the rest of the switches.

Good luck on your Sem3 test, it is not hard:)

Peter Mesjar
CCNA, A+ certified
pmesjar@centrum.sk
 
Thanks for the information.

At the moment, ive got three VLANS on each switch...

20, 25 and 29 on switch one, into router one
30, 35 and 39 on switch two, into router two

VLANS 29 and 39 are the natives and I have configured the management IP addressed on both.

If I were to merge these, I would only need one native VLAN, as such can the management interfaces for both be in the same VLAN with the same subnet address.

Thanks

AJ


===

Fatman Superstar (Andrew James)

CCNA,
(CCNA Cisco Academy Instructor Trained)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top