| Summary: | Cannot connect to Internet with SystemD | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Muhammad Tailounie <mageia> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | bittwister2 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
Muhammad Tailounie
2016-07-07 07:59:14 CEST
(In reply to Muhammad Tailounie from comment #0) > Stop network service, disable it, then create the necessary configuration > files under /etc/systemd/network. You might want to consider placing your files in /usr/lib/systemd/network/. That way you can link /etc/systemd/network/same_name to /dev/null which allows you to disable the same named file in /usr/lib/systemd/network/ For example I have $ locate /usr/lib/systemd/network/*_my_* /usr/lib/systemd/network/10_my__enp3s0.network /usr/lib/systemd/network/11_my__enp4s0.network /usr/lib/systemd/network/12_my__wlp2s0.network and for disabling second nic and wireless I have $ locate /etc/systemd/network/*_my_* /etc/systemd/network/11_my__enp4s0.network /etc/systemd/network/12_my__wlp2s0.network > Now enable and start systemd-networkd and > make sure systemd-resolved is enabled and started too. I think the suggestion is to link resolv.conf to systemd/resolve/resolv.conf Example: $ ll /etc/resolv.conf lrwxrwxrwx 1 root root 32 Sep 17 2015 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf Stock/normal configuration file from my setup: $ cat /usr/lib/systemd/network/10_my__enp3s0.network #********************************************************************* # /usr/lib/systemd/network/10_my__enp3s0.network # Created by /local/bin/install_net_nic Mon 01 Feb 23:00 2016 # # man systemd.network # http://www.freedesktop.org/software/systemd/man/systemd.network.html # # If you change this file, make the same change in # /local/bin/install_net_nic and run # systemctl restart systemd-networkd # #********************************************************************* [Match] Name=enp3s0 [Network] Description=LAN_NIC DNS=127.0.0.1 DNS=8.8.8.8 Domains=home.test [Address] Address=192.168.11.132/24 [Route] Gateway=192.168.11.1 # Metric=5 #****** end /usr/lib/systemd/network/10_my__enp3s0.network **** CC:
(none) =>
bittwister2 Thank you Bit Twister, Actually I had everything well configured. I found out, though, that the firewall rules were messed up for the bridge interface. Now everything is ok. :) Firewall rules messed up! Status:
NEW =>
RESOLVED |