Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2002 19:53:00 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        "J. W. Ballantine" <jwb@homer.att.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: gateway on different subnet 
Message-ID:  <20021216194135.L52840-100000@cactus.fi.uba.ar>
In-Reply-To: <200212162030.gBGKUGL00679@akiva.homer.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Dec 2002, J. W. Ballantine wrote:

>
> Here are the leases, ifconfig and netstat:

First things first: xl0 does not have an IP address. Try runing:
# killall dhclient; dhclient xl0
# ifconfig xl0
# netstat -nrf inet

and post the output

Second, the default gateway *must* be on the same subnet. The RFC says so.
If they say, "But it works with windows" say you don't care, their setup
is broken, and against the norm.

There are some workarounds to make it work. Basically you need to get
the MAC of the modem, and do an static ARP entry with a fake IP for it, and
adding that as the default gw.


			Fer

> tinlizzie# ifconfig xl0
> xl0: flags=c843<UP,BROADCAST,RUNNING,SIMPLEX,LINK2,MULTICAST> mtu 1500
>         options=3<rxcsum,txcsum>
>         inet6 fe80::201:2ff:fe54:cadd%xl0 prefixlen 64 scopeid 0x1
>         ether 00:01:02:54:ca:dd
>         media: Ethernet autoselect (10baseT/UTP)
>         status: active
>
>
> ----------  In Response to your message -------------
>
> >  Date:  Mon, 16 Dec 2002 12:09:12 -0800
> >  To:  "Marco Radzinschi" <marco@radzinschi.com>,
>         "J. W. Ballantine" <jwb@homer.att.com>
> >  From:  "Brian" <bri@sonicboom.org>
> >  Subject:  Re: gateway on different subnet
> >
> >  If you just do a dhcp setup, do an ifconfig -a, netstat -r and paste the
> >  results.
> >
> >      Bri
> >
> >  ----- Original Message -----
> >  From: "J. W. Ballantine" <jwb@homer.att.com>
> >  To: "Marco Radzinschi" <marco@radzinschi.com>
> >  Cc: <freebsd-questions@FreeBSD.ORG>
> >  Sent: Monday, December 16, 2002 11:54 AM
> >  Subject: Re: gateway on different subnet
> >
> >
> >  >
> >  > When I do the route add default, I get:
> >  >
> >  > tinlizzie# route -v add -net default 10.17.47.37
> >  > u: inet 0.0.0.0; u: inet 10.17.47.37; u: inet 0.0.0.0; RTM_ADD: Add Route:
> >  len
> >  > 128, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,STATIC
> >  > >
> >  > locks:  inits:
> >  > sockaddrs: <DST,GATEWAY,NETMASK>
> >  >  default 10.17.47.37 default
> >  > route: writing to routing socket: Network is unreachable
> >  > add net default: gateway 10.17.47.37: Network is unreachable
> >  >
> >  >
> >  > ----------  In Response to your message -------------
> >  >
> >  > >  Date:  Mon, 16 Dec 2002 14:46:12 -0500 (EST)
> >  > >  To:  "J. W. Ballantine" <jwb@homer.att.com>
> >  > >  From:  Marco Radzinschi <marco@radzinschi.com>
> >  > >  Subject:  Re: gateway on different subnet
> >  > >
> >  > >
> >  > >  On Mon, 16 Dec 2002, J. W. Ballantine wrote:
> >  > >
> >  > >  > Hi,
> >  > >  >
> >  > >  > In order to save the internet address space, my cable co has setup
> >  their
> >  > >  > network with a live address for my
> >  > >  > PC but an address on a private 10.0.0.0 network for the cable modem.
> >  > >  > Now of course, this is also the
> >  > >  > gateway and dhcp server.  The problem is trying to get FreeBSD to use
> >  > >  > this private address as the gateway for
> >  > >  > the live address.    This config works for windows and they claim mac
> >  > >  > OS, but I can't get it to work for FreeBSD.  I've tried ifconfig
> >  > >  > default, but that returns NO ROUTE TO HOST, and I've thougth about
> >  using
> >  > >  > an alias on the
> >  > >  > NIC, but that would send it out with the private network address and
> >  not
> >  > >  > be able to find its way home.
> >  > >  >
> >  > >  > Any of you network wizards out there have the proper spell to get
> >  this
> >  > >  > working???
> >  > >  >
> >  > >  > Thanks
> >  > >  >
> >  > >  > Jim Ballantine
> >  > >
> >  > >  As lnog as your internal subnet is different from the cable modem's
> >  > >  subnet, you should be fine, as the DHCP client ought to set up the
> >  default
> >  > >  route for you.
> >  > >
> >  > >  Otherwise, "route add default <IP>" should do it.  It is my
> >  understanding
> >  > >  that the default route should not be the cable modem though, since it
> >  is
> >  > >  supposed to act like a bridge.
> >  > >
> >  > >  AT least this is how it works for me, except that the cable modem has a
> >  > >  192.168.100.* address as well as a 10/8, but I don't have either as a
> >  > >  default route.
> >  > >
> >  > >  Marco Radzinschi
> >  > >  E-Mail: marco@radzinschi.com
> >  > >
> >  > >  Mon Dec 16 14:42:22 EST 2002
> >  > >
> >  >
> >  >
> >  >
> >  > To Unsubscribe: send mail to majordomo@FreeBSD.org
> >  > with "unsubscribe freebsd-questions" in the body of the message
> >  >
> >
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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