HPE Aruba Networking & ProVision-based
1820071 Members
2425 Online
109608 Solutions
New Discussion

L2 switch multiple vlan ip assign

 
5u
Occasional Contributor

L2 switch multiple vlan ip assign

Hi,

 

I have HP 2510-48 port switch.

I have configured dot1x on my hp switch. I want to configure Vlan 10 & Vlan 172 with IP range 1) 10.0.0.0  2) 172.16.0.0

I am able to create vlan but could not assign IP address to vlan.

Kindly guide me to assign IP address to Vlan

 

Thanks in advance..

2 REPLIES 2
Arimo
Respected Contributor

Re: L2 switch multiple vlan ip assign

The command is simple:

 

switch(config)#vlan 10 ip address 10.10.10.x/bits (for example 10.10.10.1/24)

 

All this kind of info is explained in the manuals, available at http://h20566.www2.hp.com/portal/site/hpsc/public/psi/manualsResults/?sp4ts.oid=3356807

 


HTH,

Arimo
HPE Networking Engineer
Emil_G
HPE Pro

Re: L2 switch multiple vlan ip assign

Hi

 

Assigning IP address to a VLAN is very simple.

This are the commands in the CLI to assign IP address 10.0.0.1/24 to VLAN 10.

 

config

vlan 10 ip address 10.0.0.1/24

write memory

 

You can use the Tab key or the ? character to explore the options of the CLI.

 

I dont know what is the intention of this configuration. But you should keep in mind some things about VLAN IP interface on this switch.

This is a layer 2 switch, so it basicaly needs only one IP address for management purposes.

 

Even if you configure IP addresses in all VLANs and configure this addresses as default gateway on the clients, the switch will not route the traffic.

 

There is no requirement for a layer 2 switch to have an IP address in the ip range of the hosts belonging to the respective VLAN as long as the switch has layer 2 connectivity with the default gataway

 

 

I am an HPE employee

Accept or Kudo