Centos双IP以及DNS配置

[root@localhost dahdi-linux-2.2.0.2]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 
 
# Broadcom Corporation BCM4401-B0 100Base-TX
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:1B:B9:70:B4:87
IPADDR=192.168.1.115
NETMASK=255.255.255.0
ONBOOT=yes

 copy一份ifcfg-eth0为ifcfg-eth1

[root@localhost dahdi-linux-2.2.0.2]# vim /etc/sysconfig/network-scripts/ifcfg-e
th1
 
# Broadcom Corporation BCM4401-B0 100Base-TX
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:1B:B9:70:B4:87
IPADDR=192.168.10.234
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
DNS1=192.168.10.1
ONBOOT=yes

service network restart

ping baidu OK.inter also OK

over!

 

 

 

你可能感兴趣的:(linux,centos,vim)