Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

NetworkManager vs. systemd-networkd -- neither works fully

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
mounty1
l33t
l33t
User avatar
Posts: 955
Joined: Thu Jul 06, 2006 3:17 pm
Location: Queensland

NetworkManager vs. systemd-networkd -- neither works fully

  • Quote

Post by mounty1 » Fri Jan 26, 2018 9:44 am

Hello, on one machine of my several Gentoo installations, networking works imperfectly.

The machine is an Intel NUC and I am only using the wired interface (eno1). Until recently I was using the systemd-networkd service with the following:

Code: Select all

[Match]
name=eno*

[Network]
DHCP=ipv4
The DHCP server is configured to serve 192.168.1.60 to the NUC's MAC address. The NUC obtains the address but there are two problems:
  • The systemd-networkd-wait-online service waits for about two minutes then times out and fails to start. I don't know for what it is waiting, since the address has been served. ifconfig -a lists an unconfigured sit0 interface but I don't know what this is or whether systemd-networkd-wait-online is waiting for it to be initialised.
  • More significantly, after about four days, interface eno1 loses its address. I assume from the delay period that it fails to renegotiate the lease. Anyway, the only solution is the magic-key reboot sequence (alt-sysreq-REISUB) since there are multiple NFS mounts which systemd wants to unmount.
In an attempt to solve the above, I switched from systemd-networkd to NetworkManager, which is of course an overkill for a single-interface machine:

Code: Select all

systemctl disable systemd-networkd-wait-online systemd-networkd
systemctl enable NetworkManager NetworkManager-wait-online
but this brings it own problems. Although the machine boots really quickly, the network mounts (NFS mounts in /etc/fstab) are not honoured, and it is necessary to run mount -a to get them.

So neither solution is satisfactory. AIUI, systemd-networkd is all that should be needed for a single interface, but with the two problems listed above, it is unuseable. Can anyone suggest a resolution?
Michael Mounteney
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Fri Jan 26, 2018 11:25 am

Why do you use DHCP for this machine? I would configure a static IP address in /etc/systemd/network/wired.network. I use DHCPv4 only for notebooks or smartphones that are connected temporarily to my network. Every device that is connected permanently or that even mounts or exports file systems is configured with a static IP address.

If you want to stay with DHCPv4 for this machine, I would lower the DHCP lease time for this machine to a couple of minutes and start testing. Increase verbosity of DHCP log files and/or use tcpdump and look at the DHCP packets that are sent between your machine and your DHCP server. There surely is a reason why DHCP renewal doesn't work.
Top
littletux
n00b
n00b
Posts: 74
Joined: Mon Dec 08, 2003 8:52 am

  • Quote

Post by littletux » Thu Mar 15, 2018 9:56 pm

Adding _netdev to the mount options in /etc/fstab might be sufficient.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic