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

Re: howto specifying a default network interface/card



On Wed, Jul 09, 2003 at 02:42:31PM -0400, Harry Barnes wrote:
> I have a pcmcia wireless card and built-in ethernet. Most of the time I am 
> plugged in to the ethernet and would like all  my network related stuff to 
> use that as opposed to wireless. Is there anyway to tell the system that ?

Are you running with both interfaces on all the time? You could turn
off the other,
ifdown eth1
or
ifdown eth0
as needed. 

> 
> other info
> Kernel 2.4.20
> eth0 = built-in ethernet port
> eth1 = wireless(3com office connect with xjack)
> 

Otherwise, if I understand correctly what you want, you can set
default route to go to Ethernet. See what 
netstat -rn 
shows and change with the route command. 

You can also look in /etc/network/interfaces, read
man 5 interfaces
to set it so that Ethernet is used when it is on. I should think it is
set up this way automatically unless you run both interfaces at the
same time and wireless is set up after Ethernet, so default route goes
to wireless.

-- 
Tapio Lehtonen
Tapio.Lehtonen@IKI.FI
GPG public key from http://www.iki.fi/Tapio.Lehtonen

Attachment: pgpTfWrGIuJU9.pgp
Description: PGP signature


Reply to: