Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] net.eth0 needs restart then wait 30s
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nth10sd
n00b
n00b


Joined: 31 Dec 2004
Posts: 48

PostPosted: Sun Jul 05, 2020 7:51 am    Post subject: [SOLVED] net.eth0 needs restart then wait 30s Reply with quote

I managed to set up Gentoo again after 15 years! (My first successful attempt was ~2004, then life events took over).

However, after compiling a new kernel via genkernel-next, I ran into something very weird. I plug an Ethernet cable directly into the computer, so no wireless stuff. I have net.eth0 up, however, to get it to work, I need to do a
Code:
/etc/init.d/net.eth0 restart
then wait for 30s and I'll be able to ping any website successfully.

I don't recall needing to do this when I first booted into Gentoo with the original genkernel-next setup. Perhaps I had configured something wrongly?

Code:
$ lspci -k
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V (rev 10)
   Subsystem: ASUSTeK Computer Inc. Ethernet Connection (7) I219-V
   Kernel driver in use: e1000e
   Kernel modules: e1000e


Code:
$ grep E1000 /usr/src/linux/.config
CONFIG_E1000=m
CONFIG_E1000E=m
CONFIG_E1000E_HWTS=y


Code:
$ lsmod | grep e1000e
e1000e                180224  0
ptp                    20480  3 tg3,e1000e,ixgbe


Code:
$ dmesg | grep e1000e
[    5.603630] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    5.603630] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    5.603762] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[    5.883451] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock
[    5.956756] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 0c:9d:92:83:f2:34
[    5.956757] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection
[    5.956813] e1000e 0000:00:1f.6 eth0: MAC: 13, PHY: 12, PBA No: FFFFFF-0FF
[   11.059233] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx


Code:
$ rc-update show
            alsasound | boot                                   
         avahi-daemon |      default                           
               binfmt | boot                                   
             bootmisc | boot                                   
              cgroups |                                 sysinit
               cronie |      default                           
                cupsd |      default                           
                 dbus |      default                           
                devfs |                                 sysinit
                dmesg |                                 sysinit
                 fsck | boot                                   
             hostname | boot                                   
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
              metalog |      default                           
              modules | boot                                   
             mount-ro |                        shutdown       
                 mtab | boot                                   
             net.eth0 |      default                           
             netmount |      default                           
     opentmpfiles-dev |                                 sysinit
   opentmpfiles-setup | boot                                   
               procfs | boot                                   
                 root | boot                                   
         save-keymaps | boot                                   
    save-termencoding | boot                                   
            savecache |                        shutdown       
                 sshd |      default                           
                 swap | boot                                   
               sysctl | boot                                   
                sysfs |                                 sysinit
         termencoding | boot                                   
                 udev |                                 sysinit
         udev-trigger |                                 sysinit
              urandom | boot                                   
                  xdm |      default       


After the net.eth0 manual restart:

Code:
$ ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.12  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5dff:a3c3:7a18:5722  prefixlen 64  scopeid 0x20<link>
        ether 0c:9d:92:83:f2:34  txqueuelen 1000  (Ethernet)
        RX packets 15962  bytes 10200488 (9.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11227  bytes 2382099 (2.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xa1200000-a1220000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 101  bytes 9506 (9.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 101  bytes 9506 (9.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Running:
Code:
modprobe e1000e


as root doesn't show any errors.

I don't have a /etc/conf.d/net file as it's just dhcp. I had also turned on parallel loading of services in OpenRC.


Last edited by nth10sd on Sun Jul 05, 2020 8:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46122
Location: 56N 3W

PostPosted: Sun Jul 05, 2020 5:28 pm    Post subject: Reply with quote

nth10sd,

Parallel loading of services in OpenRC is not very robust and is discouraged.

Turn that off and report back.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nth10sd
n00b
n00b


Joined: 31 Dec 2004
Posts: 48

PostPosted: Sun Jul 05, 2020 8:48 pm    Post subject: Reply with quote

Thanks, @NeddySeagoon, turning off parallel loading did help. When I login via lightdm once it appears, go to Terminal, try to get a ping, it doesn't yet work... until 3-5 seconds later. I guess this is the intended way?

I use xfce4. Is there any way to put a "network" connected icon in the bottom right, similar to wireless connectivity icons, but for Ethernet? i.e. similar to the way Windows 10 works.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46122
Location: 56N 3W

PostPosted: Sun Jul 05, 2020 9:08 pm    Post subject: Reply with quote

nth10sd,

When you say ping doesn't work, there are three parts to this.

1. Getting the ethernet link alive.
2. Using the link to get an ipaddress and a default route
3. Using the link to get a nameserver.

ping google.com requires that your nameserver be set up.
ping 216.58.212.238 is the same thing without need the nameserver to tell your system that google.com is actually 216.58.212.238.

For 1, you should have a lise in dmesg like
Code:
[  315.881088] r8169 0000:0a:06.0 eth0: Link is Up - 1Gbps/Full - flow control off
Its 315 seconds for me as my boot decided it needed a filesystem check.

I don't use dhcp on this system as it needs to work when the dhcp server is down, so I can fix it it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum