Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2022 23:14:24 +0100
From:      Peter Gibbs <balrog7777@l37.st>
To:        freebsd-questions@FreeBSD.org
Subject:   DHCP stopped working on RTL8168/8111
Message-ID:  <54512AE0-6DF7-4653-9FC4-FE2272A721C8@l37.st>

next in thread | raw e-mail | index | archive | help
Hi,

I=E2=80=99ve installed FreeBSD on my PC to learn about it, on a hard driv=
e which
previously had Debian Linux on it. At first it seemed to be working.
However, after a day or two suddenly DHCP stopped working. What I
suspect happened is: initially the FreeBSD installer successfully
negotiated a DHCP lease, but afterwards the installed system failed to
renew it, so as long as the original lease was valid everything was
working, but not after it expired.

When Debian was installed on the same machine (and same drive), it had
no issues with DHCP. I also have another drive in that machine with
Windows on it, and Windows also has no issues with DHCP.

OS version:
> # uname -a
> FreeBSD VOYAGER 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-f=
c952ac2212 GENERIC amd64

In dhclient logs there is no DHCPACK, only DHCPDISCOVER:
> # ifconfig re0 down && ifconfig re0 up && dhclient re0
> re0: no link ...... got link
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 5
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 5
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 11
> re0 link state up -> down
> re0 link state down -> up
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 8
> re0 link state up -> down
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 8
> re0 link state down -> up
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 4
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 5
> re0 link state up -> down
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 13
> re0 link state down -> up
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 7
> re0 link state up -> down
> DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 10

dmesg.boot messages related to re0 interface:
> # egrep '^re0:' dmesg.boot
> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0=
xf000-0xf0ff mem 0xfe604000-0xfe604fff,0xfe600000-0xfe603fff irq 32 at de=
vice 0.0 on pci3
> re0: Using 1 MSI-X message
> re0: turning off MSI enable bit.
> re0: Chip rev. 0x54000000
> re0: MAC rev. 0x00100000
> re0: Using defaults for TSO: 65518/35/2048
> re0: Ethernet address: b4:2e:99:4e:ab:69
> re0: netmap queues/slots: TX 1/256, RX 1/256
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: watchdog timeout
> re0: stopping TXQ timed out!
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: watchdog timeout
>       --- Deleted many repetitions of the above ---
> re0: link state changed to DOWN
> re0: stopping TXQ timed out!
> re0: link state changed to UP
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0=
xf000-0xf0ff mem 0xfe604000-0xfe604fff,0xfe600000-0xfe603fff irq 32 at de=
vice 0.0 on pci3
> re0: Using 1 MSI-X message
> re0: Chip rev. 0x54000000
> re0: MAC rev. 0x00100000
> re0: Using defaults for TSO: 65518/35/2048
> re0: Ethernet address: b4:2e:99:4e:ab:69
> re0: netmap queues/slots: TX 1/256, RX 1/256
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: watchdog timeout
> re0: stopping TXQ timed out!
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: watchdog timeout
> re0: stopping TXQ timed out!
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: watchdog timeout
>       --- Deleted many repetitions of the above ---
> re0: stopping TXQ timed out!
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: stopping TXQ timed out!
> re0: link state changed to DOWN
> re0: link state changed to UP
> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0=
xf000-0xf0ff mem 0xfe604000-0xfe604fff,0xfe600000-0xfe603fff irq 32 at de=
vice 0.0 on pci3
> re0: Using 1 MSI-X message
> re0: Chip rev. 0x54000000
> re0: MAC rev. 0x00100000
> re0: Using defaults for TSO: 65518/35/2048
> re0: Ethernet address: b4:2e:99:4e:ab:69
> re0: netmap queues/slots: TX 1/256, RX 1/256
> re0: link state changed to DOWN
> re0: link state changed to UP

Routes:
> # netstat -r
> Routing tables
>
> Internet:
> Destination        Gateway            Flags     Netif Expire
> 0.0.0.0/8          link#1             U           re0
> localhost          link#2             UH          lo0
>
> Internet6:
> Destination        Gateway            Flags     Netif Expire
> ::/96              localhost          UGRS        lo0
> localhost          link#2             UHS         lo0
> ::ffff:0.0.0.0/96  localhost          UGRS        lo0
> fe80::/10          localhost          UGRS        lo0
> fe80::%lo0/64      link#2             U           lo0
> fe80::1%lo0        link#2             UHS         lo0
> ff02::/16          localhost          UGRS        lo0

/etc/resolv.conf:
> # Generated by resolvconf
> search home
> nameserver 192.168.1.1

/var/db/dhclient.leases.re0:
> lease {
>   interface "re0";
>   fixed-address 192.168.1.12;
>   next-server 192.168.1.1;
>   option subnet-mask 255.255.255.0;
>   option routers 192.168.1.1;
>   option domain-name-servers 192.168.1.1;
>   option domain-name "home";
>   option broadcast-address 192.168.1.255;
>   option dhcp-lease-time 86400;
>   option dhcp-message-type 5;
>   option dhcp-server-identifier 192.168.1.1;
>   option dhcp-renewal-time 43200;
>   option dhcp-rebinding-time 75600;
>   option option-125 0:0:d:e9:22:4:6:45:34:43:30:45:32:5:f:4e:37:32:31:3=
3:30:34:36:59:30:31:33:32:39:38:6:7:46:75:6e:62:6f:78:36;
>   renew 2 2022/11/22 11:24:11;
>   rebind 2 2022/11/22 20:24:11;
>   expire 2 2022/11/22 23:24:11;
> }

/etc/rc.conf:
> clear_tmp_enable=3D"YES"
> syslogd_flags=3D"-ss"
> sendmail_enable=3D"NONE"
> hostname=3D"VOYAGER"
> keymap=3D"pl.kbd"
> ifconfig_re0=3D"down"
> sshd_enable=3D"YES"
> ntpd_enable=3D"YES"
> powerd_enable=3D"YES"
> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
> dumpdev=3D"AUTO"
> zfs_enable=3D"YES"
> # tmpmfs=3D"YES"
> # tmpsize=3D"20m"

I haven=E2=80=99t modified /etc/dhclient.conf in any way. Except the defa=
ult
comments, it=E2=80=99s empty.

Is anyone able to say whether I have something misconfigured? Or is it
a bug?

Thanks,
Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54512AE0-6DF7-4653-9FC4-FE2272A721C8>