Cisco VLAN Q
Author
Discussion

dmaci38293

Original Poster:

224 posts

273 months

Monday 15th October 2007
quotequote all
Just a quicikie.. I have a 3640 router with 2 vlans on one interface vlan 1/2 for reasoning.... previosuly didnt need to route between them but now do.. whats the best way/commands?

Cheers

Duncan

guydw

1,651 posts

314 months

Monday 15th October 2007
quotequote all
hang on, bit more info needed......

You have a hub / switch connected to a router ?

There are two vlans on the switch ?

So have you configured anything on the router ?

If you have two (logical) interfaces both with IP addresses, then it will route between vlans by default.

If not you need to firstly allow both Vlans to use the single physical interface a s a gateway - so you need to configure the interface an a dot1q trunked interface - also the physical switch port (if it's a netgear hub, you're stuffed at this point).

Then you need to configure IP addresses on the logical interfaces.

Then routing between Vlans will work.

so:

Int Fa0/0.1
encapsulation dot1q
ip address 10.10.10.1 255.255.255.0
no sh

int fa0/0.2
encapsulation dot1q
ip address 20.20.20.1 255.255.255.0
no sh

switch config depends on switch type, but if it is a recent switch it'll be something like:

int fa1/0
switchport mode trunk
switchport trunk encap dot1q

Of course you may be doing something different in which case this is wrong - tell e exactly what you want and I'll tell you the config.

A small point, you shouldn't use vlan 1, as this has security vulnerabilities on a trunked link.

dmaci38293

Original Poster:

224 posts

273 months

Monday 15th October 2007
quotequote all
thanks for the reply much appreciated.

We have a 3640 with a 16 port NM in it which is effectively a single switch unit in the router. We also have a single FE NM which handles the wan side of things. The 16 port NM is currently setup with 2 vlans on it (vlan 1 & 2) 8 ports of the 16 unit are configured with vlan 1 as a access ports and 8 are configured as vlan 2 access ports. At the moment there is no routing between the two vlans - or at least I cannot ping from 1 vlan to the other (I was pretty sure it was default though??) which is where I am a little stuck!! Im used to HP kit so a little confused.

hmmmmm

Edited by dmaci38293 on Monday 15th October 17:10

guydw

1,651 posts

314 months

Monday 15th October 2007
quotequote all
oh ok -I'm clearer now....

Basically the NM-16ESW is a layer 2 switch that sits inside the router. In order to route between Vlans you need the router CPU to do the L3 stuff. For this you need to create Vlan interfaces (virtual router interfaces) which will have an IP address that aligns with the relevant Vlan. This IP address will be your default gateway. Once you have done this you will be able to route between Vlans and also to your WAN connection. I'm assuming you're using IOS 12.2 or better....

If this doesn't work (or you'd like more explaination) feel free to send me a mail and I'll give you my number, I'll talk you through it.

:-)

dmaci38293

Original Poster:

224 posts

273 months

Monday 15th October 2007
quotequote all
Thanks for the info... got it sorted.. was me being a complete fool - had forgotton to change the vlan tag on a port hence why I couldnt ping ;-) god im such a retard... saying that I am a trader rather than a blumin networks expert!! lol

Thanks again ;-)

guydw

1,651 posts

314 months

Tuesday 16th October 2007
quotequote all
oh easily done ...........

however I'm now intrigued how a trader is fixing a nework (and quite impressed - that's not my experience of traders at all....).

Unfortunately I am a network expert, though I'd much rather be a trader....lol