重启网卡
service network restart
关闭防火墙
永久关闭防火墙(下次启动机器才起作用):
chkconfig iptables off
永久关闭防火墙(立即生效):
service iptables stop
启动防火墙
service iptables start
查看防火墙配置
iptables -L -n
两个命令同时运行,运行完成后查看防火墙关闭状态 :
service iptables status
原文:http://www.cnblogs.com/poterliu/p/6686799.html