Problem with routing in VmWare VMS

2012-06-22 Thread UNIX developer @ Google.com
Thank you, Mark!
All work!


-
Вы писали 22 июня 2012 г., 16:31:39:

 On Fri, 22 Jun 2012 08:10:43 -0500, UNIX developer @ Google.com  
 developeru...@gmail.com wrote:

 now after reboot the problem still the same.
 ping -S 192.168.2.1 192.168.1.1
 PING 192.168.1.1 (192.168.1.1) from 192.168.2.1: 56 data bytes
 ^C
 --- 192.168.1.1 ping statistics ---
 8 packets transmitted, 0 packets received, 100.0% packet loss

 192.168.1.1 does not know how to find 192.168.2.1, so it can't respond to
 the ping. I bet it only has a default route to the internet. If you add a
 static route on 192.168.1.1 telling it that it can find 192.168.2.0/24 at
 192.168.1.10 it will probably work.


 On 192.168.1.1:

 route add -net 192.168.2.0/24 192.168.1.10

 Now the pings will work.


-- 
С уважением,
 UNIX  mailto:developeru...@gmail.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Problem with routing in VmWare VMS

2012-06-21 Thread UNIX developer @ Google.com
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=1

/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

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

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 02em0
127.0.0.1  link#4 UH  00lo0
192.168.1.0/24 link#1 U   0  120em0
192.168.1.10   link#1 UHS 00lo0
192.168.2.0/24 link#2 U   00em1
192.168.2.1link#2 UHS 00lo0

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

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 02em0
127.0.0.1  link#4 UH  00lo0
192.168.1.0/24 link#1 U   0  120em0
192.168.1.10   link#1 UHS 00lo0
192.168.2.0/24 192.168.1.10   U   00em1
192.168.2.1link#2 UHS 00lo0

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!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org