> When removing the "use-routes" dhcp-overrides for ens6 and running
"netplan apply" it seems to be working.
The default for this is true, so unless the documentation is wrong, I
don't think that changing this is actually doing anything.
There is certainly some racy behavior though. Using a script[1] to check
connectivity of the IPs, I ran `netplan apply; check_ips.sh` several
times without changing any configuration. Sometimes everything worked
fine. Other times, I'd get a failure. This happens regardless of if
`use-routes` is true or false.
E.g.,:
root@ip-192-168-11-242:/home/ubuntu# netplan apply; ./check_ips.sh
Checking 192.168.11.242 on port 22...
Connection to 192.168.11.242 22 port [tcp/ssh] succeeded!
Checking 18.116.64.168 on port 22...
Connection to 18.116.64.168 22 port [tcp/ssh] succeeded!
Checking 192.168.12.6 on port 22...
Connection to 192.168.12.6 22 port [tcp/ssh] succeeded!
Checking 3.147.240.160 on port 22...
Connection to 3.147.240.160 22 port [tcp/ssh] succeeded!
Checking 192.168.15.230 on port 22...
Connection to 192.168.15.230 22 port [tcp/ssh] succeeded!
Checking 3.146.111.120 on port 22...
nc: connect to 3.146.111.120 port 22 (tcp) timed out: Operation now in progress
root@ip-192-168-11-242:/home/ubuntu# netplan apply; ./check_ips.sh
Checking 192.168.11.242 on port 22...
Connection to 192.168.11.242 22 port [tcp/ssh] succeeded!
Checking 18.116.64.168 on port 22...
Connection to 18.116.64.168 22 port [tcp/ssh] succeeded!
Checking 192.168.12.6 on port 22...
Connection to 192.168.12.6 22 port [tcp/ssh] succeeded!
Checking 3.147.240.160 on port 22...
Connection to 3.147.240.160 22 port [tcp/ssh] succeeded!
Checking 192.168.15.230 on port 22...
Connection to 192.168.15.230 22 port [tcp/ssh] succeeded!
Checking 3.146.111.120 on port 22...
Connection to 3.146.111.120 22 port [tcp/ssh] succeeded!
[1] check_ips.sh:
#!/bin/bash
# 3 pairs of private ip followed by corresponding public ip
IPS=("192.168.11.242" "18.116.64.168" "192.168.12.6" "3.147.240.160"
"192.168.15.230" "3.146.111.120")
# Define the port to check
PORT=22
# Loop through each IP and run the command
for IP in "${IPS[@]}"; do
echo "Checking $IP on port $PORT..."
nc -w 1 -zv "$IP" "$PORT"
done
--
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