From owner-freebsd-mobile@FreeBSD.ORG Wed May 10 18:24:30 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FB1516A594 for ; Wed, 10 May 2006 18:24:30 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB68F43D73 for ; Wed, 10 May 2006 18:22:58 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 13484 invoked from network); 10 May 2006 18:22:55 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.132.200]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 10 May 2006 18:22:55 -0000 Date: Wed, 10 May 2006 20:22:47 +0200 From: Fabian Keil To: Yann Golanski Message-ID: <20060510202247.5b7166e1@localhost> In-Reply-To: <20060510140605.GA17716@kierun.org> References: <20060510070406.GA8103@kierun.org> <20060510155149.68d6c8ea@localhost> <20060510140605.GA17716@kierun.org> X-Mailer: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; i386-portbld-freebsd6.1) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_VBLCY3hNh8d93GyjOpooq=i"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-mobile@freebsd.org Subject: Re: Ath0, netgear WG311T problem. X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 18:24:30 -0000 --Sig_VBLCY3hNh8d93GyjOpooq=i Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Yann Golanski 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 mtu 1500 > options=3D9 > 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 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 mtu 1500 > ether 00:50:8d:5e:3b:4b > media: Ethernet autoselect (none) > status: no carrier > plip0: flags=3D108810 mtu 1500 > lo0: flags=3D8049 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--