$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
encc000:
dhcp4: no
dhcp6: no
vlans:
encc000.2653:
link: encc000
id: 2653
addresses: [ 10.245.236.11/24 ]
gateway4: 10.245.236.1
$ cat /etc/network/interfaces
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.245.236.1
dns-search canonical.com
$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
$ cat /etc/netplan/ 01-netcfg. yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
encc000:
dhcp4: no
dhcp6: no
vlans:
encc000.2653:
link: encc000
id: 2653
addresses: [ 10.245.236.11/24 ]
gateway4: 10.245.236.1
$ cat /etc/network/ interfaces
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.245.236.1
dns-search canonical.com
$ cat /etc/resolv.conf resolved( 8). Do not edit.
# This file is managed by man:systemd-
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53