安装 NetworkManager 并建立 wifi 连接后,我的 wlan0 接口获得了辅助 IP 地址。
~ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 10:e7:c6:78:2c:c9 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether f8:63:3f:76:6c:6d brd ff:ff:ff:ff:ff:ff
inet 192.168.2.109/24 brd 192.168.2.255 scope global dynamic noprefixroute wlan0
valid_lft 1814066sec preferred_lft 1814066sec
inet 192.168.2.117/24 brd 192.168.2.255 scope global secondary dynamic noprefixroute wlan0
valid_lft 1814075sec preferred_lft 1587275sec
我不想为我的接口分配第二个 IP 地址,我希望 NetworkManager 使用在安装 NetworkManager 之前建立的现有连接iwctl
。使用了现有的连接配置,但不知何故第二个 IP 地址被添加到我的界面。