Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2006 20:22:47 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Yann Golanski <yann@kierun.org>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Ath0, netgear WG311T problem.
Message-ID:  <20060510202247.5b7166e1@localhost>
In-Reply-To: <20060510140605.GA17716@kierun.org>
References:  <20060510070406.GA8103@kierun.org> <20060510155149.68d6c8ea@localhost> <20060510140605.GA17716@kierun.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_VBLCY3hNh8d93GyjOpooq=i
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yann Golanski <yann@kierun.org> wrote:

> Quoth Fabian Keil on Wed, May 10, 2006 at 15:51:49 +0200
> > This could be the result of a routing problem.
> > What's the output of ifconfig and netstat -rn?
>=20
> Yeah, that look like a likely culprit.  How do I change that?

> [Unplug Ethernet cable here]
>=20
> ; ifconfig
> xl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=3D9<RXCSUM,VLAN_MTU>
>         inet6 fe80::201:2ff:fea6:bc48%xl0 prefixlen 64 scopeid 0x1=20
>         inet 192.168.0.13 netmask 0xffffff00 broadcast 192.168.0.255
>         ether 00:01:02:a6:bc:48
>         media: Ethernet autoselect (none)
>         status: no carrier
> ath0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet6 fe80::20f:b5ff:fef8:3b92%ath0 prefixlen 64 scopeid 0x2=20
>         inet 192.168.0.14 netmask 0xffffff00 broadcast 192.168.0.255
>         ether 00:0f:b5:f8:3b:92
>         media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps)
>         status: associated
>         ssid NEVERNESS channel 6 bssid 00:0f:b5:c1:09:18
>         authmode OPEN privacy OFF NULL 1:40-bit NULL 2:40-bit
>         NULL 3:40-bit NULL 4:40-bit txpowmax 32 protmode CTS bintval 100
> vr0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
>         ether 00:50:8d:5e:3b:4b
>         media: Ethernet autoselect (none)
>         status: no carrier
> plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet6 ::1 prefixlen 128=20
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5=20
>         inet 127.0.0.1 netmask 0xff000000=20
> ; netstat -rn
> Routing tables
>=20
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif Expire
> default            192.168.0.1        UGS         0    64297    xl0
> 127.0.0.1          127.0.0.1          UH          0    34613    lo0
> 192.168.0          link#1             UC          0        0    xl0
> 192.168.0.1        00:0f:b5:c1:09:18  UHLW        2     3546    xl0
> 1171

Using two IPs on the same network, with the same netmask
on two different interfaces at the same time is asking for
trouble.

You can use route(8) to reconfigure the routes, but unless you
change xl0's IP when it's down, it will grab the default route
again.=20

I guess you never need both NICs on the same network at the
same time, so why don't you use a script which brings one
NIC down, removes the IP, flushes all routes, brings the other
NIC up, sets the IP and reconfigures the routes?

Fabian
--=20
http://www.fabiankeil.de/

--Sig_VBLCY3hNh8d93GyjOpooq=i
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEYi99jV8GA4rMKUQRAsU2AJkBFSSNCTVbtJ/pCn3LnU6pf9VwRwCggID0
N751BvnbPGasGg+6nGMoV+k=
=26db
-----END PGP SIGNATURE-----

--Sig_VBLCY3hNh8d93GyjOpooq=i--



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