[conspire] Routing question

Ryan Russell ryan at thievco.com
Sat May 31 09:09:54 PDT 2008

Edmund J. Biow wrote:
> # ifconfig -a
> ath0      Link encap:Ethernet  HWaddr 00:13:46:B5:AE:90 
>           inet addr:  Bcast:  Mask:
>           inet6 addr: fe80::213:46ff:feb5:ae90/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1395 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1114 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:1009725 (986.0 KiB)  TX bytes:93931 (91.7 KiB)
> eth0      Link encap:Ethernet  HWaddr 00:0F:B0:10:02:38 
>           inet addr:  Bcast:  Mask:
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:185 Base address:0x4000
> The ethernet is set with a static IP address, otherwise I suspect it
> wouldn't have any address at all. wifi0 is a built-in Broadcom wifi card
> that doesn't even work properly with Windoze.
> But I do the magic command and all is good, I can mount my shares and
> see my local web page.
> # route add  -net gw

Right. You have a directly-connected interface (eth0) which is in 
192.168.1.x, so it would normally use that route. You're overriding that 
with a route to go over ath0 instead. To solve, either deconfig the IP 
address on eth0 or use the route add command you're using.

Also, but unrelated, the broadcast address on eth0 is wrong.


More information about the conspire mailing list