1、配置IP
创建编辑 "/etc/sysconfig/network-scripts/ifcfg-eth0"文件,修改内容如下:
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.110.171
GATEWAY=192.168.110.1
NETMASK=255.255.255.0
DNS1=202.96.134.133
PEERDNS=no
2、配置DNS
修改对应网卡的DNS的配置文件"/etc/resolv.conf":
nameserver 202.96.134.133
/etc/init.d/network restart