Problem with routing in VmWare VMS

Mark Felder feld at feld.me
Thu Jun 21 21:56:57 UTC 2012


On Thu, 21 Jun 2012 15:59:36 -0500, UNIX developer @ Google.com  
<developerunix at gmail.com> wrote:

> /etc/rc.conf
> ifconfig_em0=" inet 192.168.1.10 netmask 255.255.255.0"
> ifconfig_em1=" inet 192.168.2.1 netmask 255.255.255.0"
> defaultrouter="192.168.1.1"
> gateway_enable="YES"
> static_routes="clnet"
> route_clnet="-net 192.168.2.0/24 192.168.1.10"

You simply CANNOT do this. Traffic for 192.168.2.0/24 is bound to em1 and  
cannot be changed. You setup a static route that basically says "to find  
192.168.2.0/24, don't use em1 but instead ask 192.168.1.10 how to find it"?

This makes no sense at all.


More information about the freebsd-questions mailing list