I'm using Ubuntu 18.04 bionic.
when I try to configure GRE Tunnel in the netcfg.yaml file I encounter an error:
Error in network definition //etc/netplan/01-netcfg.yaml line x column x: unknown key tunnels.
The yaml configuration looks like this:
network:
version: 2
renderer: networkd
ethernets:
ens01:
addresses : [10.201.x.yyy/24]
gateway4: 10.201.x.254
nameservers:
addresses: [10.200.nn.tt]
dhcp4: no
ens02:
dhcp4: no
addresses : [10.200.aa.dd/24]
routes:
- to: 10.200.hh.0/24
via: 10.200.aa.254
tunnels:
gre1:
mode: gre
local: 10.200.aa.dd
remote: 10.200.hh.cc
addresses:
- 172.26.jj.14/32
gateway4: 172.26.jj.13
What is the right way to configure GRE Tunnel on Ubuntu?
A similar yaml configuration, but I still got the same error:
The error is: Error in network definition line 3 column 2: unknown key tunnels
The netplan version is: