[Ubuntu18][netplan]eth1の設定

LINEで送る
Pocket

  • /etc/netplan/01-netcfg.yaml
network:
  renderer: networkd
  version: 2
  ethernets:
    eth0:
      addresses:
        - 163.43.194.85/24
      dhcp4: 'no'
      dhcp6: 'no'
      gateway4: 163.43.194.1
      nameservers:
        addresses:
          - 210.188.224.10
          - 210.188.224.11
        search:
          - localdomain
    eth1:
      addresses:
        - 192.168.0.23/24
      dhcp4: 'no'
      dhcp6: 'no'
      gateway4: 192.168.0.1
  • 反映
netplan apply

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *