2008年3月1日

Linux Command ifup, ifdown, ifconfig

啟動網路卡的指令

ifup xxxx

停用網路卡的指令

ifdown xxxx

另一個常用來顯示網卡資訊的指令 ifconfig 也可以用來啟動與停用網卡,語法如下:

啟動網路卡的語法

ifconfig xxxx up

停用網路卡的語法

ifconfig xxxx down

xxxx 表示作業系統的網路卡代號。例如: eth0, eth1。