Discussion:
DHCP no longer working for em(4)
Graham Perrin
2021-04-27 11:19:32 UTC
Permalink
DHCP recently stopped working for em0.

HP EliteBook 8570p, recently probed:
<https://bsd-hardware.info/?probe=e90abb54c9>

Any ideas?

For what its worth, the problem _might_ have begun after a package
upgrade routine on Tuesday 20th April:

<https://bsd.to/nWBw/raw>

I updated the sytem (from n246123-21afed4b1d1 to n246330-5eb9c93a20d),
no improvement.

/etc/rc.conf

– includes the following lines:

ifconfig_em0="DHCP"
create_args_wlan0="country GB regdomain etsi"
wlans_iwn0="wlan0"
ifconfig_wlan0="NOAUTO WPA SYNCDHCP"

When I use a static address in lieu of DHCP: no problem.

wlan0 is fine (albeit slow) with DHCP,


% date ; uname -v
Tue 27 Apr 2021 12:10:08 BST
FreeBSD 14.0-CURRENT #93 main-n246330-5eb9c93a20d: Tue Apr 27 05:14:26
BST 2021
***@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
% ls -ahlrt /var/run/dhclient/
total 1
drwxr-xr-x   2 root  wheel     3B 27 Apr 07:00 .
-rw-r--r--   1 root  wheel     5B 27 Apr 07:00 dhclient.wlan0.pid
drwxr-xr-x  22 root  wheel    44B 27 Apr 07:25 ..
% bectl list -c creation
BE                    Active Mountpoint Space Created
r357746-Waterfox      -      -          59.2G 2020-03-10 18:24
n245827-361e9501800-a -      -          10.9G 2021-04-05 18:48
n246123-21afed4b1d1-f -      -          783M  2021-04-26 03:18
n246330-5eb9c93a20d-a NR     /          112G  2021-04-27 06:14
%

----

***@mowa219-gjp4-8570p:~ # date ; time service netif restart em0
Tue Apr 27 12:16:53 BST 2021
dhclient not running? (check /var/run/dhclient/dhclient.em0.pid).
Stopping Network: em0.
em0: flags=8c22<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
        ether ⋯
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting Network: em0.
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
        ether ⋯
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
0.089u 0.040s 0:01.87 6.4%      139+188k 0+0io 0pf+0w
***@mowa219-gjp4-8570p:~ # date ; ifconfig em0
Tue Apr 27 12:17:00 BST 2021
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
        ether ⋯
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
***@mowa219-gjp4-8570p:~ #
David Wolfskill
2021-04-27 11:33:47 UTC
Permalink
Post by Graham Perrin
DHCP recently stopped working for em0.
<https://bsd-hardware.info/?probe=e90abb54c9>
Any ideas?
For what its worth, the problem _might_ have begun after a package
<https://bsd.to/nWBw/raw>
I updated the sytem (from n246123-21afed4b1d1 to n246330-5eb9c93a20d),
no improvement.
I am not seeing the issue.

In addition to my older laptop, I have been tracking head. stable/13,
and stable/12 on a newer laptop (a Dell Precision 7520); as its wireless
NIC is not currently supported in FreeBSD, I have been using its wired
NIC:

***@pci0:0:31:6: class=0x020000 rev=0x31 hdr=0x00 vendor=0x8086 device=0x15e3 subvendor=0x1028 subdevice=0x07b0
vendor = 'Intel Corporation'
device = 'Ethernet Connection (5) I219-LM'
class = network
subclass = ethernet

g1-48(14.0-C)[2] ifconfig em0
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
ether 8c:ec:4b:e9:91:81
inet 172.17.1.48 netmask 0xffff0000 broadcast 172.17.255.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
g1-48(14.0-C)[3]

As I type, it is running:

g1-48(14.0-C)[3] uname -aUK
FreeBSD g1-48.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #222 main-n246319-cd17774d30c6: Mon Apr 26 03:54:11 PDT 2021 ***@g1-48.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 1400010 1400010

and in the middle of a source update to main-n246349-daa5350d0e0c.
Post by Graham Perrin
/etc/rc.conf
ifconfig_em0="DHCP"
create_args_wlan0="country GB regdomain etsi"
wlans_iwn0="wlan0"
ifconfig_wlan0="NOAUTO WPA SYNCDHCP"
g1-48(14.0-C)[7] egrep 'ifconfig|wlan' /etc/rc.conf | grep -v '^#'
ifconfig_em0="DHCP"
wlans_iwn0=wlan0
ifconfig_wlan0="WPA DHCP -ht"
netif_nic_seq="wlan0 em0" # Try these NICs in this sequence,
g1-48(14.0-C)[8]
Post by Graham Perrin
....
Peace,
david
--
David H. Wolfskill ***@catwhisker.org
The same folks who champion the "rights" of corporations to influence
elections by money (as an exercise of free speech) are now also decrying
corporations' speaking out against voter suppression laws...? Right.

See https://www.catwhisker.org/~david/publickey.gpg for my public key.
Graham Perrin
2021-05-03 00:29:54 UTC
Permalink
Post by David Wolfskill
I am not seeing the issue.
Thanks for checking.

I realised a cause of the problem after reading
<https://forums.ghostbsd.org/viewtopic.php?p=9437#p9437>, which led me
to report <https://github.com/ghostbsd/networkmgr/issues/56>.

<https://www.freshports.org/net-mgmt/networkmgr/#history> updated to 5.0
on 23rd April.

I wonder why I see no log of the update:

***@mowa219-gjp4-8570p:/var/log # ls -ahlrt messages*
-rw-r--r--  1 root  wheel    61K Mar  5 09:00 messages.4.bz2
-rw-r--r--  1 root  wheel    71K Mar 16 18:00 messages.3.bz2
-rw-r--r--  1 root  wheel    63K Mar 31 15:00 messages.2.bz2
-rw-r--r--  1 root  wheel    53K Apr 15 11:00 messages.1.bz2
-rw-r--r--  1 root  wheel    62K Apr 26 06:00 messages.0.bz2
-rw-r--r--  1 root  wheel   809K May  3 00:48 messages
***@mowa219-gjp4-8570p:/var/log # bzcat messages.1.bz2 | grep networkmgr
***@mowa219-gjp4-8570p:/var/log # bzcat messages.0.bz2 | grep networkmgr
***@mowa219-gjp4-8570p:/var/log # cat messages | grep networkmgr
May  3 00:40:20 mowa219-gjp4-8570p pkg[41146]: networkmgr-5.0 deinstalled
***@mowa219-gjp4-8570p:/var/log #

Related:

bectl, chroot, pkg upgrade, no record of the upgrade in /var/log/messages
<https://lists.freebsd.org/pipermail/freebsd-current/2021-May/079596.html>
Loading...