首先打开ubuntu的网络配置文件

sudo vi /etc/network/interfaces

添加下面的内容:

auto lo
iface lo inet loopback
auto eth0

iface eth0 inet static
address 192.168.100.198
netmask 225.225.225.0
gateway 192.168.100.1  

配置DNS:

vi /etc/resolv.conf
nameserver 192.168.100.1

 

 

 

相关文章:

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