LAN Routing
1748181 Members
4058 Online
108759 Solutions
New Discussion

Re: 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 3
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?