Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2012 23:59:36 +0300
From:      "UNIX developer @ Google.com" <developerunix@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Problem with routing in VmWare VMS
Message-ID:  <1842148286.20120621235936@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi!
I have problem with routing on FreeBSD.
I have ESXi 5 host. In there is 5 VMs and one of them is a BSD.
I need create router on BSD.
I try to setting up it with this manual:
http://www.freebsd.org/doc/handbook/network-routing.html
but problem is still the same...

I cant ping external network from local network.
# ping -S 192.168.2.1 192.168.1.4
... no replays ...
many packets sent and 100% loss. Ok ^C.

My configs:
/ets/sysctl.conf
net.inet.ip.forwarding=3D1

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

after booting in netstat is:
# netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0        2    em0
127.0.0.1          link#4             UH          0        0    lo0
192.168.1.0/24     link#1             U           0      120    em0
192.168.1.10       link#1             UHS         0        0    lo0
192.168.2.0/24     link#2             U           0        0    em1
192.168.2.1        link#2             UHS         0        0    lo0

after /etc/rc.d/routing restart, I see:
# netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.1        UGS         0        2    em0
127.0.0.1          link#4             UH          0        0    lo0
192.168.1.0/24     link#1             U           0      120    em0
192.168.1.10       link#1             UHS         0        0    lo0
192.168.2.0/24     192.168.1.10       U           0        0    em1
192.168.2.1        link#2             UHS         0        0    lo0

What  I  need  to  do  for  other  VMs from routed network cat get the
external network?

Please help me solve this problem.
If need more information, please write for me!
Thanks!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1842148286.20120621235936>