Bug 18885 - Cannot connect to Internet with SystemD
Summary: Cannot connect to Internet with SystemD
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 07:59 CEST by Muhammad Tailounie
Modified: 2016-07-11 08:09 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Muhammad Tailounie 2016-07-07 07:59:14 CEST
Configuring a bridge connection using based on systemd does create the bridge and connect apparently, but I cannot even ping the router. Firewall is disabled to check. Apparently it's related to routing: No idea really..

6sta1, systemd 230


How reproducible:
Stop network service, disable it, then create the necessary configuration files under /etc/systemd/network. Now enable and start systemd-networkd and make sure systemd-resolved is enabled and started too.


Steps to Reproduce:
1. stop systemd-networkd
2. start systemd-networkd

or reboot
Comment 1 Bit Twister 2016-07-09 03:46:39 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

Comment 2 Muhammad Tailounie 2016-07-11 08:08:43 CEST
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. :)
Comment 3 Muhammad Tailounie 2016-07-11 08:09:09 CEST
Firewall rules messed up!

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.