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.
Hours:
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
LAN Routing
cancel
Showing results for 
Search instead for 
Did you mean: 

HP procurve switch 2824 : 2 subnets IP address on the same switch to do some routing

 
stephnane
Occasional Contributor

HP procurve switch 2824 : 2 subnets IP address on the same switch to do some routing

Hi !

 

We are migrating from 1 subnet to another one (C-class to B-class). I need to route those 2 subnets on the same switch and the same VLAN (Default_Vlan) (both subnets "are connected" to the switch). How can I add a "secondary" IP for the switch ?

 

Details :

2 subnets are :

- 10.1.0.0/255.255.0.0

- 10.2.2.0/255.255.255.0

 

The switch has the IP 10.1.0.1, IP routing is enabled on the switch, and I need to add these routes :

10.1.0.0 255.255.0.0 -> DEFAULT_VLAN

10.2.2.0/255.255.255.0 -> DEFAULT_VLAN

 

Is it possible to add a secondary IP address one the same DEFAULT_VLAN for this switch?

 

 

Tks a lot !

3 REPLIES
stephnane
Occasional Contributor

Re: HP procurve switch 2824 : 2 subnets IP address on the same switch to do some routing

OK, sorry to update this post "soonly", but I have configured 2 adress IP on the same VLAN :

 

configure

vlan 1
name "DEFAULT_VLAN"
ip address 10.1.0.1 255.255.0.0
ip address 10.2.2..1 255.255.255.0

 


But now, how can I add route between those 2 subnets ?

paulgear
Esteemed Contributor

Re: HP procurve switch 2824 : 2 subnets IP address on the same switch to do some routing

You don't need to add routes to the switch - when you add the IP address, it automatically adds a connected route.  All you need to do is enable IP routing and set the address of the switch as the default gateway of the hosts on each subnet.

Regards,
Paul
chrisjako
Occasional Visitor

Re: HP procurve switch 2824 : 2 subnets IP address on the same switch to do some routing

hi paul, thanks for this

 

I did it and now my switches on different subnets can see each other and from the CLI can ping any other device on their subnet, however any device outside of the switch cannot communcate with the other subnet.

 

Is there siomething further I need to do?