Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/mdaeo.org/usr/plugins/AMP/Action.php on line 388
debian 修改双网卡IP配置

debian 修改双网卡IP配置

2011-05-11T17:04:13

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 
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »
因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合MIP标准。