In case you have trouble creating the condition that reproduces this
bug, there are two ways (that I know of) that will create two default
routes on an interface:

1) Configure two IPv6 routers on the same network and have each send
their own RAs with the same GA-prefix.

This will cause the host to configure an IPv6 SLAAC address and create
the two default routes.

2) Configure systemd-networkd

E.g. assume your interface is called enp0s9 and you already have add a
config file in /etc/system/network/10-enp0s9.network.  Now add an
override.conf as follows:


$ cat /etc/systemd/network/10-enp0s9.network.d/override.conf 
[Network]
Address=2001:2:0:1000:a00:27ff:fe5f:f72d/64

[Route]
Gateway=fe80::200:10ff:fe10:1060
GatewayOnLink=true

[Route]
Gateway=fe80::200:10ff:fe10:1061
GatewayOnLink=true

Now reload and reconfigure the interface and you will see two routes.

$ networkctl reload
$ networkctl reconfigure enp0s9
$ ip -6 r
$ ip -6 r show dev enp0s9

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

Title:
  "ip route show dev enp0s9" does not show all routes for enp0s9

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/2070412/+subscriptions


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

Reply via email to