Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

Need VLAN configuration Validation

stephnane
Occasional Contributor

Need VLAN configuration Validation

Hello.

I have to make a VLAN configuration but I'm not sure of the config I have to implement.
On HP procurve switches (2510).

I have 2 computers, each one on a separate switch, and I want them to communicate together on a private VLAN.
The 2 switches are connected together on port 1 (each switch on port 1)
Computers on VLAN 2 are both on port 2 of each switch.
All other ports (3-24) are on the DEFAULT_VLAN (N°1) for others computers.


Here is the configuration I propose on both Switches :
Port 1 : VLAN1 Tagged - VLAN 2 Tagged
Port 2 : VLAN 1 Forbid - VLAN 2 Untagged
All others : VLAN 1 Tagged - VLAN2 Forbid


Is this configuration OK?

Tks !
2 REPLIES
stephnane
Occasional Contributor

Re: Need VLAN configuration Validation

No, I wanted to write

Here is the configuration I propose on both Switches :
Port 1 : VLAN1 Tagged - VLAN 2 Tagged
Port 2 : VLAN 1 Forbid - VLAN 2 Untagged
All others : VLAN 1 Untagged - VLAN2 Forbid
Mark Wibaux
Trusted Contributor

Re: Need VLAN configuration Validation

You can just initially leave all the ports untagged in VLAN 1 then once you have created VLAN 2 you just tag port 1 in both switches and then untag port 2.
When you configure port 2 as untagged in VLAN 2 the switch will automatically remove it from VLAN 1 as a port can only be "untagged" in a single VLAN.

So it would look like
Port 1 : VLAN 1 untagged - VLAN 2 tagged
Port 2 : VLAN 2 untagged
All others : VLAN 1 untagged

the commands to run would be
conf - (switch to configuration mode)
vlan 2 - (create/switch to vlan 2)
untag 2 - (untag port 2 which will automatically remove it from VLAN 1)
tag 1 - (tag port 1 to allow the VLAN to span switches)
wr mem - (write changes to flash memory)