Route Subnet to only access 1 IP address on different VLAN HP Procurve

hphp-procurveip-routingroutingvlan

I'm trying to route VLAN 300 which has a subnet 192.168.100.0/26 to only access 10.220.1.10 on VLAN 220 but struggling with the config. HP's documentation from what I can tell just wants me to enable IP RIP but that gives access to the entire 220 VLAN when all I'm trying to do is give access to 10.220.1.10 on VLAN 220

This is for RF Guns connecting to an AS400 server and we are trying to isolate the traffic from everything else. So the RF guns live on VLAN 300 in 192.168.100.0/26 and the AS400 lives on VLAN 220 with 10.220.1.10 as its IP

Best Answer

If you are trying to access a single system on a subnet that has more than one system on it...

I would put a static route on the end systems that specified to reach the 10.220.1.10 system you need to go through the HP router. Then I would use an access list on the router to ensure it is only routing traffic you intend.

You can't use routing to (easily) do what you want because a router thinks in terms of subnets. It thinks about which subnets it has access to based on network address and mask. If it has an interface on the same network as 10.220.1.10 it is going to think of itself as a viable candidate to rout traffic to any host on that subnet. And that isn't what you want, you just want the one host.

Another thing to keep in mind is that routers don't know what VLANs are. Routers are layer 3. Routers only care about IP addresses. They will reference your VLAN through an IP interface, or a Sub-Interface if you are dealing with a VLAN Trunk.

EDIT

If the HP router is also the default gateway, you don't need to worry about any static routes. Just put an ACL on the interface leading to 10.220.1.10.