Netplan on-link does not work for IPv6

Bug #1785493 reported by Jan Vanhercke
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Fix Released
High
Unassigned

Bug Description

An IPv6 on-link route configuration has no effect.

network:
    version: 2
    ethernets:
        ens3:
            addresses:
                - fd00::1/128
            routes:
                - to: ::/0
                  via: fd00::2
                  on-link: true

Similar configuration for IPv4 works perfectly

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netplan.io (Ubuntu):
status: New → Confirmed
Changed in netplan.io (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
michacassola (michacassola) wrote :

Hey Mathieu, when will this bug be fixed, it's been quite some time. Thanks!

Revision history for this message
Ryan Young (rayoung) wrote :

Fixed in Ubuntu 20.04! You just need to add a link-scope route for your gateway, as documented: https://netplan.io/examples/#reaching-a-directly-connected-gateway

network:
  ethernets:
    ens3:
      dhcp4: true
      addresses: [ "2602:ff75:7:34fd::/128" ]
      routes:
        - to: "2602:ff75:7::1/128"
          scope: link
        - to: "::/0"
          via: "2602:ff75:7::1"
          on-link: true
  version: 2

Changed in netplan.io (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.