HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Comware Based
Showing results for 
Search instead for 
Did you mean: 

HP A5120, VLAN per ip range

Frequent Visitor

HP A5120, VLAN per ip range

Hi, I'm very new in networking, at this point, I have two switches A5120 working in the default vlan, assigned by ports.
so, the question is, can I assign an ip range or specific ips per VLan, instead of ports? that's because I have another switch in cascade with ip telephones and workstations, I need separate the ips for phones and ips for data.





P.S. This thread has ben moved from Switches, Hubs, Modems (Legacy ITRC forum) to Comware-Based. - Hp forum moderator

Honored Contributor

Re: HP A5120, VLAN per ip range

Create a new VLAN on both switches.

Add the new VLAN as a "tagged" VLAN to the interfaces on each switch that are used to interconnect them.

On the cascaded switch, add the new VLAN to the ports where it is needed, either "untagged" or "tagged" depending on which the device is configured for.

Frequent Visitor

Re: HP A5120, VLAN per ip range

thanks, thats is great,
but the problem is, in the cascade, the switches are not configurable, so, I don't have any way to know if there is a ip phone, a camera or a data cable, so I want separate this tree options by ip, instead of ports. any idea?.

Thanks again.

Honored Contributor

Re: HP A5120, VLAN per ip range

You can use 802.1x to identify the devices by MAC address and assign them to the right VLAN that way.

Respected Contributor

Re: HP A5120, VLAN per ip range

Hi Haver,


you might want to look into: "Configuring IP subnet-based VLANs" in the  Layer 2 - LAN switching configuration guide.


(here is a link to a pdf with all the guides in one big pdf, there its page 317)



The switch will tag traffic depending on not what pvid the port has, but rather on the source IP-address. 




but that seems to be what you're asking for.



Søren Dideriksen, Network Administrator
Region Midtjylland