[ale] Network Connection - Lack Thereof

DJ-Pfulio DJPfulio at jdpfu.com
Sun Nov 6 20:53:42 EST 2016


Thought /etc/udev didn't exist anymore. Systemd took over that.
I modified grub conf to always force the wired NIC to be eth0. Life has
been easier since on single NIC machines. Google will find the steps.

For multi-NIC machines, I use the F*&^%ng systemd names.  Another
problem systemd tried to fix that I didn't have.  More unwanted
complexity to help 2% of the users.

On 11/06/2016 07:12 PM, Phil Turmel wrote:
> On 11/06/2016 06:45 PM, Jim Kinney wrote:
>> So the kernel changed and now uses the bus designations for nics.
> 
> Actually, that's udev's name slot ruleset.
> 
>>     ifconfig shows *no* eth0, just enp63s0 for the already-known MAC address.
>>
>>     System was working fine yesterday, but when we attempted to boot up
>>     today, it has been going bonkers.
>>
>>     Ideas for me to try?
> 
> Replace eth0 with enp63s0 in your network config files.
> 
> Possibly use a custom name rule to use a name of your choice.  It would be unwise to keep using eth0, as that name can no longer be trusted to be the expected interface.  (That's been true for a while now, but many systems have fairly repeatable boot sequences.)  Note that you can still make the board-level rules available as a fallback.
> 
> Here's a trimmed sample from my custom rule file in /etc/udev/rules.d/80-net-name-slot.rules
> 
> ######## Cut here ###########
> 
> ACTION!="add", GOTO="net_name_slot_end"
> SUBSYSTEM!="net", GOTO="net_name_slot_end"
> 
> # Pavilion dv6 PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.1/0000:0d:00.0 (iwlwifi)
> ATTR{address}=="4c:eb:42:98:22:77", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wifi1"
> 
> # AsusTek USB-AC56 USB3 Dual Band Wifi 40:16:7e:b7:98:93 (8812au)
> ATTR{address}=="40:16:7e:b7:98:93", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wifi2"
> 
> # ZBook PCI device 00:19.0 (e1000e)
> ATTR{address}=="ec:b1:d7:c1:70:cd", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="lan1"
> 
> # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.0/0000:07:00.0 (r8169)
> ATTR{address}=="00:00:00:00:00:89", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="lan2"
> 
> # ZBook PCI device 5c:00.0 (iwlwifi)
> ATTR{address}=="80:19:34:32:fb:77", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wifi1"
> 
> NAME!="", GOTO="net_name_slot_end"
> 
> IMPORT{cmdline}="net.ifnames"
> ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
> 
> NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
> NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"
> NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"
> 
> LABEL="net_name_slot_end"
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 


-- 
Got Linux? Used on smartphones, tablets, desktop computers, media
centers, and servers by kids, Moms, Dads, grandparents and IT
professionals.


More information about the Ale mailing list