1.相关命令

gedit /etc/network/interfaces
------------------------------内 容------------------------------
# interfaces(6) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.200
netmask 255.255.255.0
gateway 10.0.0.2
dns-nameservers 10.0.0.2
------------------------------内 容------------------------------
/etc/init.d/networking restart

Ubuntu18配置静态IP

Ubuntu18配置静态IP

 

相关文章:

  • 2021-04-24
  • 2021-08-08
  • 2021-12-04
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-12-09
  • 2022-12-23
  • 2021-07-12
相关资源
相似解决方案