这是我的/etc/netplan/01-network-manager-all.yaml
内容:
network:
version: 2
renderer: NetworkManager
ethernets:
wlxa0f3c123eaf8:
dhcp4: no
dhcp6: no
addresses: [192.168.0.150/24]
gateway4: 192.168.0.1
nameservers:
addresses: [127.0.0.53]
我选择这些参数ip route show
default via 192.168.0.1 dev wlxa0f3c123eaf8 proto static metric 600
169.254.0.0/16 dev wlxa0f3c123eaf8 scope link metric 1000
192.168.0.0/24 dev wlxa0f3c123eaf8 proto kernel scope link src 192.168.0.100 metric 600
和nslookup google.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: google.com
Address: 172.217.10.14
Wifi 正在工作,但它总是与 dhcp 一起使用。我应该在哪里解决这个问题?