[ovs-discuss] GRE with link-local remote_ip: "not a valid IPv6 address"

Gregory Rose gvrose8192 at gmail.com
Tue Aug 27 15:12:58 UTC 2019

On 8/27/2019 3:09 AM, Sven Gebauer wrote:
> Hi all,
> I'm trying to create a GRE tunnel with an IPv6 link-local address as the
> remote_ip. According to the changelog, this should be supported since
> v2.8.0. However...
> root at vpntest4:~# ovs-vsctl add-br ovsbr0
> root at vpntest4:~# ovs-vsctl add-port ovsbr0 ovsbr0-gre -- set interface ovsbr0-gre type=ip6gre options:remote_ip='fe80::1%ens9'
> ovs-vsctl: Error detected while setting up 'ovsbr0-gre': ovsbr0-gre: bad ip6gre 'remote_ip'
> ovsbr0-gre: ip6gre type requires valid 'remote_ip' argument.  See ovs-vswitchd log for details.
> ovs-vsctl: The default log directory is "/var/log/openvswitch".
> root at vpntest4:~# tail /var/log/openvswitch/ovs-vswitchd.log
> 2019-08-22T07:22:09.545Z|00050|socket_util|ERR|"fe80::1%ens9" is not a valid IPv6 address

Remove the '%ens9' from your IPv6 address, that's not valid.

- Greg

> 2019-08-22T07:22:09.545Z|00051|netdev_vport|WARN|ovsbr0-gre: bad ip6gre 'remote_ip'
> ovsbr0-gre: ip6gre type requires valid 'remote_ip' argument
> 2019-08-22T07:22:09.545Z|00052|netdev|WARN|ovsbr0-gre: could not set configuration (Invalid argument)
> Regular (non-link-local) IPv6 addresses work fine.
> Setting up a tunnel with the `ip` command like this also works:
> # ip link add test-gre type ip6gretap remote fe80::1 dev ens9
> Any idea what I'm doing wrong here? Or is this a bug?
> I'm using Open vSwitch 2.11.0 on Ubuntu 19.04, kernel version 5.0.0.
> Thanks
> Sven
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

More information about the discuss mailing list