>ifconfig eth0 up|down
>service network restart|start|stop


1.前者指定对应网卡 后者是所有网卡
2.前者选项有启动和关闭 后者有重启选项。
 即:前者若要有restart效果,需要 ifconfig eth0 down && ifconfig eth0 up[远程操作需要注意]
3.后者service的操作和前者/sbin下命令操作,权限不同
 一些情况下service命令会收给root使用,而普通用户在特定情况下仍可以使用ifconfig
 
posted on 2016-07-25 23:21  asker7  阅读(915)  评论(0)    收藏  举报

asker7