Ath0, netgear WG311T problem.
Fabian Keil
freebsd-listen at fabiankeil.de
Wed May 10 11:24:30 PDT 2006
Yann Golanski <yann at 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?
>
> Yeah, that look like a likely culprit. How do I change that?
> [Unplug Ethernet cable here]
>
> ; ifconfig
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=9<RXCSUM,VLAN_MTU>
> inet6 fe80::201:2ff:fea6:bc48%xl0 prefixlen 64 scopeid 0x1
> 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet6 fe80::20f:b5ff:fef8:3b92%ath0 prefixlen 64 scopeid 0x2
> 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=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
> ether 00:50:8d:5e:3b:4b
> media: Ethernet autoselect (none)
> status: no carrier
> plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> inet 127.0.0.1 netmask 0xff000000
> ; netstat -rn
> Routing tables
>
> 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.
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
--
http://www.fabiankeil.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mobile/attachments/20060510/0f2e113b/signature.pgp
More information about the freebsd-mobile
mailing list