I’ve performed the netplan.io 0.106 tests in AWS instances and all worked well.
Tested with 1x m4.2xlarge instance w/ 2 ENI interfaces + 1x c5a.2xlarge w/ 2 ENI interfaces and also with 1 c6i.metal w/ 1x ENI + 1 EFA interface. Applied policy based routing and all interfaces worked well and responds to pings:
ubuntu@ip-172-31-5-198:~$ sudo apt-cache policy netplan.io
netplan.io:
Installed: 0.106-0ubuntu1~22.04.1~ppa1
Candidate: 0.106-0ubuntu1~22.04.1~ppa1
Version table:
*** 0.106-0ubuntu1~22.04.1~ppa1 500
500 https://ppa.launchpadcontent.net/slyon/netplan/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
0.105-0ubuntu2~22.04.3 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
0.104-0ubuntu2 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
ubuntu@ip-172-31-5-198:~$ sudo netplan status
Online state: online
DNS Addresses: 127.0.0.53 (stub)
DNS Search: sa-east-1.compute.internal
● 1: lo ethernet UNKNOWN/UP (unmanaged)
MAC Address: 00:00:00:00:00:00
Addresses: 127.0.0.1/8
::1/128
Routes: ::1 metric 256
● 2: ens5 ethernet UP (networkd: ens5)
MAC Address: 02:f4:45:9e:0d:20 (Amazon.com, Inc.)
Addresses: 172.31.5.198/20 (dhcp)
fe80::f4:45ff:fe9e:d20/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.5.198 metric 100 (dhcp)
172.31.0.0/20 from 172.31.5.198 metric 100 (link)
172.31.0.1 from 172.31.5.198 metric 100 (dhcp, link)
172.31.0.2 from 172.31.5.198 metric 100 (dhcp, link)
fe80::/64 metric 256
● 3: ens6 ethernet UP (networkd: ens6)
MAC Address: 02:62:de:c7:b2:a2 (Amazon.com, Inc.)
Addresses: 172.31.8.248/20 (dhcp)
fe80::62:deff:fec7:b2a2/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.8.248 metric 200 (dhcp)
172.31.0.0/20 from 172.31.8.248 metric 200 (link)
172.31.0.1 from 172.31.8.248 metric 200 (dhcp, link)
172.31.0.2 from 172.31.8.248 metric 200 (dhcp, link)
fe80::/64 metric 256
ubuntu@ip-172-31-5-198:~$ sudo dmidecode | grep "Product Name"
Product Name: c5a.2xlarge
Product Name: Not Specified
ubuntu@ip-172-31-5-198:~$ sudo lspci | grep Ethernet
00:05.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
00:06.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
ubuntu@ip-172-31-2-45:~$ sudo apt-cache policy netplan.io
netplan.io:
Installed: 0.106-0ubuntu1~22.04.1~ppa1
Candidate: 0.106-0ubuntu1~22.04.1~ppa1
Version table:
*** 0.106-0ubuntu1~22.04.1~ppa1 500
500 https://ppa.launchpadcontent.net/slyon/netplan/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
0.105-0ubuntu2~22.04.3 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
0.104-0ubuntu2 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
ubuntu@ip-172-31-2-45:~$ sudo netplan status
Online state: online
DNS Addresses: 127.0.0.53 (stub)
DNS Search: sa-east-1.compute.internal
● 1: lo ethernet UNKNOWN/UP (unmanaged)
MAC Address: 00:00:00:00:00:00
Addresses: 127.0.0.1/8
::1/128
Routes: ::1 metric 256
● 2: ens3 ethernet UP (networkd: ens3)
MAC Address: 02:6e:be:f4:46:7c (Intel Corporation)
Addresses: 172.31.2.45/20 (dhcp)
fe80::6e:beff:fef4:467c/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.2.45 metric 100 (dhcp)
172.31.0.0/20 from 172.31.2.45 metric 100 (link)
172.31.0.1 from 172.31.2.45 metric 100 (dhcp, link)
172.31.0.2 from 172.31.2.45 metric 100 (dhcp, link)
fe80::/64 metric 256
● 3: ens4 ethernet UP (networkd: ens4)
MAC Address: 02:2b:e6:24:ae:06 (Intel Corporation)
Addresses: 172.31.14.75/20 (dhcp)
fe80::2b:e6ff:fe24:ae06/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.14.75 metric 200 (dhcp)
172.31.0.0/20 from 172.31.14.75 metric 200 (link)
172.31.0.1 from 172.31.14.75 metric 200 (dhcp, link)
172.31.0.2 from 172.31.14.75 metric 200 (dhcp, link)
fe80::/64 metric 256
ubuntu@ip-172-31-2-45:~$ sudo lspci | grep Ethernet
00:03.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
00:04.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
ubuntu@ip-172-31-2-45:~$ curl http://169.254.169.254/latest/meta-data/instance-type
m4.2xlargeubuntu@ip-172-31-2-45:~$
ubuntu@ip-172-31-6-38:~$ sudo netplan status
Online state: online
DNS Addresses: 127.0.0.53 (stub)
DNS Search: sa-east-1.compute.internal
● 1: lo ethernet UNKNOWN/UP (unmanaged)
MAC Address: 00:00:00:00:00:00
Addresses: 127.0.0.1/8
::1/128
Routes: ::1 metric 256
● 2: ens1 ethernet UP (networkd: ens1)
MAC Address: 02:a6:4a:40:39:60 (Amazon.com, Inc.)
Addresses: 172.31.6.38/20 (dhcp)
fe80::a6:4aff:fe40:3960/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.6.38 metric 100 (dhcp)
172.31.0.0/20 from 172.31.6.38 metric 100 (link)
172.31.0.1 from 172.31.6.38 metric 100 (dhcp, link)
172.31.0.2 from 172.31.6.38 metric 100 (dhcp, link)
fe80::/64 metric 256
● 3: ens2 ethernet UP (networkd: ens2)
MAC Address: 02:92:87:bc:02:b8 (Amazon.com, Inc.)
Addresses: 172.31.4.200/20 (dhcp)
fe80::92:87ff:febc:2b8/64 (link)
DNS Addresses: 172.31.0.2
DNS Search: sa-east-1.compute.internal
Routes: default via 172.31.0.1 from 172.31.4.200 metric 200 (dhcp)
172.31.0.0/20 from 172.31.4.200 metric 200 (link)
172.31.0.1 from 172.31.4.200 metric 200 (dhcp, link)
172.31.0.2 from 172.31.4.200 metric 200 (dhcp, link)
fe80::/64 metric 256
ubuntu@ip-172-31-6-38:~$ sudo dmidecode | grep "Product Name"
Product Name: Not Specified
Product Name: c6i.metal
ubuntu@ip-172-31-6-38:~$ sudo lspci | grep Ethernet
2f:00.0 Ethernet controller: Amazon.com, Inc. Elastic Fabric Adapter (EFA)
30:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
31:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
ubuntu@ip-172-31-6-38:~$ sudo apt-cache policy netplan.io
netplan.io:
Installed: 0.106-0ubuntu1~22.04.1~ppa1
Candidate: 0.106-0ubuntu1~22.04.1~ppa1
Version table:
*** 0.106-0ubuntu1~22.04.1~ppa1 500
500 https://ppa.launchpadcontent.net/slyon/netplan/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
0.105-0ubuntu2~22.04.3 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
0.104-0ubuntu2 500
500 http://sa-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Ping tests (from the 1st VM pinging the 2nd VM and the baremetal instance):
ubuntu@ip-172-31-5-198:~$ ping -I ens5 172.31.2.45 -c 2
PING 172.31.2.45 (172.31.2.45) from 172.31.5.198 ens5: 56(84) bytes of data.
64 bytes from 172.31.2.45: icmp_seq=1 ttl=64 time=0.217 ms
64 bytes from 172.31.2.45: icmp_seq=2 ttl=64 time=0.149 ms
--- 172.31.2.45 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1003ms
rtt min/avg/max/mdev = 0.149/0.183/0.217/0.034 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens6 172.31.2.45 -c 2
PING 172.31.2.45 (172.31.2.45) from 172.31.8.248 ens6: 56(84) bytes of data.
64 bytes from 172.31.2.45: icmp_seq=1 ttl=64 time=0.195 ms
64 bytes from 172.31.2.45: icmp_seq=2 ttl=64 time=0.169 ms
--- 172.31.2.45 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1024ms
rtt min/avg/max/mdev = 0.169/0.182/0.195/0.013 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens5 172.31.14.75 -c 2
PING 172.31.14.75 (172.31.14.75) from 172.31.5.198 ens5: 56(84) bytes of data.
64 bytes from 172.31.14.75: icmp_seq=1 ttl=64 time=0.186 ms
64 bytes from 172.31.14.75: icmp_seq=2 ttl=64 time=0.156 ms
--- 172.31.14.75 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1012ms
rtt min/avg/max/mdev = 0.156/0.171/0.186/0.015 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens6 172.31.14.75 -c 2
PING 172.31.14.75 (172.31.14.75) from 172.31.8.248 ens6: 56(84) bytes of data.
64 bytes from 172.31.14.75: icmp_seq=1 ttl=64 time=0.211 ms
64 bytes from 172.31.14.75: icmp_seq=2 ttl=64 time=0.147 ms
--- 172.31.14.75 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1021ms
rtt min/avg/max/mdev = 0.147/0.179/0.211/0.032 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens5 172.31.6.38 -c 2
PING 172.31.6.38 (172.31.6.38) from 172.31.5.198 ens5: 56(84) bytes of data.
64 bytes from 172.31.6.38: icmp_seq=1 ttl=64 time=0.257 ms
64 bytes from 172.31.6.38: icmp_seq=2 ttl=64 time=0.297 ms
--- 172.31.6.38 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.257/0.277/0.297/0.020 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens6 172.31.6.38 -c 2
PING 172.31.6.38 (172.31.6.38) from 172.31.8.248 ens6: 56(84) bytes of data.
64 bytes from 172.31.6.38: icmp_seq=1 ttl=64 time=4.67 ms
64 bytes from 172.31.6.38: icmp_seq=2 ttl=64 time=0.295 ms
--- 172.31.6.38 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.295/2.482/4.669/2.187 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens5 172.31.4.200 -c 2
PING 172.31.4.200 (172.31.4.200) from 172.31.5.198 ens5: 56(84) bytes of data.
64 bytes from 172.31.4.200: icmp_seq=1 ttl=64 time=0.427 ms
64 bytes from 172.31.4.200: icmp_seq=2 ttl=64 time=0.271 ms
--- 172.31.4.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1007ms
rtt min/avg/max/mdev = 0.271/0.349/0.427/0.078 ms
ubuntu@ip-172-31-5-198:~$ ping -I ens6 172.31.4.200 -c 2
PING 172.31.4.200 (172.31.4.200) from 172.31.8.248 ens6: 56(84) bytes of data.
64 bytes from 172.31.4.200: icmp_seq=1 ttl=64 time=0.307 ms
64 bytes from 172.31.4.200: icmp_seq=2 ttl=64 time=0.296 ms
--- 172.31.4.200 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1004ms
rtt min/avg/max/mdev = 0.296/0.301/0.307/0.005 ms