Bind NIC to hardware address?

Andreas andreas at tiddelipom.com
Mon Mar 5 17:49:53 UTC 2007


Hi,
My firewall with Ubuntu works like a charm, 2x dual port gigabit 
ethernet cards and iptables firewall and all that. Works as said very well.
My problem is when I restart the box, the nics order switches around.

For example, the first time I booted the machine it looked like this:
eth0 - Internal lan
eth1 - DMZ
eth2 - ISP1
eth3 - ISP2

The next time I reboot the machine it can look like this:
eth0 - ISP2
eth1 - DMZ
eth2 - Internal LAN
eth3 - ISP1

This is very annoying.
I figured the modules loaded in a different order, for some reason. Can 
I lock down somehow, so port 0 on the broadcom card always is eth0, 
port1 on the broadcom card etc., based on what MAC address the port has?

Regards
Andreas






More information about the ubuntu-users mailing list