Ubuntu 16.04修改配置静态IP和DNS

1.修改interfaces 文件

sudo gedit /etc/network/interfaces

2.添加 例如:

auto enp0s25
iface enp0s25 inet static
address 192.168.9.81
netmask 255.255.255.0 
gateway 192.168.9.108

# dns配置
dns-nameservers 8.8.8.8
dns-search pcat

3.重启电脑

相关文章:

  • 2021-07-20
  • 2021-06-16
  • 2021-07-04
  • 2022-12-23
  • 2021-12-11
  • 2021-12-19
  • 2021-09-11
  • 2021-06-07
猜你喜欢
  • 2021-11-25
  • 2022-01-01
  • 2022-02-07
  • 2022-02-07
  • 2022-03-09
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案