← Back to team overview

netplan-developers team mailing list archive

Is it possible to configure an IPv6 nexthop for IPv4 routes?

 

Hi,

Using the "ip" command I can configure an IPv6 nexthope for an IPv4
route, e.g.:

# ip address add 85.119.82.225/32 dev enX0
# ip -4 route add default via inet6 fe80::1 src 85.119.82.225

This works fine (the router on fe90::1 of that link has IPv4
connectivity).

Is this possible to configure in netplan? The obvious config attempt:

network:
    version: 2
    renderer: networkd
    ethernets:
        enX0:
            addresses:
                - 85.119.82.225/32
            nameservers:
                addresses: [85.119.80.232, 85.119.80.233]
            routes:
                - to: default
                  via: fe80::1
                  from: 85.119.82.225

gives:

/etc/netplan/nexthop.yaml:13:25: Error in network definition: IP family mismatch in route to 85.119.82.225
                  from: 85.119.82.225
                        ^

Admittedly I do not know if this is possible with systemd-networkd or
NetworkManager.

Thanks,
Andy


Follow ups