Bind NIC to hardware address?
Michael R Head
burner at suppressingfire.org
Tue Mar 6 05:01:18 UTC 2007
On Mon, 2007-03-05 at 18:49 +0100, Andreas wrote:
> 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.
/etc/iftab is the thing. Here's the contents (with my MAC addresses
hidden):
# This file assigns persistent names to network interfaces. See iftab(5).
# Replaced during upgrade
eth0 mac XX:XX:XX:XX:XX:XX
eth1 mac XX:XX:XX:XX:XX:XX
mike
> 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