ubuntu@brave-elf:~$ lsb_release -cs
cosmic
ubuntu@brave-elf:~$ cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
ens4: set-name: ens4
match: macaddress: 52:54:00:6c:a4:13
mtu: 9000
dhcp4: yes
ens7: {}
ubuntu@brave-elf:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:6c:a4:13 brd ff:ff:ff:ff:ff:ff
3: ens7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:12:5f:79 brd ff:ff:ff:ff:ff:ff
ubuntu@brave-elf:~$ dpkg -l netplan.io | grep ii
ii netplan.io 0.97-0ubuntu1~18.10.1 amd64 YAML network configuration abstraction for various backends
Verification-done on cosmic:
ubuntu@brave-elf:~$ lsb_release -cs 50-cloud- init.yaml cloud.cfg. d/99-disable- network- config. cfg with the following:
set- name: ens4
macaddress: 52:54:00:6c:a4:13 UP,LOWER_ UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 9000 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 18.10.1 amd64 YAML network configuration abstraction for various backends
cosmic
ubuntu@brave-elf:~$ cat /etc/netplan/
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/
# network: {config: disabled}
network:
version: 2
ethernets:
ens4:
match:
mtu: 9000
dhcp4: yes
ens7: {}
ubuntu@brave-elf:~$ ip link
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens4: <BROADCAST,
link/ether 52:54:00:6c:a4:13 brd ff:ff:ff:ff:ff:ff
3: ens7: <BROADCAST,
link/ether 52:54:00:12:5f:79 brd ff:ff:ff:ff:ff:ff
ubuntu@brave-elf:~$ dpkg -l netplan.io | grep ii
ii netplan.io 0.97-0ubuntu1~