#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:1F:E2:16:40:52
IPADDR=10.10.19.165
NETMASK=255.255.254.0
GATEWAY=10.10.18.254
ONBOOT=yes
TYPE=Ethernet
#vim /etc/rc.d/rc.local
//添加以下三行:
ifconfig eth0 down
ifconfig eth0 hw ether 00:1F:E2:16:40:52
ifconfig eth0 up
#vim /etc/resolv.conf
//添加DNS:
nameserver 10.4.1.30
nameserver 10.4.1.31