1. 程式人生 > >ubuntu如何重啟網路

ubuntu如何重啟網路



檢視網絡卡資訊: ifconfig

設定一個網絡卡IP:ifconfig eth1 192.168.1.10 netmask 255.255.255.0

重啟網絡卡使設定生效:sudo /etc/init.d/networking restart



關閉網絡卡 ifdown eth0

開啟網絡卡 ifup eth0
重啟網絡卡,優點是可以指定網絡卡,不影響其他網路介面