一件配置:
rm -rf /etc/udev/rules.d/70-persistent-net.rules
cd /etc/sysconfig/network-scripts
rm -rf ifcfg-eth0
cat >> ifcfg-eth0 <<EOF
DEVICE=eth0
BOOTPROTO=none
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Ethernet
IPADDR=10.10.30.221
NETMASK=255.255.255.0
GATEWAY=10.10.30.1
DNS1=223.5.5.5
DNS2=8.8.8.8
EOF
reboot