[OpenIndiana-discuss] multiple IP addresses, same NIC

Edward Ned Harvey (openindiana) openindiana at nedharvey.com
Wed Mar 6 03:18:49 UTC 2013


> From: Doug Hughes [mailto:doug at will.to]
> 
> 2) explicitly set the route for 192.168.10.x :
> route add 192.168.10.0/<mask> 192.168.2.1

That's what I'm saying I have already done.  I set the default route to 192.168.1.1, and I set a static route, 192.168.10.x/24 via 192.168.2.1.  The route is in effect, as evidenced:

For simplicity, let's say 192.168.1.1 has MAC 11:11:11:11:11:11 and let's say 192.168.2.1 has mac 22:22:22:22:22:22.   

When I ping something on the internet, I see a packet go out my NIC, source IP 192.168.1.100, destination MAC 11:11:11:11:11:11 and destination IP 8.8.8.8.  It all works, I get a ping response.

When I ping 192.168.2.1 directly, I see a packet go out my NIC, source IP 192.168.2.100, destination MAC 22:22:22:22:22:22 and destination IP 192.168.2.1.  It all works, I get a ping response.

When I ping something on the other end of the VPN, I see a packet go out of my NIC, source IP 192.168.1.100, destination MAC 22:22:22:22:22:22 and destination IP 192.168.10.10 (or whatever.)  The firewall drops the packet, because duh, the source IP isn't in the same subnet as the firewall.

I am also exploring the NAT option, assuming I'm not going to be able to resolve the above problem.




More information about the OpenIndiana-discuss mailing list