Ubuntu18.04 server 配置静态IP地址

1/12/2022 Ubuntu网卡

# Ubuntu18.04 server 配置静态IP地址

sudo vi /etc/netplan/00-installer-config.yaml
sudo netplan try
1
2

内容参考

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens18:
      addresses:
        - "192.168.1.3/20"
        - "240e:aa:bb:cc::4/64"
      gateway4: 192.168.1.1
      gateway6: 240e:aa:bb:cc::1
  version: 2
1
2
3
4
5
6
7
8
9
10
Last Updated: 1/22/2024, 8:56:53 AM