1. 打开文件

打开终端输入:sudo gedit /etc/network/interfaces    

2.修改内容
auto enp0s3

iface enp0s3 inet static

address 192.168.8.100

netmask 255.255.255.0

gateway 192.168.8.2

dns-nameserver 119.29.29.29

3.重启网络:sudo /etc/init.d/networking restart

4.重启虚拟机    ok


enp0s3:注意enp0s3代码你自己的网名;终端输入:ifconfig可以看到:如图所示
Ubuntu静态网络IP配置

相关文章:

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