Re: multiple interfaces: eth0 & wlan0
On Mon, Sep 6, 2010 at 11:03 PM, Bob Proulx <bob@proulx.com> wrote:
> Mathieu Malaterre wrote:
>>>> Right now both eth0 and wlan0 are up (as reported by ifconfig)
>>
>> Kernel IP routing table
>> Destination Gateway Genmask Flags MSS Window irtt Iface
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
>> 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 wlan0
>
> This doesn't show eth0 as being up and online. This only shows
> wlan0. Are you sure eth0 is up and online?
oops while answering your email, I ifdown'ed eth0 just to make sure it
was up. I forgot to ifup'ed it back.
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 wlan0
$ ip route show
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.21
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.19
default via 192.168.0.254 dev eth0
default via 192.168.0.254 dev wlan0
This is a small ppc mac mini, connected to a freebox (french tivo). I
thought I could use eth0 for upnp (mediathomb), while having wlan0 for
remote ssh session from my laptop...
How do I configure prefered route ?
Thanks again,
--
Mathieu
Reply to: