Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2012 16:12:38 +0200
From:      Alexandre <axelbsd@ymail.com>
To:        "UNIX developer @ Google.com" <developerunix@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with routing in VmWare VMS
Message-ID:  <CA%2B8gk98PgUdwJSgDMLij3D9P5TYdwUpDDM-7FRR1S5Je0WRN%2Bw@mail.gmail.com>
In-Reply-To: <1988813484.20120622161309@gmail.com>
References:  <1842148286.20120621235936@gmail.com> <op.wf9wkzvm34t2sn@tech304> <1988813484.20120622161309@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> > <developerunix@gmail.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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B8gk98PgUdwJSgDMLij3D9P5TYdwUpDDM-7FRR1S5Je0WRN%2Bw>