Debian Networking Issues
From 5dollarwhitebox.org Media Wiki
Contents |
Debian: Force the order of ETH devices
It may be the day that you have a box with three interfaces that must be listed in a specific order. Debian can at times detect eth0 as one device, and then on the next reboot detect eth0 as a different device.
Option 1
Use the script '/usr/share/doc/ifupdown/examples/get-mac-address.sh'.
cp /usr/share/doc/ifupdown/examples/get-mac-address.sh /usr/local/bin/get-mac-address.sh chmod 755 /usr/local/bin/get-mac-address.sh
You need to know what your MAC addresses are for each interface. You can get this by typing 'ifconfig eth0'... it is labeled as 'HWADDR' or something similar. Next, modify your '/etc/network/interfaces' (Configure similar to this):
auto lo
iface lo inet loopback
auto eth0 eth1 eth2
mapping eth0 eth1 eth2
script /usr/local/bin/get-mac-address.sh
map 00:E1:71:2F:7E:E1 net0
map 00:E2:81:1F:8E:E2 net1
map 00:E0:71:1F:6E:F8 net2
iface net0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
... etc
Option 2
Add the modules to '/etc/modules' which lists the modules to load (forcing it to load in a particular order). Vi /etc/modules, and add:
tg3 e1000
Debian: Can not start networking
If you receive the error '/etc/network/run/ifstate' file does not exist, you might be running devfs:
rm /etc/network/run
mkdir /etc/network/run
REFERENCE: http://lists.debian.org/debian-devel-changes/2005/04/msg00320.html
ifupdown (0.6.4-4.11) unstable; urgency=low
.
* Non-maintainer upload
* postinst:
+ Do not make /etc/network/run a symlink to /dev/shm/network/
if devfs is in use. (Closes: #266479)
