ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
95 stars 29 forks source link

[BUG] wired: DHCP: not gaining an address #56

Closed grahamperrin closed 3 years ago

grahamperrin commented 3 years ago

re(4)

https://www.freshports.org/net-mgmt/networkmgr/ networkmgr 5.0 on FreeBSD 13.0-RELEASE with latest packages.

With the package installed:

After deleting the package and restarting the system:

https://bsd-hardware.info/?probe=ce8d45af17 RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driven by re(4).

Comparisons

https://forums.ghostbsd.org/viewtopic.php?p=9437#p9437

Also possibly DHCP no longer working for em(4)5.0 on FreeBSD 14.0-CURRENT; I'll proceed to test without networkgr …

grahamperrin commented 3 years ago

em(4)

82579LM Gigabit Network Connection (Lewisville)

Also possibly DHCP no longer working for em(4)5.0 on FreeBSD 14.0-CURRENT; I'll proceed to test without networkgr …

Confirmed. HP EliteBook 8570p. A few days ago, without understanding the cause(s) of the issue, I began working around by configuring rc.conf(5) to use static addressing with the DHCP service of my router at home.

Today I reconfigured to use DHCP, after which service netif restart em0 did not gain a network address. Worked around by using networkmgr to manually connect.

I deleted the package, restarted, gained an address automatically.

82540EM Gigabit Ethernet Controller

Whilst I do not have GhostBSD (with OpenRC) on real hardware at the time of writing, https://bsd-hardware.info/?probe=4bfec050c1 (2021-05-01, limited lifetime) is for VirtualBox, with the default 82540EM Gigabit Ethernet Controller virtualised.

Here, as far as I can tell, no problem.

ericbsd commented 3 years ago

@grahamperrin just to be clear those issues are is a booth on FreeBSD?

grahamperrin commented 3 years ago

Correct:

Will it help if I make the issue reproducible, on either computer, with GhostBSD 13-RELEASE? I can try to install it to a spare USB flash drive (16 GB Kingston DataTraveler G3, I know it will be slow, but I don't mind, for testing).

ericbsd commented 3 years ago

Will it helps if I make the issue reproducible, on either computer, with GhostBSD 13-RELEASE? I can try to install it to a spare USB flash drive (16 GB Kingston DataTraveler G3, I know it will be slow, but I don't mind, for testing).

not really since they do not use the same thing to start the DHCP.

ericbsd commented 3 years ago

I was able to reproduce for GhostBSD and fix it. The only thing I do not use FreeBSD on desktop since I eat my own dog food.

ericbsd commented 3 years ago

I will test my fix for GhostBSD on my laptop.

ericbsd commented 3 years ago

this will fix the issue for GhostBSD https://github.com/ghostbsd/networkmgr/releases/tag/5.4

ericbsd commented 3 years ago

This morning's update should cover the problem for GhostBSD.

ericbsd commented 3 years ago

https://forums.ghostbsd.org/viewtopic.php?p=9454#p9454

ericbsd commented 3 years ago

For FreeBSD, I will have to install it in one of my hardware, when I have time.

ericbsd commented 3 years ago

I think I have found a fix for FreeBSD I will need help for testing when it is ready.

grahamperrin commented 3 years ago

Thanks, I'll help in that.

ericbsd commented 3 years ago

This PR https://github.com/ghostbsd/networkmgr/pull/65 should fix the problem for FreeBSD.

ericbsd commented 3 years ago

This should do it for FreeBSD https://www.freshports.org/net-mgmt/networkmgr/

grahamperrin commented 3 years ago

networkmgr-5.5 installed, wired network (em0) OK with a DHCP server following restart of FreeBSD 14.0-CURRENT.

Thank you, would you like to close this issue?

ericbsd commented 3 years ago

Yeah, it looks fix to me, and it has improved the GhostBSD boot process with networking.

Thanks for testing that for me.