shell> vi /etc/network/interfaces

 

  1. # This file describes the network interfaces available on your system 
  2. # and how to activate them. For more information, see interfaces(5). 
  3.  
  4. # The loopback network interface 
  5. auto lo eth0 eth1 
  6. iface lo inet loopback 
  7.  
  8. # The primary network interface 
  9. allow-hotplug eth1 
  10. iface eth1 inet static 
  11.     address  192.168.1.33
  12.     netmask 255.255.255.0 
  13.     gateway 192.168.1.1
  14.  
  15. allow-hotplug eth0 
  16. iface eth0 inet static 
  17.     address 202.194.53.104 
  18.     netmask 255.255.255.224 
  19.     gateway 202.194.53.65 

修改DNS地址:

shell> vi /etc/resolv.conf

  1. nameserver 202.102.134.68 
  2. nameserver 202.102.134.67 
Last modification:July 14, 2020
如果觉得我的文章对你有用,请随意赞赏