Vlan/trunking a 2900XL switch

I just got my 2nd switch in the mail today, and would like to try trunking. I'm assuming I need at least 2 vlans to get this running? Can someone give advice on how I should implement this?  I am going to try this tonight, as I have to return the switch by tomorrow if it doesnt trunk (only 4mb switch).

also, how hard is it to make vlans?
Who is Participating?
Don JohnstonInstructorCommented:
I haven't tried it on a XL before, so it may work... But I think you'll need to use vlan database mode to create the vlan's.

If the 2600 router has a 100mb interface you'll be able to make a "router on a stick". Connect one interface of one of the switches to the router. On that router interface, do the following:

interface f0/0
 ip address
interface f0/0.10
 encapsulation dot1q 10
 ip address
interface f0/0.20
 encapsulation dot1q 20
 ip address

Both switches can be VTP servers. In fact, by default, they already are. All VTP will do is make the VLAN you create on one switch automgically appear on the other.

First you want to create a VLAN on each switch:

conf t
vlan 10

Then, add a port on each switch to the new VLAN:

interface <interface>
switchport access vlan 10

Next, setup trunking on the ports connecting switch1 to switch2.  The trunk port has to be 100mb or 1000mb:

interface fa0/24
switchport trunk encapsulation dot1q
switchport mode trunk

Assign IP addresses to the PC's connected to the VLAN10 ports from the same subnet and try pinging eachother to see if connectivity is working.
dissolvedAuthor Commented:
Thank you.  I am going to use a 2600 router to do the routing in between VLANs.  Do I connect both switches to the router? Or do I just connect one switch to the router and make that switch the VTP server?
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Don JohnstonInstructorCommented:
Oops! Forgot to give you the command syntax:

Switch# vlan data
Switch(vlan)# vlan 10
Switch(vlan)# vlan 20
Switch(vlan)# exit (not "end" or "Ctl-Z")

dissolvedAuthor Commented:
thanks guys, i will try that
dissolvedAuthor Commented:
Ok, I'm an idiot. It's a 2500 series router I have. Not a 2600. So it will NOT route between vlans.  
So that means, vlans on the same switch cant see each other?

Ok, here is what my current setup looks like. http://mvpbaseball.cc/switch.jpg

 I'd like to put my wireless access point in it's own VLAN for obvious purposes. I'm guessing once I do, I will not be able to talk to anyone else???

Any opinions welcome. Thanks
If the 2500 is one of the few models that had 2 ethernet ports, then you can plug one into each switch... or you could get another router and connect them with back-to-back serial cable, and set up routing between them. There's always a way but it may not be pretty! With one 2500 router and one ethernet port you can't route more than one VLAN though.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.