Bind NIC to hardware address?

nodata lsof at nodata.co.uk
Mon Mar 5 18:07:16 UTC 2007


Am Montag, den 05.03.2007, 18:49 +0100 schrieb Andreas:
> 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
> 
> 
> 

ifrename





More information about the ubuntu-users mailing list