解决方法:

1、配置好静态IP在/etc/network/interface

2、关闭dhcp服务(不知道这个服务是干嘛的,明明是客户端还需要这个)

sudo systemctl stop dhcpcd
sudo systemctl disable dhcpcd
sudo systemctl daemon-reload
sudo systemctl restart networking

如果此时中断或挂起没法动时,尤其是使用SSH登录的,可以使用【~】+【.】+【Enter】退出。

 

参考:

https://raspberrypi.stackexchange.com/questions/13359/where-does-my-secondary-ip-come-from

https://raspberrypi.stackexchange.com/questions/32516/multiple-ip-addresses-being-assigned

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2021-08-02
  • 2021-06-26
  • 2022-02-12
猜你喜欢
  • 2021-06-27
  • 2021-09-02
  • 2021-05-21
  • 2021-09-22
  • 2021-11-20
  • 2021-09-05
相关资源
相似解决方案