| Summary: | Deletion of resolv.conf entries by disconnecting a second interface (using networkmanager) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | papoteur <yvesbrungard> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, jani.valimaa, lewyssmith, mageia, olav |
| Version: | 7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
| Attachments: | Trace in journal from networkmanager | ||
|
Description
papoteur
2020-07-21 22:19:06 CEST
Created attachment 11757 [details]
Trace in journal from networkmanager
This log starts at boot when the two interfaces are active and comprises a restart of networkmanager to enables trace, wifi disconnection , wired disconnection and wired reconnection.
I don't know if this is your problem, but the instructions on the Wiki seem incomplete. This is what I do to switch to using NetworkManager: systemctl disable network systemctl disable network-up systemctl enable NetworkManager.service systemctl enable NetworkManager-wait-online.service In my experience, if you don't disable the legacy network service, it can interfere. CC:
(none) =>
mageia Thank you for the wisdom injection, Martin. Papoteur, can you try what Martin suggests. If that works, I will tweak the wiki. CC:
(none) =>
lewyssmith Should we maybe have NetworkManager.service "conflict" with network and network-up? Though seems those aren't systemd bits. CC:
(none) =>
olav (In reply to Martin Whitaker from comment #2) > I don't know if this is your problem, but the instructions on the Wiki seem > incomplete. This is what I do to switch to using NetworkManager: > > systemctl disable network > systemctl disable network-up > systemctl enable NetworkManager.service > systemctl enable NetworkManager-wait-online.service > > In my experience, if you don't disable the legacy network service, it can > interfere. It's better to mask network and network-up services instead of disabling or they will be enabled again after next initscripts update. CC:
(none) =>
jani.valimaa Instead of disabling or masking them, you can also set ... $ grep -i networking /etc/sysconfig/network NETWORKING=no That will cause both the network and network-up init.d scripts to exit almost immediately. I use the net.ifnames=0 kernel parameter since I only have one nic, and ... $ cat /lib/systemd/network/10-eth0.network [Match] Name=eth0 [Network] Description=LAN_NIC DNS=127.0.0.1 DNS=192.168.10.101 DNS=8.8.8.8 Domains=x3.hodgins.homeip.net IPv6AcceptRouterAdvertisements=false LinkLocalAddressing=no [Address] Address=192.168.10.2/16 [Route] Gateway=192.168.10.11 I find this faster than using either the network or NetworkManager services. CC:
(none) =>
davidwhodgins Hello, I have masked network and network-up. I have also enabled NetworkManager-wait-online.service since this was not yet the case. Wait and see. (I have not yet the time to do wide tests). This seems a lot better! Thanks all. I have updated the wiki with these instruction for masking services. Can this bug be closed now ? |