From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 14:13:08 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 706A3106566B for ; Fri, 22 Jun 2012 14:13:08 +0000 (UTC) (envelope-from axelbsd@ymail.com) Received: from nm17-vm1.bullet.mail.ukl.yahoo.com (nm17-vm1.bullet.mail.ukl.yahoo.com [217.146.183.94]) by mx1.freebsd.org (Postfix) with SMTP id A82778FC16 for ; Fri, 22 Jun 2012 14:13:07 +0000 (UTC) Received: from [217.146.183.217] by nm17.bullet.mail.ukl.yahoo.com with NNFMP; 22 Jun 2012 14:13:00 -0000 Received: from [217.146.183.109] by tm10.bullet.mail.ukl.yahoo.com with NNFMP; 22 Jun 2012 14:13:00 -0000 Received: from [127.0.0.1] by smtp110.mail.ukl.yahoo.com with NNFMP; 22 Jun 2012 14:13:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1340374380; bh=uwVLe6LERpjraFc+N6mTUGEnzboc/RuxbnCk+RW834c=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:Received:MIME-Version:Received:In-Reply-To:References:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=KLXz8oit8MzAKnkqL7kioduq/fiIANyGpNvZlS2wQBfO/1qAYCQiEK7mfpqaSaKzPNDg7IQ8w6uGrIiccg455BwJMBrJanhn9rmK0hHvECUaxeIRkZwJqL0pp2eHqVIBHgs2oMq0nuPH8I6C8Dp55TIkGnihmvS88eeW3P8zWBU= X-Yahoo-Newman-Id: 350811.51505.bm@smtp110.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-5 X-YMail-OSG: hRYAjzQVM1kh2rkLr3pkzYmFsCeRuR.qn1laQ7TmnGzXNCq ipTOOtLNnAufHWiahdYzFAh_4HSWAoFPUJtKOpQxhXlsqsV9NGrcAuBGp0hE 0gfm6wHW3H2v5G9fYhkJCX2arlABe3I6pTiMbOr4Zdksmp8xs0Aj7Vev.6Nr BQAVazysCf9da2vEewxkrLFkbqThCqvJv9CEKBQFjVdIzAPqoHIAjlpaUC_f LPiu5weOXTCj_xzZlHHZDWSRb7dkjYdsYBpk2593yMdR.fLDPaX6hGTC77y2 px00Z9dZV4r2gzk_mDO8yAishzMlZQdZNHnDmo1sRx8vOb4uNXmd97bIAud0 LYamCuqpB9fsWULBiAPUKhjjhaKmMQC0DBNcUO0YMiGwIErBO2GcDqguB7cn jBNRjZ4KWYIqhaSMddo5t5bwzqFs5LEK2qPNeKuaqAZH0e9Z5eg04Nvm25A8 Q6iEymU9njJD6IPKNtGVtEQ3OSHuelQjBw5akqQbfKL9wBQE9Woke.oN7Pt. O9WPrOV8Gbh5_UItfbOYEm6V8Q9stgknzTWW0xYMjFkQoY_WUvA0DjCCOX0D QNjFaQj1Hk.TWekV0S58UK0KJHLU7Ipiitnp2A2CN6knQsxrBXn6mxN0NCGj mvQtkiz_BuH8I37RiQ.N0GNlU51Q- X-Yahoo-SMTP: S65s63SswBDjU54Gjqw2GSWlZmfgiEU_X3tN1_9u Received: from mail-yx0-f182.google.com (axelbsd@209.85.213.182 with plain) by smtp110.mail.ukl.yahoo.com with SMTP; 22 Jun 2012 07:12:59 -0700 PDT Received: by yenl8 with SMTP id l8so1821255yen.13 for ; Fri, 22 Jun 2012 07:12:59 -0700 (PDT) Received: by 10.60.14.68 with SMTP id n4mr2130636oec.24.1340374379161; Fri, 22 Jun 2012 07:12:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.217.4 with HTTP; Fri, 22 Jun 2012 07:12:38 -0700 (PDT) In-Reply-To: <1988813484.20120622161309@gmail.com> References: <1842148286.20120621235936@gmail.com> <1988813484.20120622161309@gmail.com> From: Alexandre Date: Fri, 22 Jun 2012 16:12:38 +0200 Message-ID: To: "UNIX developer @ Google.com" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 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: Fri, 22 Jun 2012 14:13:08 -0000 On Fri, Jun 22, 2012 at 3:13 PM, UNIX developer @ Google.com < developerunix@gmail.com> wrote: > Ok, I understud! > I remove from rc.conf this rows: > static_routes=3D"clnet" > route_clnet=3D"-net 192.168.2.0/24 192.168.1.10" > > new 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" > > > 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 > > > netstat -nr > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expir= e > default 192.168.1.1 UGS 0 38 em0 > 127.0.0.1 link#4 UH 0 0 lo0 > 192.168.1.0/24 link#1 U 0 1153 em0 > 192.168.1.10 link#1 UHS 0 6 lo0 > 192.168.2.0/24 link#2 U 0 0 em1 > 192.168.2.1 link#2 UHS 0 6 lo0 > > Where more can be trouble? > > > ------------- > =D0=92=D1=8B =D0=BF=D0=B8=D1=81=D0=B0=D0=BB=D0=B8 22 =D0=B8=D1=8E=D0=BD= =D1=8F 2012 =D0=B3., 0:56:49: > > > On Thu, 21 Jun 2012 15:59:36 -0500, UNIX developer @ Google.com > > wrote: > > >> /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" > > > 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 fin= d > > 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. > > > -- > =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, > UNIX mailto:developerunix@gmail.com > Hi, Your problem, as Mark told you, is that you are buildinga gateway to connect two networks on the same subnet. Regards, Alexandre