修改为静态ip:
-
davidcchen@davidcchen:/$ sudo vi /etc/netplan/00-installer-config.yaml
-
# This is the network config written by 'subiquity'
-
network:
-
ethernets:
-
enp0s3:
-
dhcp4: no
-
addresses: [192.168.60.199/24]
-
gateway4: 192.168.60.1
-
version: 2
- ~
2、更新网络设置
- sudo netplan apply