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

外部连结