Just tried with a fresh installed Ubuntu SERVER 18.04.1. The interface now got renamed but IP address is not applied, both static and DHCP.
If I run "netplan apply" just after reboot+login, network interface is configured correctly (again, both with static/DHCP address).
---------------------------------------------- Just after reboot + login ---------------------------------------------- # ifconfig -a eth_lan: flags=4098<BROADCAST,MULTICAST> mtu 1500 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 14 bytes 910 (910.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 14 bytes 910 (910.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
---------------------------------------------- After netplan apply ---------------------------------------------- # netplan apply # ifconfig -a eth_lan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.3.200 netmask 255.255.0.0 broadcast 10.0.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 28739 bytes 2625648 (2.6 MB) RX errors 0 dropped 3379 overruns 0 frame 0 TX packets 186 bytes 19916 (19.9 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 197 bytes 14182 (14.1 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 197 bytes 14182 (14.1 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
---------------------------------------------- netplan config ---------------------------------------------- # 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 # dhcp4: true addresses: [ 10.0.3.200/16 ] gateway4: 10.0.0.1 nameservers: addresses: - 8.8.4.4
I'm going to remove all of this netplan stuff and get back to old working /ets/network/interface...
Just tried with a fresh installed Ubuntu SERVER 18.04.1.
The interface now got renamed but IP address is not applied, both static and DHCP.
If I run "netplan apply" just after reboot+login, network interface is configured correctly (again, both with static/DHCP address).
------- ------- ------- ------- ------- ------- ---- ------- ------- ------- ------- ------- ---- BROADCAST, MULTICAST> mtu 1500
Just after reboot + login
-------
# ifconfig -a
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 14 bytes 910 (910.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14 bytes 910 (910.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
------- ------- ------- ------- ------- ------- ---- ------- ------- ------- ------- ------- ---- UP,BROADCAST, RUNNING, MULTICAST> mtu 1500 27ff:fe6b: d891 prefixlen 64 scopeid 0x20<link>
After netplan apply
-------
# netplan apply
# ifconfig -a
eth_lan: flags=4163<
inet 10.0.3.200 netmask 255.255.0.0 broadcast 10.0.255.255
inet6 fe80::a00:
ether 08:00:27:6b:d8:91 txqueuelen 1000 (Ethernet)
RX packets 28739 bytes 2625648 (2.6 MB)
RX errors 0 dropped 3379 overruns 0 frame 0
TX packets 186 bytes 19916 (19.9 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 197 bytes 14182 (14.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 197 bytes 14182 (14.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
------- ------- ------- ------- ------- ------- ---- ------- ------- ------- ------- ------- ---- 01-netcfg. yaml
addresses:
netplan config
-------
# 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
# dhcp4: true
addresses: [ 10.0.3.200/16 ]
gateway4: 10.0.0.1
nameservers:
- 8.8.4.4
I'm going to remove all of this netplan stuff and get back to old working /ets/network/ interface. ..