LAN Routing
1748244 Members
3953 Online
108760 Solutions
New Discussion

Re: HP 5900 - Configure as router

 
SOLVED
Go to solution
cbasso
Regular Visitor

HP 5900 - Configure as router

Hi, I have an HP 5900 that I need to configure to work as a router between 2 subnet.

My situation:

1 Switch (not the HP 5900) that is the real gateway. IP: 10.1.1.254/24

My network is on 10.1.2.0/24

I need to route all traffic from 10.1.2.0/24 through the 10.1.1.254

I have configured 2 VLAN:

VLAN A: 10.1.1.1/24 on port where the gateway switch is connected

VLAN B: 10.1.2.254/24 on ports where my devices are connected

I've set on my devices IP from 10.1.2.2.0 subnet and 10.1.2.2.254 as gateway.

But it's not working, device is reaching VLAN A 10.1.1.1 but not 10.1.1.254.

I've tryed also to create a static default route but still not working.

What am I missing?

 

Thanks

Claudio

3 REPLIES 3
cbasso
Regular Visitor

Re: HP 5900 - Configure as router

Hi,

no one can help me?

I'm still reading documentation and doings test, but it still not working.

Here another schema to try to explain well:

DEVICE A: connected to switch on VLAN 10 port - IP Address 192.168.10.5

ROUTER: connected to switch on VLAN 10 port - IP Address 192.168.10.1

VLAN 10: IP address 192.168.10.254 on ports 1-5 (all ports type access)

VLAN 20: IP address 192.168.20.254 on ports 6-10 (all ports type access)

Switch default static route  0.0.0.0 0.0.0.0 192.168.10.1

----

Test 1: if I connect a device on VLAN 10 port and set an IP 192.168.10.99 with gateway 192.168.10.254, all works,

I can ping the Switch IP, the Router IP, device A IP and go to internet (through the router). So it seems that static routes are ok.

Test 2: if I connect a device on VLAN 20 port and set an IP 192.168.20.5 with gateway: 192.168.20.254,

I can ping the VLAN 10 IP, the VLAN 20 IP, but not the Router IP or the Device A IP.

What am I doing wrong?

 

Thanks

Spork_Schivago
Occasional Advisor

Re: HP 5900 - Configure as router

cbasso,

I'm fairly new to these switches and I'm in a similar situation.   Right now, we're just trying to get the gigabit ports to provide an IP address to any ethernet cable plugged into it.


Anyway, what about trying to set a static route, like this?

ip route-static 192.168.10.0 255.255.255.0 192.168.20.254


I'm trying to play this by memory, so it's a bit hard.   I have to wait until my wife gets home from work, before I can go down to the basement and play around with it and see what commands I used to access the other networks.

Out of curiosity, do you know if the switch actually hands out the IP addresses for the clients?   I see there's a dhcp server built in.   But I wasn't sure if that was the job for the switch or the router.   Trying to get a better understanding of how this works.

-- Never stop learning.
cbasso
Regular Visitor
Solution

Re: HP 5900 - Configure as router

Hi, solved!

The switch was configured correctly,

but if your switch has a default route to an external gateway, you need to create a route policy on that gateway to tell that all traffic to your internal networks must be redirected to the switch.

Example: all traffic to 192.168.20..0/24 to gateway 192.168.10.254