重置某個網路介面的方法

sudo ifconfig <interface> down
sudo ifconfig <interface> up

範例

sudo ifconfig eth0 down
sudo ifconfig eth0 up

重置所有的網路介面
sudo /etc/init.d/networking restart 

arrow
arrow
    全站熱搜

    yuanann 發表在 痞客邦 留言(0) 人氣()