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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLAN's and router

Status
Not open for further replies.

Dougieoz

MIS
Aug 11, 2005
54
0
0
GB
Hi all,
I was wondering if someone could shed some light on this for me?
If i have a single 2950 switch and 2600 router setup, and want to setup the router to forward between 3 VLAN's created on the switch, do i setup the connection to the router as a trunk or leave as normal port?
 
Trunk

Trunks will pass Multiple Vlans.
Normal access link only passes one vlan.
 
Also keep in mnd your 2600 needs to have a fa to do vlan / trucking routing
 
Hi you need something like the following

On the router:

int fa0/0.2
ip address x.x.x.x
encapsulation dot1q 2
int fa0/0.3
ip address y.y.y.y
encapsulation dot1q 3

On the switch:

int fa0/1
switchport mode trunk

where x.x.x.x is the default gateway for VLAN2 and y.y.y.y is the default gateway for VLAN3 (this assumes the switch already has VLANs 3 and 4 created.)

Hope this helps

 
The 2600 does not need fastethernet to do router-on-a-stick if you have the right IOS. Other platforms require fastethernet. When you configure the subinterfaces on the router you need to specify the encapsulation before you try to assign an IP address to the subif.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top