デフォルトのポート状態について
デフォルトでは、ライセンスされているすべてのポートが(永続的な)有効になっています。必要に応じて、特定ポートを無効にしたり再度有効にしたりすることができます。
ポートの有効化
一時的な有効化
portenable [slot/]port1[-port2] […]
■使用例
switch:admin> portenable 2/4
switch:admin> portenable 2/4-8
switch:admin> portenable 2/24-26 3/10-12 4/3-4
永続的な有効化
portcfgpersistentenable [slot/]port1[-port2] […]
portcfgpersistentenable
- 引数なしで実行した場合は現在の設定を表示する
永続的に有効にされたポートは、電源の再投入、スイッチの再起動、およびスイッチの有効化を通じて有効のままになります。
■使用例
switch:admin> portcfgpersistentenable 2/4
switch:admin> portcfgpersistentenable 2/4-8
switch:admin> portcfgpersistentenable 2/24-26 3/10-12 4/3-4
■スイッチで永続的に有効になっているポートを表示
switch:admin> portcfgpersistentenable
Slot 9 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---
Enabled YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES YES
#略
ポートの無効化
一時的な無効化
portdisable [slot/]port1[-port2] […]
■使用例
switch:admin> portdisable 2/4
switch:admin> portdisable 2/4-8
switch:admin> portdisable 2/24-26 3/10-12 4/3-4
永続的な無効化
portcfgpersistentdisable [slot/]port1[-port2] […]
portcfgpersistentdisable
- 引数なしで実行した場合は現在の設定を表示する
永続的に無効にされたポートは、電源の再投入、スイッチの再起動、およびスイッチの有効化を通じて無効のままになります。
■使用例
switch:admin> portcfgpersistentdisable 2/4
switch:admin> portcfgpersistentdisable 2/4-8
switch:admin> portcfgpersistentdisable 2/12-15 3/10-12 4/3-4
■スイッチで永続的に無効になっているポートを表示
switch:admin> portcfgpersistentdisable
---------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Disabled - - - - - - - - - - - - - - - -
Slot 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---
Disabled - YES YES - - - - - - - - - - - YES YES
Slot 0 32 33 34 35 36 37 38 39
---------+---+---+---+---+---+---+---+--
Disabled YES YES YES YES YES YES YES YES
―――――――――――――