Comment 10 for bug 1768827

Revision history for this message
Nicorac (nicorac) wrote :

Of course.
This is the status just after the boot:

*********************************************************
# ifconfig -a
eth_dhcp: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 10.0.0.57 netmask 255.255.0.0 broadcast 10.0.255.255
        inet6 fe80::a00:27ff:fe23:68f5 prefixlen 64 scopeid 0x20<link>
        ether 08:00:27:23:68:f5 txqueuelen 1000 (Ethernet)
        RX packets 10493 bytes 1244056 (1.2 MB)
        RX errors 0 dropped 829 overruns 0 frame 0
        TX packets 105 bytes 22485 (22.4 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth_static: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 1.2.3.4 netmask 255.255.0.0 broadcast 1.2.255.255
        inet6 fe80::a00:27ff:fe6b:d891 prefixlen 64 scopeid 0x20<link>
        ether 08:00:27:6b:d8:91 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 15 bytes 1146 (1.1 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Local Loopback)
        RX packets 342 bytes 20654 (20.6 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 342 bytes 20654 (20.6 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

*********************************************************
# ll /run/systemd/network/
total 16
drwxr-xr-x 2 root root 120 Jul 12 08:33 ./
drwxr-xr-x 22 root root 520 Jul 12 08:34 ../
-rw-r--r-- 1 root root 75 Jul 12 08:33 10-netplan-id0.link
-rw-r--r-- 1 root root 99 Jul 12 08:33 10-netplan-id0.network
-rw-r--r-- 1 root root 73 Jul 12 08:33 10-netplan-id1.link
-rw-r--r-- 1 root root 108 Jul 12 08:33 10-netplan-id1.network

*********************************************************
# cat 10-netplan-id0.link
[Match]
MACAddress=08:00:27:6b:d8:91

[Link]
Name=eth_static
WakeOnLan=off

*********************************************************
# cat 10-netplan-id0.network
[Match]
MACAddress=08:00:27:6b:d8:91
Name=eth_static

[Network]
Address=1.2.3.4/16
Gateway=5.6.7.8

*********************************************************
# cat 10-netplan-id1.link
[Match]
MACAddress=08:00:27:23:68:f5

[Link]
Name=eth_dhcp
WakeOnLan=off

*********************************************************
# cat 10-netplan-id1.network
[Match]
MACAddress=08:00:27:23:68:f5
Name=eth_dhcp

[Network]
DHCP=ipv4

[DHCP]
UseMTU=true
RouteMetric=100