Jump to content

PROCURVE VLAN SETUP - Cannot figure out how to get trunking to work correctly!!


Recommended Posts

Posted

vlan.jpg

 

Can anyone please help. We have a test switch setup and we are trying to setup a very simple VLAN using two HP 2650 switches.

We have created a VLAN using just one port (port 1) on each of the switches. These VLANS called "CAMLAN" have a separate address range to the network (192.168.0.1 on switch 1 and 192.168.0.10 on switch 2)

The rest of the ports are as normal part of the DEFAULT_VLAN (ip 10.50.4.20 on switch one and 10.50.4.30 on switch 2)

 

We want to connect the two switches together so that BOTH vlans use the same single port for traffic. So we setup port "48" on both ports as a "trunked port"

We just cannot get the switches to connect and traffic travel between them, e.g from the network I cannot ping the student PC (ip 10.50.4.100) and from the "Camera PC" (ip 192.168.0.2) we cannot ping the IP camera (192.168.0.100)

 

Can anyone please suggest what we are doing wrong?

Posted

Trunk ports (ie. the Ports that link to another switch) have to be 'tagged' with VLAN(s) that you want to be allowed to go to those switches. If I'm understanding you correctly?

 

HTH

 

Pete

Posted

I guess you have got IP routing on the switch (has this switch got Layer 3 capability for intervLan routing) or an external device routing between the 2 different vLANS. And also that you have the camera plugged into a port which is untagged for the CAMLAN vLAN. For devices on 2 different vLANS to comminicate some sort of routing needs to be done I'm sure.

 

As @FragglePete suggests you need also need to tag the uplink/downlink ports for the vLAN traffic. Which is probably why you cannot ping the Camera from the Camera PC.

  • Like 1
Posted (edited)

thanks for the replies.

 

I have been doing all the config from telnet. There is a whole section on "Trunking". Are you saying that I turn off the trunking on port 48 and just simply "Tag" port 48 on both switches? this is what we tried originally and it didnt work :(

 

We then followed some guides and they pointed us to the trunk settings in the config.

 

How do you "Tag a port to a each VLAN??" We only have ONE port in then camera VLAN so how do we tag port 48 (connects the 2 switches) into this VLAN ? if we add it into the vlan and tag it, it is then a 2nd port which is part of that VLAN and we then cant ALSO "tag" it in the default vlan? (as we need both VLANs traffic to go through this port 48)

 

We can only have one port used for the connection between switches as these are all fiber links.

 

Thanks again, confused. Maybe we need to completely erase the switches and start from scratch.

Edited by burgemaster
Posted (edited)
The gui is terrible. Use the console interface or remote over SSH. Also seem to remember I went through explaining ProCurve VLAN tagging in this guide about using VLANS on Linux.

 

http://www.edugeek.net/forums/nix/8907-howto-using-802-1q-vlans-directly-linux.html

 

Thanks Gueff will read this in the morning, i have had enough to today, i will be dreaming on VLANS and ports later!

 

Does it matter that we are using a straight network cable between switches and not a crossover cable or minig`s and fiber cable or something like that?

Edited by burgemaster
Posted

If I'm understanding it right...

 

- port 48 needs to be tagged for any VLANs you want to pass traffic for i.e. CAMLAN (whatever number you've assigned to it)

- port 1 needs to be set as untagged in the VLAN called CAMLAN (if your cameras don't have a VLAN tag defined in their settings)

Posted
port 48 needs to be tagged for any VLANs you want to pass traffic

 

Just realised that you can actually set that port 48 to "tagged" in both of the VLANs at the same time! Thanks, hopefully this will work in the morning!

Posted
type show run and paste it up here removing and sensitive info

 

I will do that first thing, I just tagged ports remotely and lost connection to both switches from home so will do it first thing.

Thanks

Posted
I will do that first thing, I just tagged ports remotely and lost connection to both switches from home so will do it first thing.

Thanks

 

ah the amount of times i've done that!

Posted

Trunking on your HP switch is to allow you to create a trunk of 2 or more copper connections between a switch and allow them to function without causing a loop.

 

To allow the vlan traffic to pass over that trunk you would also need to tag the ports with the relevant vlans.

 

By creating a trunk on port 48 you aren't acheiving a gain, if you trunked ports 47 & 48 on both switches you could then connect 2 cables between the switches and if you then tagged those ports for your vlans that traffic would also pass.

 

Ben

Posted

Also to add to the post above, if you trunk 47 and 48 together to get a 2Gb link you need to tag the VLANs after creating the trunk link. If you do it beforehand the creation of the trunk wipes out the VLAN tags.

 

Key points for HP ProCurve....

 

trunk = multiple ports aggregated together for more bandwidth

tagged = multiple VLANs going over the same link (for switch to switch links etc). A port can be tagged in multiple VLANs

untagged = the VLAN the port belongs to for endpoint devices (only one VLAN can be set as untagged on a port at any one time)

  • Thanks 1
Posted

Thanks for all the help! It worked great.

 

Last question!

So say we have:

default vlan - school network

vlan1 - cameras,

vlan2 - guest wifi

 

How do we administer them all without have 3 network cards? router?

Could I be pointed in the right direction please im sure there is a simple solution.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...