Yup, adding a match on MAC seems to work. It would be nice if whatever
sets up the default /etc/netplan/50-cloud-init.yaml included the match
on MAC?
rsa@tppjoe03:~$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.2.0.203 netmask 255.255.255.0 broadcast 10.2.0.255
inet6 fe80::aa1e:84ff:fea2:989c prefixlen 64 scopeid 0x20<link>
ether a8:1e:84:a2:98:9c txqueuelen 1000 (Ethernet)
RX packets 335 bytes 32455 (32.4 KB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 405 bytes 60596 (60.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x9d100000-9d17ffff
enp94s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.5.0.13 netmask 255.255.255.0 broadcast 10.5.0.255
inet6 fe80::ee0d:9aff:fe2e:13d0 prefixlen 64 scopeid 0x20<link>
ether ec:0d:9a:2e:13:d0 txqueuelen 1000 (Ethernet)
RX packets 226 bytes 29676 (29.6 KB)
RX errors 0 dropped 204 overruns 0 frame 0
TX packets 12 bytes 936 (936.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp94s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.6.0.13 netmask 255.255.255.0 broadcast 10.6.0.255
inet6 fe80::ee0d:9aff:fe2e:13d1 prefixlen 64 scopeid 0x20<link>
ether ec:0d:9a:2e:13:d1 txqueuelen 1000 (Ethernet)
RX packets 227 bytes 29900 (29.9 KB)
RX errors 0 dropped 204 overruns 0 frame 0
TX packets 12 bytes 936 (936.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 144 bytes 9808 (9.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 144 bytes 9808 (9.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
rsa@tppjoe03:~$ 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:
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
enp94s0f0:
match:
macaddress: ec:0d:9a:2e:13:d0
addresses:
- 10.5.0.13/24
mtu: 9000
dhcp4: false
optional: true
enp94s0f1:
match:
macaddress: ec:0d:9a:2e:13:d1
addresses:
- 10.6.0.13/24
mtu: 9000
dhcp4: false
optional: true
version: 2
rsa@tppjoe03:~$ sudo netplan generate
rsa@tppjoe03:~$ sudo netplan apply
rsa@tppjoe03:~$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.2.0.203 netmask 255.255.255.0 broadcast 10.2.0.255
inet6 fe80::aa1e:84ff:fea2:989c prefixlen 64 scopeid 0x20<link>
ether a8:1e:84:a2:98:9c txqueuelen 1000 (Ethernet)
RX packets 483 bytes 45343 (45.3 KB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 495 bytes 73728 (73.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x9d100000-9d17ffff
enp94s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 10.5.0.13 netmask 255.255.255.0 broadcast 10.5.0.255
inet6 fe80::ee0d:9aff:fe2e:13d0 prefixlen 64 scopeid 0x20<link>
ether ec:0d:9a:2e:13:d0 txqueuelen 1000 (Ethernet)
RX packets 234 bytes 30733 (30.7 KB)
RX errors 0 dropped 211 overruns 0 frame 0
TX packets 13 bytes 1006 (1.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp94s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 10.6.0.13 netmask 255.255.255.0 broadcast 10.6.0.255
inet6 fe80::ee0d:9aff:fe2e:13d1 prefixlen 64 scopeid 0x20<link>
ether ec:0d:9a:2e:13:d1 txqueuelen 1000 (Ethernet)
RX packets 235 bytes 30957 (30.9 KB)
RX errors 0 dropped 211 overruns 0 frame 0
TX packets 13 bytes 1006 (1.0 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 160 bytes 11032 (11.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 160 bytes 11032 (11.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1724895
Title:
MTU not applied on private ethernet interfaces
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1724895/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs