重启网卡
# /etc/init.d/network restart
配置网卡
# ifconfig eth0 10.8.0.9 netmask 255.255.255.0
linux下添加默认网关
# /etc/sysconfig/network-scripts/ifcfg-eth0
# /etc/init.d/network restart
重启eth0
ifconfig eth0 down/up
ipaddr add 192.168.1.1/24 edv eth0 添加192.168.1.1/24到eth0网卡
改DNS
more /etc/resolv.conf
关闭iptables
/etc/rc.d/init.d/iptables stop
修改启动等级
/etc/inittab