HPE Aruba Networking & ProVision-based
1836231 Members
2163 Online
110096 Solutions
New Discussion

Assigning a port to multiple Vlan's

 
igro
Occasional Visitor

Assigning a port to multiple Vlan's

Good afternoon,

I would be very thankful if you could help me with a simple question.

I came to HP networking from Cicso world, so the question is related to the difference between assigning port to a different Vlan's (e.g. creating a trunk port in Cisco and tagged port in HP).

If I have have, for example, 100 Vlans, then in Cisco world I can allow the traffic from them to flow through the trunk with a single command:

#switchport trunk allowed vlan 1,2,3,etc

How to easy accomplish the same task in ProCurve? I have 3500 L2/3 switch.

So far the only method that I know is:

#Vlan 1 [enter]

(vlan-1)#tagged 10 [enter]

#Vlan 2 [enter]

(vlan-2)# tagged 10 [enter]

....

etc

 

So to mark any port as tagged for 100 Vlan's I have to enter a lot of commands?

Did I miss something?

 

Thanks a lot,

igro

http://iosadchuk.blogspot.com
9 REPLIES 9
Fredrik Lönnman
Honored Contributor

Re: Assigning a port to multiple Vlan's

Yup thats pretty much it. Cisco assigns VLAN per port, HP Procurve assigns ports per VLAN.

---
CCIE Service Provider
MASE Network Infrastructure [2011]
H3CSE
CCNP R&S

igro
Occasional Visitor

Re: Assigning a port to multiple Vlan's

Yeah, in Cisco it's pretty much straightforward. So if I have a lot of ports and a lot of VLAN's, I can use "interface range" command. Still a single command to assing group of VLAN's to a group of ports.

However, I do not have the same ability in HP. It would be great if I could select a range of VLAN's to assing a range of ports to them.

 

Thank you for your reply!

http://iosadchuk.blogspot.com
BGraham_1
Frequent Advisor

Re: Assigning a port to multiple Vlan's

You can assign severa ports to a vlan at one time, if you seperate by a dash (for a range) or comma (for individual ports). Example:

 

Switch(config)# vlan 10 tag 1-5,8,12,24

 

Bob

paulgear
Esteemed Contributor

Re: Assigning a port to multiple Vlan's

Hi Igro,

You're right that it's not easy. If you're linking to another switch that isn't Cisco, a better option would be GVRP, which can dynamically add all of the correct tagged VLANs to a link. GVRP is similar to VTP, but without the downsides - it won't break your network if you get the mode wrong. :-)

Of course, this won't help you if you're trying to connect HP to Cisco or to some other non-GVRP device such as a server...
Regards,
Paul
paulgear
Esteemed Contributor

Re: Assigning a port to multiple Vlan's

I forgot to mention: some ProCurve models have new firmware with an experimental Comware CLI. If your switches have this firmware, you could switch to that CLI, which has a lot of similarities with Cisco's (including trunk port setup).
Regards,
Paul
Fredrik Lönnman
Honored Contributor

Re: Assigning a port to multiple Vlan's


@paulgear wrote:
I forgot to mention: some ProCurve models have new firmware with an experimental Comware CLI. If your switches have this firmware, you could switch to that CLI, which has a lot of similarities with Cisco's (including trunk port setup).

Haha cool I've been waiting for that. I'm guessing its the Provision based switches?

---
CCIE Service Provider
MASE Network Infrastructure [2011]
H3CSE
CCNP R&S

paulgear
Esteemed Contributor
paulgear
Esteemed Contributor

Re: Assigning a port to multiple Vlan's

It appears from that link that the Comware-compatible CLI doesn't include any configuration commands yet. So this is not going to solve igro's problem.
Regards,
Paul
igro
Occasional Visitor

Re: Assigning a port to multiple Vlan's

I got the idea!

Thank you, guys, for your help!

I appreciate it!

http://iosadchuk.blogspot.com