From owner-freebsd-questions@FreeBSD.ORG Thu Jun 21 20:59:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05532106564A for ; Thu, 21 Jun 2012 20:59:47 +0000 (UTC) (envelope-from developerunix@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB8B8FC16 for ; Thu, 21 Jun 2012 20:59:46 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so128391wgb.1 for ; Thu, 21 Jun 2012 13:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:x-priority:message-id:to:subject:mime-version :content-type:content-transfer-encoding; bh=LF7pmyaiFhTRe5/k8OkQdjPxKgBenQzaTrjiJQAOHAA=; b=jSGWirU1re+b4+Hz099hfDKefiyUqVqPP8C6chlC28R5Aj+Vz/8W3XN+5aHmVoUT8D 8YrycHjsJVaY1CSP/uRQZBcfZjg0WmjwVOiXVys3rYj3Oo391XN66XM6c9vD5nxyWn0Y knii8S5bwnaK4o9lmFpg63j3nybMXWZekNXdHQ3kGBE1lOhBciCPMAYpyLr5HeeErY0C 4g61vJ98gNGjjChIclmVAFM/xaBdgcFPM28F4Pnjjsv9tZr2+BWa85uumHCUJlV5WaI3 zz0Jr73vV3MKlWlmE8sO0e2XX86fLMHruexjD+TqRLCuy7h43Q3+/2sjcJUGETKw+X4X 9HCA== Received: by 10.216.196.72 with SMTP id q50mr16361767wen.90.1340312380434; Thu, 21 Jun 2012 13:59:40 -0700 (PDT) Received: from HP.mits.lv ([136.169.30.17]) by mx.google.com with ESMTPS id f19sm92692999wiw.11.2012.06.21.13.59.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jun 2012 13:59:38 -0700 (PDT) Date: Thu, 21 Jun 2012 23:59:36 +0300 From: "UNIX developer @ Google.com" X-Priority: 3 (Normal) Message-ID: <1842148286.20120621235936@gmail.com> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: Problem with routing in VmWare VMS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 20:59:47 -0000 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!