We know that
netplan is used in Ubuntu 17.04 + instead of
So there are two ways.
Uninstall netplan and reuse interfaces
apt-get remove netplan
Then refer to the comments in
/etc/network/interfaces, because there is no Ubuntu machine, and so on.
Take the famous he-ipv6 as an example
[Match] [Network] Tunnel=he-ipv6
[Match] [NetDev] Name=he-ipv6 Kind=sit [Tunnel] Independent=true Local=192.168.0.x #Private IP if behind NAT or Public IP without NAT Remote=22.214.171.124 #Tunnel broker's IPv4 address TTL=255
Use your favorite editor, nano here
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: he-ipv6: dhcp4: no dhcp6: no addresses: ['2001:470:xxx:xxx::2/64'] gateway6: 2001:470:xxx:xxx::1 enp0s3: ...
The order will be different, but we must pay attention to the format!
Do you want that dhcp?
4.Restart the network
systemctl restart systemd-networkd && netplan apply