Ubuntu有线校园网认证窗口提示:could not connect : no route to host

问题

在Linux系统(Unbuntu22.04)上连接校园网时,遇到一个问题。
因为使用的是有线连接校园网,弹出校园网认证窗口时提示:
could not connect: no route to host

尝试的方法

尝试了以下方法,但都没能解决:

  • 更换Ip地址;(因为配置的是静态IP,考虑到地址冲突)
  • 更换DNS服务器;
  • 关闭代理;
  • 尝试关闭防火墙,iptables -F
  • 重启系统也没用;

解决

最终靠重启网络服务解决:
因为Ubuntu22不再有network-manager,使用nmcli命令:
sudo nmcli networking off
sudo nmcli networking on

猜你喜欢

转载自blog.csdn.net/Noak7/article/details/125573255