On 10/20/2013 11:25 AM, Bruce Dubbs wrote:
> Casey Daniels wrote:
>> On 10/20/2013 10:36 AM, Bruce Dubbs wrote:
>>> Casey Daniels wrote:
>>>> My system was working fine, until I decided that I needed to add an
>>>> additional Network interface card (turned on the previous deactivated
>>>> onboard NIC).  Now my network card names are all messed up.  I've edited
>>>> the 70-persistent-net.rules file, but udev seems to be ignoring it and
>>>> naming devices as it pleases.
>>>>
>>>> I have 4 Ethernet Devices and 2 wlan Devices, is that too many for udev
>>>> to rename properly?
>>> No.
>>>
>>> Can you post your 70-persistent-net.rules file?
>>>
>>>       -- Bruce
>>>
>>>
>>>
>> # This file was automatically generated by the /lib/udev/write_net_rules
>> # program, run by the persistent-net-generator.rules rules file.
>> #
>> # You can modify it, as long as you keep each rule on a single
>> # line, and change only the value of the NAME= key.
>>
>> # net device e1000e
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
>>
>> # net device e1000e
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
>>
>> # net device e1000e
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
>>
>> # net device e1000e
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
>>
>> # net device iwlwifi
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
>>
>> # net device iwlwifi
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
>>
>> MAC Address replaced with X's, if you need the actual address let me know.
> Are these lines split for email or are they that way in the file?  I
> think you need to escape some newlines. For example,
>
> # net device e1000e
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
> ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{dev_id}=="0x0", \
> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
>
> You can also try:
>
> udevadm test --action=ADD /sys/class/net/<device>
>
>     -- Bruce
>
>
Is there a way to see if Udev is even reading the 
70-persistent-net.rules on boot?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to