常用命令

重启网络

1.  sh /etc/rc.conf
2.  /etc/netstart
3.  /etc/rc.d/netif restart    (重启网卡)最好再/etc/rc.d/routing restart

重启网络时,最好将以上命令放入一个文件,然后用 "nohup  sh 文件 & "命令执行 

自动获取ip

dhclient em0 

原文地址:https://www.cnblogs.com/children/p/2829179.html