Linux网络配置指令

Posted poterliu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux网络配置指令相关的知识,希望对你有一定的参考价值。

重启网卡
service network restart


关闭防火墙

永久关闭防火墙(下次启动机器才起作用):
chkconfig iptables off

永久关闭防火墙(立即生效):
service iptables stop

启动防火墙  
service iptables start

查看防火墙配置
iptables -L -n


两个命令同时运行,运行完成后查看防火墙关闭状态 :
service iptables status









以上是关于Linux网络配置指令的主要内容,如果未能解决你的问题,请参考以下文章