← Back to team overview

sslug-teknik team mailing list archive

Opfølgning på: Hvilket Netkort

 

Der var en tråd tidligere om hvilken rækkefølge netkort blev
konfigureret.

På min 2.6.16 er det tilsyneladende tilfældigt hvilket
kort der bliver henholdsvis eth0 / eth1 ved reboot.

Jeg er snublet over en tråd der giver en løsning.

http://lists.debian.org/debian-user/2006/01/msg00075.html

Følgende løser tilsyneladende problemet på slackware (zenwalk).

# /etc/udev/static-nic.rules
#
# Set permission to 0644  'chmod 0644 static-nic.rules', then symlink
#'ln -s static-nic.rules rules.d/025_static-nic.rules'
#
# Purpose:
# Mapping specific MAC address to specific device names for cases where
#  that is expected.
#
# SYSFS{address}="MAC address" - MAC address should be the machine
# address of the network card the rule is for.
#
# NAME="name" - name is the device name you want used for the interface.
# These could be standard names eth0, wlan0, etc... or if you prefer
# something more descriptive lan, internet, wireless, whatever...

KERNEL="eth*", SYSFS{address}="00:00:00:00:00:00", NAME="eth0"
KERNEL="eth*", SYSFS{address}="11:11:11:11:11:11", NAME="eth1"

#end

Enjoy

Mogens


-- 
This message has been scanned for viruses and
dangerous content by FumlerSoft(http://www.fumlersoft.dk), and is
believed to be clean.