networkctl output:
root@ip-192-168-11-242:/home/ubuntu# networkctl status
● Interfaces: 1, 2, 3
State: routable
Online state: online
Address: 192.168.11.242 on ens5
192.168.12.6 on ens6
192.168.15.230 on ens6
2600:1f16:67f:f200:9786:9334:1f2c:8d8 on ens5
2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87 on ens6
fe80::4f1:2fff:fe0b:5f7d on ens5
fe80::4f0:7bff:fef6:b65f on ens6
Gateway: 192.168.0.1 on ens5
192.168.0.1 on ens6
fe80::4f8:4ff:feed:10b4 on ens5
fe80::4f8:4ff:feed:10b4 on ens6
DNS: 192.168.0.2
Mar 10 16:05:00 ip-192-168-11-242 systemd[1]: Starting
systemd-networkd-wait-online.service - Wait for Network to be Configured...
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Configuring with
/run/systemd/network/10-netplan-ens6.network.
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens5: Link UP
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens5: Gained carrier
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens5: DHCPv4 address
192.168.11.242/20, gateway 192.168.0.1 acquired from 192.168.0.1
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: DHCPv4 address
192.168.12.6/20, gateway 192.168.0.1 acquired from 192.168.0.1
Mar 10 16:05:01 ip-192-168-11-242 systemd-networkd[607]: ens5: Gained IPv6LL
Mar 10 16:05:01 ip-192-168-11-242 systemd-networkd[607]: ens6: DHCPv6 address
2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87/128 (valid for 7min 29s, preferred for
2min 19s)
Mar 10 16:05:01 ip-192-168-11-242 systemd[1]: Finished
systemd-networkd-wait-online.service - Wait for Network to be Configured.
Mar 10 16:05:02 ip-192-168-11-242 systemd-networkd[607]: ens5: DHCPv6 address
2600:1f16:67f:f200:9786:9334:1f2c:8d8/128 (valid for 7min 29s, preferred for
2min 19s)
root@ip-192-168-11-242:/home/ubuntu# networkctl status ens6
● 3: ens6
Link File: /usr/lib/systemd/network/99-default.link
Network File: /run/systemd/network/10-netplan-ens6.network
State: routable (configured)
Online state: online
Type: ether
Path: pci-0000:00:06.0
Driver: ena
Vendor: Amazon.com, Inc.
Model: Elastic Network Adapter (ENA)
Alternative Names: enp0s6
enx06f07bf6b65f
Hardware Address: 06:f0:7b:f6:b6:5f
MTU: 9001 (min: 128, max: 9216)
QDisc: mq
IPv6 Address Generation Mode: eui64
Number of Queues (Tx/Rx): 2/2
Address: 192.168.12.6 (DHCPv4 via 192.168.0.1)
192.168.15.230
2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87
fe80::4f0:7bff:fef6:b65f
Gateway: 192.168.0.1
fe80::4f8:4ff:feed:10b4
DNS: 192.168.0.2
Activation Policy: up
Required For Online: yes
DHCPv4 Client ID: IAID:0x6618dd42/DUID
DHCPv6 Client IAID: 0x6618dd42
DHCPv6 Client DUID: DUID-EN/Vendor:0000ab114763b051401f8b68
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Link UP
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Gained carrier
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Gained IPv6LL
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Link DOWN
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Lost carrier
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Link UP
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Gained carrier
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: Configuring with
/run/systemd/network/10-netplan-ens6.network.
Mar 10 16:05:00 ip-192-168-11-242 systemd-networkd[607]: ens6: DHCPv4 address
192.168.12.6/20, gateway 192.168.0.1 acquired from 192.168.0.1
Mar 10 16:05:01 ip-192-168-11-242 systemd-networkd[607]: ens6: DHCPv6 address
2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87/128 (valid for 7min 29s, preferred for
2min 19s)
** Description changed:
This integration test is currently failing on plucky:
-
https://github.com/canonical/cloud-init/blob/a136a979dd5a5084f71f5def5abf6d80d7cc263a/tests/integration_tests/test_networking.py#L313
+
https://github.com/canonical/cloud-init/blob/a136a979dd5a5084f71f5def5abf6d80d7cc263a/tests/integration_tests/test_networking.py#L313
This test will launch an ec2 instance, attach a 2nd NIC, and then assign
two (total) IP addresses to that NIC. We then check that all 3 IP
addresses can `nc` to the SSH port with the public IPs. This works
consistently on Oracular and below, but it does not work on Plucky. The
secondary IP on the secondary NIC can no longer connect. If I compare
the generated netplan configurations between the two instances along
with the generated networkd configurations, they are identical (minus
different IP addresses). I can even downgrade netplan on plucky to the
oracular version, but it still doesn't work on plucky. I have also
- manually verified that nc does NOT work on the internal secondary IP
+ manually verified that nc does work on the internal secondary IP
address.
cloud-init's rendered Netplan configuration:
- # cat /etc/netplan/50-cloud-init.yaml
+ # cat /etc/netplan/50-cloud-init.yaml
network:
- version: 2
- ethernets:
- ens5:
- match:
- macaddress: "06:f1:2f:0b:5f:7d"
- dhcp4: true
- dhcp4-overrides:
- route-metric: 100
- dhcp6: true
- dhcp6-overrides:
- route-metric: 100
- set-name: "ens5"
- ens6:
- match:
- macaddress: "06:f0:7b:f6:b6:5f"
- addresses:
- - "192.168.15.230/20"
- dhcp4: true
- dhcp4-overrides:
- use-routes: true
- route-metric: 200
- dhcp6: true
- dhcp6-overrides:
- use-routes: true
- route-metric: 200
- set-name: "ens6"
- routes:
- - table: 101
- to: "0.0.0.0/0"
- via: "192.168.0.1"
- - scope: "link"
- table: 101
- to: "192.168.0.0/20"
- - scope: "link"
- table: 101
- to: "2600:1f16:67f:f200:0:0:0:0/64"
- routing-policy:
- - table: 101
- from: "192.168.12.6"
- - table: 101
- from: "192.168.15.230"
- - table: 101
- from: "2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87"
-
+ version: 2
+ ethernets:
+ ens5:
+ match:
+ macaddress: "06:f1:2f:0b:5f:7d"
+ dhcp4: true
+ dhcp4-overrides:
+ route-metric: 100
+ dhcp6: true
+ dhcp6-overrides:
+ route-metric: 100
+ set-name: "ens5"
+ ens6:
+ match:
+ macaddress: "06:f0:7b:f6:b6:5f"
+ addresses:
+ - "192.168.15.230/20"
+ dhcp4: true
+ dhcp4-overrides:
+ use-routes: true
+ route-metric: 200
+ dhcp6: true
+ dhcp6-overrides:
+ use-routes: true
+ route-metric: 200
+ set-name: "ens6"
+ routes:
+ - table: 101
+ to: "0.0.0.0/0"
+ via: "192.168.0.1"
+ - scope: "link"
+ table: 101
+ to: "192.168.0.0/20"
+ - scope: "link"
+ table: 101
+ to: "2600:1f16:67f:f200:0:0:0:0/64"
+ routing-policy:
+ - table: 101
+ from: "192.168.12.6"
+ - table: 101
+ from: "192.168.15.230"
+ - table: 101
+ from: "2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87"
networkd configurations:
- root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens5.link
+ root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens5.link
[Match]
PermanentMACAddress=06:f1:2f:0b:5f:7d
[Link]
Name=ens5
WakeOnLan=off
- root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens5.network
+ root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens5.network
[Match]
PermanentMACAddress=06:f1:2f:0b:5f:7d
Name=ens5
[Network]
DHCP=yes
LinkLocalAddressing=ipv6
[DHCP]
RouteMetric=100
UseMTU=true
- root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens6.link
+ root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens6.link
[Match]
PermanentMACAddress=06:f0:7b:f6:b6:5f
[Link]
Name=ens6
WakeOnLan=off
root@ip-192-168-11-242:/home/ubuntu# cat
/run/systemd/network/10-netplan-ens6.network
[Match]
PermanentMACAddress=06:f0:7b:f6:b6:5f
Name=ens6
[Network]
DHCP=yes
LinkLocalAddressing=ipv6
Address=192.168.15.230/20
[Route]
Destination=0.0.0.0/0
Gateway=192.168.0.1
Table=101
[Route]
Destination=192.168.0.0/20
Scope=link
Table=101
[Route]
Destination=2600:1f16:67f:f200:0:0:0:0/64
Scope=link
Table=101
[RoutingPolicyRule]
From=192.168.12.6
Table=101
[RoutingPolicyRule]
From=192.168.15.230
Table=101
[RoutingPolicyRule]
From=2600:1f16:67f:f200:25ac:a1c8:2d0d:ae87
Table=101
[DHCP]
RouteMetric=200
UseMTU=true
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2101860
Title:
Different networking behavior with 2nd IP on 2nd NIC
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2101860/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs