0

I've searched the web already about this issue. It seems many are facing it, but unfortunately none of those solutions seemed to have worked with me.

My latest is this one, where I've reinstalled the NIC driver.

I've also tried adding my card to the file /etc/network/interfaces so as to avoid NetworkManager using it, but the result is the same: endless DHCP Discover messages and no OFFER in response.

Sep  2 14:25:21 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 12 (xid=0xc5f73c43)
Sep  2 14:25:22 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 19 (xid=0xa5e64914)
Sep  2 14:25:33 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 12 (xid=0xc5f73c43)
Sep  2 14:25:41 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 11 (xid=0xa5e64914)
Sep  2 14:25:45 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 21 (xid=0xc5f73c43)
Sep  2 14:25:52 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 20 (xid=0xa5e64914)
Sep  2 14:26:06 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 17 (xid=0xc5f73c43)
Sep  2 14:26:12 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 9 (xid=0xa5e64914)
Sep  2 14:26:21 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 14 (xid=0xa5e64914)
Sep  2 14:26:23 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 16 (xid=0xc5f73c43)
Sep  2 14:26:35 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 16 (xid=0xa5e64914)
Sep  2 14:26:39 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 10 (xid=0xc5f73c43)
Sep  2 14:26:49 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 12 (xid=0xc5f73c43)
Sep  2 14:26:51 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 8 (xid=0xa5e64914)
Sep  2 14:26:59 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 12 (xid=0xa5e64914)
Sep  2 14:27:01 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7 (xid=0xc5f73c43)
Sep  2 14:27:08 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 9 (xid=0xc5f73c43)
Sep  2 14:27:11 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 15 (xid=0xa5e64914)
Sep  2 14:27:17 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 14 (xid=0xc5f73c43)
Sep  2 14:27:26 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 19 (xid=0xa5e64914)
Sep  2 14:27:31 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7 (xid=0xc5f73c43)
Sep  2 14:27:38 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 8 (xid=0xc5f73c43)
Sep  2 14:27:45 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 21 (xid=0xa5e64914)
Sep  2 14:27:46 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 9 (xid=0xc5f73c43)
Sep  2 14:27:55 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 7 (xid=0xc5f73c43)
Sep  2 14:28:02 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 12 (xid=0xc5f73c43)
Sep  2 14:28:06 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 18 (xid=0xa5e64914)
Sep  2 14:28:14 lucas-HP-240-G6-Notebook-PC dhclient[4514]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 17 (xid=0xc5f73c43)
Sep  2 14:28:24 lucas-HP-240-G6-Notebook-PC dhclient[4045]: DHCPDISCOVER on eno1 to 255.255.255.255 port 67 interval 20 (xid=0xa5e64914)

I've tried a different PC on my switch port, and it is getting and IPv4 address, so not the switch nor the DCHP Server are faulty.

Also, my wifi card gets connected to the AP.

This is my system:

lucas@lucas-HP-240-G6-Notebook-PC:~$ uname -a
Linux lucas-HP-240-G6-Notebook-PC 4.4.0-161-generic #189-Ubuntu SMP Tue Aug 27 08:10:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Li

lucas@lucas-HP-240-G6-Notebook-PC:~$ lshw -c network
WARNING: you should run this program as super-user.
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eno1
       version: 15
       serial: f4:30:b9:9e:5f:73
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.046.00-NAPI duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:126 ioport:4000(size=256) memory:b1104000-b1104fff memory:b1100000-b1103fff
  *-network
       description: Wireless interface
       product: Realtek Semiconductor Co., Ltd.
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlo1
       version: 00
       serial: 40:9f:38:22:15:ef
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8723de ip=10.10.39.74 latency=0 multicast=yes wireless=IEEE 802.11bgn
       resources: irq:131 ioport:3000(size=256) memory:b1000000-b100ffff
  *-network DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: virbr0-nic
       serial: 52:54:00:da:ff:85
       size: 10Mbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=no multicast=yes port=twisted pair speed=10Mbit/s
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.


lucas@lucas-HP-240-G6-Notebook-PC:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether f4:30:b9:9e:5f:73 brd ff:ff:ff:ff:ff:ff
    inet 169.254.8.56/16 brd 169.254.255.255 scope link eno1:avahi
       valid_lft forever preferred_lft forever
    inet6 fe80::8ae2:b747:3347:da25/64 scope link 
       valid_lft forever preferred_lft forever
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 40:9f:38:22:15:ef brd ff:ff:ff:ff:ff:ff
    inet 10.10.39.74/22 brd 10.10.39.255 scope global dynamic wlo1
       valid_lft 13766sec preferred_lft 13766sec
    inet6 fe80::cfdf:3c42:b81f:1af6/64 scope link 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 52:54:00:da:ff:85 brd ff:ff:ff:ff:ff:ff

This is the content of /etc/network/interfaces...

lucas@lucas-HP-240-G6-Notebook-PC:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet dhcp

any hint?

thanks!

5
  • 1
    You may have a bad cable, because your link speed is only 100Mb. Try a different cat 5E or cat 6 cable. Pull the AC power on the switch, wait 10 seconds, reconnect AC power. Report back. Start comments to me with @heynnema or I'll surely miss them.
    – heynnema
    Sep 2, 2019 at 18:49
  • If my first comment doesn't resolve this, there's a slight possibility that the r8168 driver version 8.046.00 that you installed is too new for your 16.04. You may have to either uninstall r8168-dkms and revert to the r8169 driver, or try an older r8168-dkms from packages.ubuntu.com/xenial/all/r8168-dkms/download
    – heynnema
    Sep 2, 2019 at 18:56
  • Edit your question and show me /etc/network/interfaces. Are there other files that you modified?
    – heynnema
    Sep 2, 2019 at 18:58
  • @heynnema, so the cable is not a problem since I've tried a different PC with the same cable and it got a DHCP Offer. I've also added the content of /etc/network/interfaces to the question. Also , let me try your suggestion about the driver. With regards to the speed issue, I cannot power cycle the switch, since I have no access to it. But my guess is that there is no problem with it since, as said, I've tried a different PC with the same cable and it faced no problem at all ... Sep 2, 2019 at 19:45
  • 1
    Trying another PC running Windows is not a good test of cabling/switch. They work differently than a Ubuntu machine. For /etc/network/interfaces, I'd remove the last two lines for en01, reboot, then use the NM GUI to create a new "Wired Connection" profile. Report back.
    – heynnema
    Sep 2, 2019 at 20:12

0

You must log in to answer this question.

Browse other questions tagged .