linux网络配置

配置网络

setup 

network configuartion

eth0


cat /etc/sysconfig/network-scripts/ifcfg-eth0

vi  /etc/sysconfig/network-scripts/ifcfg-eth0

<将ONBOOT=no,改为ONBOOT=yes>


ifup eth0   启动网卡  

</etc/init.d/network restart  等于service network restart>


LANG=en   修改语言


linux自带防火墙iptables

/etc.init.d/iptables stop 暂时关闭

chkconfig iptables off    永久关闭


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章