[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multiple interfaces: eth0 & wlan0



On Mon, Sep 6, 2010 at 10:46 PM, Bob Proulx <bob@proulx.com> 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         UG        0 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


Reply to: