ubuntu server wifi 设置静态ip
参考博客:https://blog.csdn.net/qq_36393978/article/details/124868232
在安装ubuntu server的适合选择了wifi,但是想设置静态ip
可以在/etc/netplan下面找到wifi的配置文件:00-installer-config-wifi.yaml
root@pc:/etc/netplan# ls
00-installer-config-wifi.yaml 00-installer-config.yaml
原配置:
# This is the network config written by 'subiquity'
network:
version: 2
wifis:
wlp3s0:
access-points:
wifi_name:
password: 'xxxxxxx'
dhcp4: true
新静态配置:
# This is the network config written by 'subiquity'
network:
version: 2
wifis:
wlp3s0:
access-points:
wifi_name:
password: 'xxxxxx'
dhcp4: false
addresses:
- 192.168.18.200/24
routes:
- to: default
via: 192.168.18.1