Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Switching from eudev to udev, disaster.
Date: Sun, 28 Nov 2021 20:04:10
Message-Id: 93ba5732-caae-b26f-5b51-4d6145c59835@gmail.com
In Reply to: Re: [gentoo-user] Switching from eudev to udev, disaster. by Jack
1 Jack wrote:
2 >
3 > I'd suggest checking the wiki for network setup, but it's still down,
4 > and (of course) I can't currently find the URL for the status page. 
5 > General searching for "consistent network naming" or "persistent
6 > network naming" is also likely to find some helpful pages (among the
7 > not so helpful...)
8 >
9 > If you know the kernel module you use for ethernet (even if it's built
10 > in) you can search for that in dmesg.  For example, my dmesg includes
11 > "[   19.528285] r8169 0000:19:00.0 enp25s0: renamed from eth0"  If
12 > you're not sure, lspci can help: mine includes "19:00.0 Ethernet
13 > controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI
14 > Express Gigabit Ethernet Controller (rev 15)"  so you could find the
15 > PCI address for your network card and search for that in dmesg.  (19
16 > hex is 25 decimal to get the network name)
17
18
19 Yep, your info helped.  Oh, Gentoo wiki is up and that helped too.  I
20 was able to access the install docs and print it for reference.  Anyway,
21 I removed eudev, emerged udev and rebooted, since it names the devices
22 during boot up, I thought that made sense.  When I got booted up,
23 naturally the network didn't work.  To make it easy I just logged into
24 KDE.  In a Konsole I ran both ip a and ifconfig.  Both agreed the
25 network was named enp3s0.  I then simply renamed the old net.eth0 file
26 to net.enp3s0.  After that, it came up but it didn't know to use DHCP
27 but did try it as a last resort.  That will slow things down so I went
28 digging for the file, /etc/conf.d/net, and changed the name of the
29 network to the new deal.  Once all this was done, I ended up with this
30 and it trying DHCP first.
31
32
33 root@fireball / # dmesg | grep e1000
34 [    0.531129] pci 0000:06:00.0: reg 0x30: [mem 0xfe100000-0xfe13ffff pref]
35 [    0.531486] pci 0000:00:15.0:   bridge window [mem 0xfe100000-0xfe1fffff]
36 [    0.568155] pci 0000:00:15.0:   bridge window [mem 0xfe100000-0xfe1fffff]
37 [    0.569693] pci_bus 0000:06: resource 1 [mem 0xfe100000-0xfe1fffff]
38 [    0.814373] e1000: Intel(R) PRO/1000 Network Driver
39 [    0.814432] e1000: Copyright (c) 1999-2006 Intel Corporation.
40 [    0.814510] e1000e: Intel(R) PRO/1000 Network Driver
41 [    0.814566] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
42 [    0.814775] e1000e 0000:03:00.0: Interrupt Throttling Rate (ints/sec)
43 set to dynamic conservative mode
44 [    0.901776] e1000e 0000:03:00.0 eth0: (PCI Express:2.5GT/s:Width x1)
45 68:05:ca:42:17:39
46 [    0.901855] e1000e 0000:03:00.0 eth0: Intel(R) PRO/1000 Network
47 Connection
48 [    0.901925] e1000e 0000:03:00.0 eth0: MAC: 3, PHY: 8, PBA No: E46981-008
49 [    9.795053] e1000e 0000:03:00.0 enp3s0: renamed from eth0
50 [  275.422120] e1000e 0000:03:00.0 enp3s0: NIC Link is Up 1000 Mbps Full
51 Duplex, Flow Control: Rx/Tx
52 root@fireball / # ip a
53 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
54 group default qlen 1000
55     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
56     inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
57        valid_lft forever preferred_lft forever
58     inet6 ::1/128 scope host
59        valid_lft forever preferred_lft forever
60 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
61 state UP group default qlen 1000
62     link/ether 68:05:ca:42:17:39 brd ff:ff:ff:ff:ff:ff
63     inet 192.168.0.100/24 brd 192.168.0.255 scope global dynamic
64 noprefixroute enp3s0
65        valid_lft 7134sec preferred_lft 6234sec
66     inet6 fe80::1eef:2ca0:c286:9eec/64 scope link
67        valid_lft forever preferred_lft forever
68 3: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
69 default qlen 1000
70     link/ether 94:de:80:cc:0c:39 brd ff:ff:ff:ff:ff:ff
71     altname enp4s0
72 4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
73     link/sit 0.0.0.0 brd 0.0.0.0
74 root@fireball / #
75
76
77 I'm mostly posting this just on the off chance someone else runs into
78 this and needs some guidance, I sure did.  o_O  Oh, don't forget to
79 remove the old network and add the new network to the default runlevel
80 as it should be. 
81
82 So, thanks Jack for the help.  The wiki coming up helped to but you got
83 me started by knowing what I should look for and where.  I think I could
84 have done this without the wiki and just the info you provided.  As a
85 bonus, I have the new network name. 
86
87 Dale
88
89 :-)  :-)