-----------------------------------------------------
root@test:~# cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
id0:
match:
macaddress: 08:00:27:6b:d8:91
set-name: eth_lan
addresses: [ 192.168.1.10/24 ]
gateway4: 192.168.1.1
nameservers: addresses: [ 8.8.4.4 ]
-----------------------------------------------------
root@test:~# cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
id0:
match:
macaddress: 08:00:27:6b:d8:91
set-name: eth_lan
addresses: [ 192.168.1.10/24 ]
gateway4: 192.168.1.1
nameservers: addresses: [ 8.8.4.4 ]
Still not working on my side (plain vanilla Ubuntu Server 18.04, fully updated, no cloud).
The renaming regression of 0.40.1~18.04.1 has been fixed, but it's still not applying IP address just after boot.
A manual "netplan apply" correctly configures the network interface.
------- ------- ------- ------- ------- ------- ------- ---- ------- ------- ------- ------- ------- ------- ----
root@test:~# dpkg -s netplan.io | grep Version
Version: 0.40.1~18.04.2
-------
======= ======= ======= == ======= ======= ==
=== Just after boot ===
=======
root@test:~# ifconfig -a BROADCAST, MULTICAST> mtu 1500
eth_lan: flags=4098<
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 0 bytes 0 (0.0 B)
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 6 bytes 318 (318.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 318 (318.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
------- ------- ------- ------- ------- ------- ------- ---- 01-netcfg. yaml
addresses: [ 8.8.4.4 ]
root@test:~# cat /etc/netplan/
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
id0:
match:
macaddress: 08:00:27:6b:d8:91
set-name: eth_lan
addresses: [ 192.168.1.10/24 ]
gateway4: 192.168.1.1
nameservers:
------- ------- ------- ------- ------- ------- ------- ---- network/ 10-netplan- id0.link 08:00:27: 6b:d8:91
root@test:~# cat /run/systemd/
[Match]
MACAddress=
[Link]
Name=eth_lan
WakeOnLan=off
------- ------- ------- ------- ------- ------- ------- ---- network/ 10-netplan- id0.network 08:00:27: 6b:d8:91
root@test:~# cat /run/systemd/
[Match]
MACAddress=
Name=eth_lan
[Network] sing=ipv6 192.168. 1.10/24
LinkLocalAddres
Address=
Gateway=192.168.1.1
DNS=8.8.4.4
------- ------- ------- ------- ------- ------- ------- ----
======= ======= ======= ======= ======= = ======= ======= ======= ======= =
=== After manual "netplan apply" ===
=======
root@test:~# ifconfig -a UP,BROADCAST, RUNNING, MULTICAST> mtu 1500 27ff:fe6b: d891 prefixlen 64 scopeid 0x20<link>
eth_lan: flags=4163<
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:
ether 08:00:27:6b:d8:91 txqueuelen 1000 (Ethernet)
RX packets 277 bytes 51263 (51.2 KB)
RX errors 0 dropped 128 overruns 0 frame 0
TX packets 13 bytes 946 (946.0 B)
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 20 bytes 1470 (1.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20 bytes 1470 (1.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
------- ------- ------- ------- ------- ------- ------- ---- 01-netcfg. yaml
addresses: [ 8.8.4.4 ]
root@test:~# cat /etc/netplan/
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
id0:
match:
macaddress: 08:00:27:6b:d8:91
set-name: eth_lan
addresses: [ 192.168.1.10/24 ]
gateway4: 192.168.1.1
nameservers:
------- ------- ------- ------- ------- ------- ------- ---- network/ 10-netplan- id0.link 08:00:27: 6b:d8:91
root@test:~# cat /run/systemd/
[Match]
MACAddress=
[Link]
Name=eth_lan
WakeOnLan=off
------- ------- ------- ------- ------- ------- ------- ---- network/ 10-netplan- id0.network 08:00:27: 6b:d8:91
root@test:~# cat /run/systemd/
[Match]
MACAddress=
Name=eth_lan
[Network] sing=ipv6 192.168. 1.10/24
LinkLocalAddres
Address=
Gateway=192.168.1.1
DNS=8.8.4.4
------- ------- ------- ------- ------- ------- ------- ----
Please let me know if you need further info...