預設是所有的 Ports 都 Enable 我們可以利用指令使該 Ports Enable 或 Disable
從下面顯示的 Ports 資訊中我們可以看到 Flags 欄位其中的 E (enalbe) 及 D (disable)
#show ports info Port Diag Flags Link Link Num Num Num Jumbo QOS Load State UPs STP VLAN Proto Size Profile Master 1 P e--m-------E active 2 0 1 0 9216 2 P e--m-------E active 2 0 1 0 9216 3 P e--m-------E active 2 0 1 0 9216 4 P e--m-------E active 2 0 1 0 9216 5 P e--m-------E active 2 0 1 0 9216 6 P e--m-------E active 2 0 1 0 9216 7 P e--m-------E active 8 0 1 0 9216 8 P e--m-------E active 2 0 1 0 9216 9 P e--m-------E active 12 0 1 0 9216 10 P e--m-------E ready 0 0 1 0 9216 11 P e--m-------E ready 0 0 1 0 9216 12 P e--m-------E ready 0 0 1 0 9216 13 P e--m-------E active 8 0 1 0 9216 14 P e--m-------E ready 8 0 1 0 9216 15 P e--m-------E active 2 0 1 0 9216 16 P e--m-------E active 12 0 1 0 9216 17 P e--m-------D ready 0 0 1 0 9216 18 P e--m-------D ready 0 0 1 0 9216 19 P e--m-------D ready 0 0 1 0 9216 20 P e--m-------D ready 0 0 1 0 9216 21 P e--m-------D ready 0 0 1 0 9216
#enable ports 17 //把 Ports 17 給 Enable
#disable ports 17 //把 Ports 17 給 Disable
#enable ports 17-20 //把 Ports 17 ~ 20 給 Enable #enable ports 1,3,5,17-20 //把 Ports 1,3,5,17 ~ 20 給 Enable
#disnable ports 17-20 //把 Ports 17 ~ 20 給 Disable #disnable ports 1,3,5,17-20 //把 Ports 1,3,5,17 ~ 20 給 Disable