Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 809843] Random eth0/eth1 name space with two Ethernet driver modules

https://bugzilla.novell.com/show_bug.cgi?id=809843

https://bugzilla.novell.com/show_bug.cgi?id=809843#c13


Dr. Werner Fink <werner@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
InfoProvider|werner@xxxxxxxx |

--- Comment #13 from Dr. Werner Fink <werner@xxxxxxxx> 2013-03-19 08:33:57 UTC
---
(In reply to comment #12)

Just add a variable HWADDR with the hardware address of the network device to
the ifcfg-eth<#> files. Then a rule file

/dev/.udev/rules.d/70-network-eth<#>.rules

with e.g.

for cfg in /etc/sysconfig/network/ifcfg-eth* ; do
unset HWADDR
. $cfg
test -n "$HWADDR" || continue
ETHNUM=${cfg#*ifcfg-}
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*"', \
'ATTR{address}=="'$HWADDR'", ATTR{dev_id}=="0x0", ATTR{type}=="1",' \
'KERNEL=="eth*", NAME="'$ETHNUM'"' >
/dev/.udev/rules.d/70-network-$ETHNUM.rules
done

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References