Assigning switch system IP address to a VLAN on HP 2920
Posted on 2015-01-04
I was wondering if somebody would be able to help me with this ongoing problem I am having with a HP 2920 switch.
Essentially I have been tasked to subnet a /21 in this case 10.42.128.0/21 into VLANs and I have devised the following
VLAN 10 - Internet (10.42.128.0/30)
VLAN 20 - Switches (10.42.128.64/26)
VLAN 30 - Servers (10.42.128.32/27)
VLAN 170 - Guest (10.42.128.128/26)
I can log in via the console and create the VLANs with the specific VID's and then once in context mode within the VLAN, setup the IP address (I am assuming I am entering the interface IP) for example
(vlan 10)# ip address 10.42.128.2/30
(vlan 20)# ip address 10.42.128.126/26
(vlan 30)# ip address 10.42.128.62/27
Now what I am trying to achieve is to set the switch system IP address as 10.42.128.65/26 and assign this to VLAN 20 and all I get is an error as it says the IP/subnet already exists. Any further switches in the network will follow suit I.e. 10.42.128.66, .67, .68 etc all within VLAN 20.
I have tried to set the management vlan to VID 20 but that hasn't changed the error using command (#management_vlan 20)
Would anyone know what I am doing wrong or how I would achieve this?
Essentially vlan 20 will be used for all my switches and the HP2920 will be my core hence I would like to assign it the first usable IP within that subnet.
Many thanks for your time