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

Re: 2 pcmcia ethernet cards?



On Thu, 6 Jun 2002 05:24:01 -0600
"Dave Price" <davep@kinaole.org> wrote:

> Yes - I want to know/control which is eth1 and eth0, since firewall,
> dhcp, etc scripts use this notation to configure behavior

While not an ideal solution, you could dynamically determine
which-is-which with a few commands in a shell script, provided you know
their MAC addresses.  For example:

MAC1="00:50:56:C0:00:08"
INT1=`/sbin/ifconfig | grep $MAC1 | awk {'print $1'}`

-- 
Jamin W. Collins


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: