debian 修改双网卡IP配置
shell> vi /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo eth0 eth1
- iface lo inet loopback
- # The primary network interface
- allow-hotplug eth1
- iface eth1 inet static
- address 192.168.1.33
- netmask 255.255.255.0
- gateway 192.168.1.1
- allow-hotplug eth0
- iface eth0 inet static
- address 202.194.53.104
- netmask 255.255.255.224
- gateway 202.194.53.65
修改DNS地址:
shell> vi /etc/resolv.conf
- nameserver 202.102.134.68
- nameserver 202.102.134.67
因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合MIP标准。