--=-norL4QRk5t43W51udD8G Content-Type: text/plain Content-Transfer-Encoding: 7bit
The relevant file is /etc/network/interfaces - see man 5 interfaces. On Thu, 2008-07-03 at 16:27 +0300, Noam Rathaus wrote: > Hi, > > I moved an HD from one computer to another (not related to the grub issue > :D), > and because there is a different network card, eth0 is not longer present and > now eth1 is the deacto network card. > > I don't want to reconfigure a few products I have bounded to eth0 (mainly > firewall rules). > > How can I "force" it to use the new network card driver on eth0 instead of > eth1? > > Or basically, where is it written that eth0 is 'thismodule' while eth1 > is 'thisothermodule'? > > I tried modprobe.conf/modules.conf: > alias eth0 e1000e > > Without success - it still - after modprobe e1000e - gives me access to it > only through eth1 -- 42 is the answer to everything. Food is the answer to everything except obesity. My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html --=-norL4QRk5t43W51udD8G Content-Disposition: attachment; filename=check-mac-address.sh Content-Type: application/x-shellscript; name=check-mac-address.sh Content-Transfer-Encoding: 7bit #!/bin/sh # Checks if the given interface matches the given ethernet MAC # if it does it exits with 0 status, if it doesn't then it exists # with 1 (error) status. set -e export LANG=C if [ ! -n "$1" -o ! -n "$2" ] ; then echo "Usage: $0 IFACE targetMAC" exit 1 fi iface="$1" targetmac=`echo "$2" | sed -e 'y/ABCDEF/abcdef/'` mac=$(/sbin/ifconfig "$iface" | sed -n -e '/^.*HWaddr \([:[:xdigit:]]*\).*/{s//\1/;y/ABCDEF/abcdef/;p;q;}') if [ "$targetmac" = "$mac" ]; then exit 0; else exit 1; fi --=-norL4QRk5t43W51udD8G-- ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
