Zum Inhalt

Schlagwort: tutorial

Example Netplan dual stack network configuration for Ubuntu 18.04

(08-15 example) srv01 ~ # 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:
    ens160:
      addresses: [1.2.3.4/30, "2a02:708:xx:xx::2/64"]
      gateway4: 1.2.3.4
      gateway6: 2a02:708:xx:xx::1
      nameservers: 
        addresses: [8.8.8.8, "2001:4860:4860::8888"]
    ens192:
      addresses: [192.168.0.10/24]


to apply the settings, use

netplan apply

to list your network interfaces (and their names) use

ip addr
1 Comment