1 setting ip and gateway

sudo gedit /etc/network/interfaces

ubuntu set net

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.172
gateway 192.168.0.1
netmask 255.255.255.0

ubuntu set net

2 setting dns

sudo gedit /etc/resolv.conf

ubuntu set net

 

add:

nameserver    192.168.0.1

ubuntu set net

3 restart net

sudo /etc/init.d/networking restart

ubuntu set net

相关文章:

  • 2022-02-25
  • 2022-12-23
  • 2021-08-26
  • 2022-02-17
  • 2021-04-01
  • 2021-08-04
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-01-22
相关资源
相似解决方案