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

Re: Problem: 2.6.x and network (e1000 Intel 82546EB)



On Thu, Apr 08, 2004 at 05:08:23PM +0200, W. Borgert wrote:
> Question: Is there a way to force the system to use a specific
> interface card for eth0?  Something in /etc/modules or
> /etc/network/interfaces?

i have a pre-up in my interfaces:

iface eth1 inet static
	address 192.168.0.254
	netmask 255.255.255.0
	pre-up /usr/local/bin/check-mac-address.sh eth1 00:30:84:76:68:B2

and the script referenced there looks like this:				

#!/bin/sh -e

iface="$1"
targetmac="$2"
mac=$(/sbin/ifconfig $iface | sed -n 's/^.*HWaddr \([0-9A-Za-z:]*\).*/\1/p')

if [ "$targetmac" = "$mac" ]; then exit 0; else exit 1; fi

found this somewhere on the net...

cu  robert
-- 
Robert Lemmen                               http://www.semistable.com 

Attachment: signature.asc
Description: Digital signature


Reply to: