Re: multiple interfaces: eth0 & wlan0

2010-09-07 Thread Jon Dowland
On Tue, Sep 07, 2010 at 08:52:29AM +0200, Mathieu Malaterre wrote:
> How do I configure prefered route ?

What is your /etc/network/interfaces?

Statically assign an IP to the wlan0 interface and set the netmask to
255.255.255.255.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100907081032.ga6...@deckard.alcopop.org



Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Mathieu Malaterre
On Mon, Sep 6, 2010 at 11:03 PM, Bob Proulx  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 UG0 0  0 eth0
0.0.0.0 192.168.0.254   0.0.0.0 UG0 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


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktimv3uv=t0bp8ttagscqhmfvfxmjjejtn+mte...@mail.gmail.com



Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Andrei Popescu
On Lu, 06 sep 10, 22:43:10, Mathieu Malaterre wrote:
> Hi,
> 
>   I was not able to find an answer to the following question. So here
> it is: how do I know which interfaces is being used by default (wget,
> apt-get...) in debian ? Right now both eth0 and wlan0 are up (as
> reported by ifconfig)

In cases where you have wired and wireless interfaces and use both it 
makes sense to use a dedicated software to manage them, like wicd. It 
switches automatically to wired if present (configurable), 
network-manager probably does this as well.

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Bob Proulx
Mathieu Malaterre wrote:
>>> Right now both eth0 and wlan0 are up (as reported by ifconfig)
>
> Kernel IP routing table
> Destination GatewayGenmaskFlags   MSS Window  irtt Iface
> 192.168.0.0 0.0.0.0255.255.255.0  U 0 0  0 wlan0
> 0.0.0.0 192.168.0.254  0.0.0.0UG0 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?

Bob


signature.asc
Description: Digital signature


Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Camaleón
On Mon, 06 Sep 2010 22:43:10 +0200, Mathieu Malaterre wrote:

>   I was not able to find an answer to the following question. So here
> it is: how do I know which interfaces is being used by default (wget,
> apt-get...) in debian ? Right now both eth0 and wlan0 are up (as
> reported by ifconfig)

Quick and dirty: make a traceroute to any Internet host and you'll know 
what device is in use :-)

Just guessing, but I think wifi devices take preference over ethernet 
ones (unless otherwise specified).

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.09.06.20.51...@gmail.com



Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Mathieu Malaterre
On Mon, Sep 6, 2010 at 10:46 PM, Bob Proulx  wrote:
> Mathieu Malaterre wrote:
>>   I was not able to find an answer to the following question. So here
>> it is: how do I know which interfaces is being used by default (wget,
>> apt-get...) in debian ? Right now both eth0 and wlan0 are up (as
>> reported by ifconfig)
>
> What is your default route?  Any of these:
>
>  $ netstat -nr
>  $ route -n
>  $ ip route show

Hum... this is bad, it looks like I am using wlan0

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 UG0 0  0 wlan0


192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.21
default via 192.168.0.254 dev wlan0


Is there a way to change the default. Otherwise I'll comment out the
wlan0 section in etc/network/interfaces

thanks again,
-- 
Mathieu


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktinlnhlmnougo8+p4puwtyjt2c0yoyheddiyq...@mail.gmail.com



Re: multiple interfaces: eth0 & wlan0

2010-09-06 Thread Bob Proulx
Mathieu Malaterre wrote:
>   I was not able to find an answer to the following question. So here
> it is: how do I know which interfaces is being used by default (wget,
> apt-get...) in debian ? Right now both eth0 and wlan0 are up (as
> reported by ifconfig)

What is your default route?  Any of these:

  $ netstat -nr
  $ route -n
  $ ip route show

Bob


signature.asc
Description: Digital signature