Skip to contentSkip to conversation

NIC configuration problem

DISCUSSION E2Erdem 2 participants 3 messages May 21, 2007

lore
Share & tools
lore

E2Erdem

author
#0 lore raw

Hi,

I want to use static IP for my network card. But I can't. On every reboot my UDEV sets another name (eth1 to eth10) for my NIC and uses DHCP.

I configured my interface file properly:
## /etc/network/interfaces

--
allow-hotplug eth0
auto eth0
iface eth0 inet static

        address 10.0.0.1
        netmask 255.255.255.0
        network 10.0.0.0
        broadcast 10.0.0.

--

##

But it seems UDEV doesn't look there. When I try to restart network manualy I get this error:
eth0: ERROR while getting interface flags: No such device

My OS is Debian GNU/Linux with AMD64 kernel. My UDEV version is 0.105-4.

## /etc/udev/rules.d/z25_persistent-net.rules

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:59:8e:df", NAME="eth1"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:29:a0:90", NAME="eth2"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:0e:3e:48", NAME="eth3"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:4e:ce:50", NAME="eth4"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:14:b8:98", NAME="eth5"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:dd:87:46", NAME="eth6"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:00:51:bc", NAME="eth7"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM="net", DRIVERS="?*", ATTRS{address}="00:00:6c:e6:bb:ee", NAME="eth8"

##

I'm not on the list, please CC me.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 3 lines · On May 21, E2Erdem <[email protected]> wrote:

I want to use static IP for my network card. But I can't. On every reboot my UDEV sets another name (eth1 to eth10) for my NIC and uses DHCP.

The forcedeth driver and/or hardware is broken and uses a random MAC address at each boot. You cannot use MAC-based persistent interface names. Workaround:
rm -f /etc/udev/rules.d/*_persistent-net*.rules

Signature · 2 lines
ciao,
Marco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

author
#2 lore raw
In reply to E2Erdem
Quoted 9 lines · Marco d'Itri
Quoted 3 lines · On May 21, E2Erdem <[email protected]> wrote:

I want to use static IP for my network card. But I can't. On every reboot my UDEV sets another name (eth1 to eth10) for my NIC and uses DHCP.

The forcedeth driver and/or hardware is broken and uses a random MAC address at each boot. You cannot use MAC-based persistent interface names. Workaround:
rm -f /etc/udev/rules.d/*_persistent-net*.rules

Thank you.

Removing this files solved my problem. I hope this solution doesn't create another problem.

Please CC me.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel