先关掉或卸掉 network-manager。
然后,改动/etc/network/interfaces 如下:
(由于是静态ip,你当然知道把例子中那些东西改成你自己的)
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254

然后
sudo /etc/init.d/networking restart
就搞定了。

相关文章:

  • 2021-09-11
  • 2021-06-27
  • 2021-08-28
  • 2021-12-09
  • 2022-02-07
  • 2021-04-14
  • 2021-08-20
  • 2021-11-25
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-08-08
  • 2022-01-01
  • 2022-02-05
  • 2021-07-15
  • 2022-02-05
相关资源
相似解决方案