Sure! I'll simply provide the NetworkManager connections as they are in
use by us. So /etc/NetworkManager/system-connections should look like
this:

root@id-00000015695:/etc/NetworkManager/system-connections# ls -l
totaal 12
-rw------- 1 root root 125 aug 11 11:28 dhcp
-rw------- 1 root root 191 aug 11 11:28 manual1
-rw------- 1 root root 194 aug 11 14:31 manual2

The 'dhcp' profile is a DHCP profile and 'manual1' and 'manual2' are
both static profiles.

This is the 'dhcp' profile:

[connection]
id=DHCP
uuid=702624f9-f052-473a-b131-acd2045e6ec2
type=802-3-ethernet

[ipv4]
method=auto

[ipv6]
method=ignore

This is the 'manual1' profile:

[connection]
id=Manual1
uuid=e77a459e-6242-4e7d-ba95-371f27592526
type=802-3-ethernet

[ipv4]
method=manual
address1=10.45.67.5/24,10.45.76.1
dns=10.45.70.1;10.45.70.2;

[ipv6]
method=ignore

This is the 'manual2' profile:

[connection]
id=Manual2
uuid=7a9a5bc2-d51a-46b4-b721-050a607951bc
type=802-3-ethernet

[ipv4]
method=manual
address1=10.110.110.111/24,10.110.110.110
dns=8.8.8.8;8.8.4.4;

[ipv6]
method=ignore

Place all these profiles in system-connections. Select DHCP using
NetworkManager. Then reboot or restart NetworkManager service. A
different profile (manual1 or manual2) will be selected instead of dhcp.
If you repeat this again, the last profile (the one which hasn't been
selected yet) will be chosen. Another repeat will bring the selection
back to DHCP. With every repeat it should continue in the same order,
iterating through all three profiles.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1613729

Title:
  NetworkManager autoconnects to wired profiles in reverse order

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1613729/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to