netplan

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋

netplanLinux下管理網路連線的軟體。

範例

#
network:
  version: 2
  renderer: networkd
  ethernets:
    en0:
      accept-ra: false
      dhcp4: false
    en1:
      accept-ra: false
      dhcp4: false
    macvlan0:
      accept-ra: false
      addresses:
        - 192.168.1.234/24
      routes:
        - to: 1.2.3.4/22
          via: 192.168.1.254

外部連結