[index] CentreCOM x230シリーズ(52ポート版) コマンドリファレンス 5.5.1
Note同一ポート上でスパニングツリープロトコルとMACベース認証は併用できません。
Spanning Tree Protocol | STP | IEEE 802.1D | 0 |
Rapid Spanning Tree Protocol | RSTP | IEEE 802.1w | 2 |
Multiple Spanning Tree Protocol | MSTP | IEEE 802.1s | 3 |
awplus(config)# spanning-tree mode stp ↓
awplus(config)# spanning-tree mode rstp ↓
awplus(config)# spanning-tree mode mstp ↓
awplus(config)# no spanning-tree stp enable ↓
awplus(config)# no spanning-tree rstp enable ↓
awplus(config)# no spanning-tree mstp enable ↓
awplus(config)# spanning-tree stp enable ↓
awplus(config)# spanning-tree rstp enable ↓
awplus(config)# spanning-tree mstp enable ↓
awplus(config)# spanning-tree priority 8192 ↓
awplus(config)# interface port1.0.3-1.0.4 ↓ awplus(config-if)# spanning-tree guard root ↓
awplus(config)# interface port1.0.1-1.0.8 ↓ awplus(config-if)# spanning-tree edgeport ↓
awplus(config)# spanning-tree portfast bpdu-guard ↓
awplus(config)# interface port1.0.8 ↓ awplus(config-if)# spanning-tree portfast bpdu-guard enable ↓
NoteBPDUガードはエッジポート(spanning-tree edgeport/spanning-tree portfastコマンド)の動作を調整する機能です。非エッジポートではBPDUガードの設定は意味を持ちません(設定しても特別な動作を行いません)。
awplus(config)# interface port1.0.8 ↓ awplus(config-if)# no shutdown ↓
awplus(config)# spanning-tree errdisable-timeout enable ↓
awplus(config)# spanning-tree errdisable-timeout interval 10 ↓
awplus(config)# spanning-tree portfast bpdu-filter ↓
awplus(config)# interface port1.0.8 ↓ awplus(config-if)# spanning-tree portfast bpdu-filter enable ↓
NoteBPDUフィルターはエッジポート(spanning-tree edgeport/spanning-tree portfastコマンド)の動作を調整する機能です。非エッジポートではBPDUフィルターの設定は意味を持ちません(設定しても特別な動作を行いません)。
awplus> show spanning-tree | include % 1: ↓ % 1: Bridge up - Spanning Tree Enabled % 1: Root Path Cost 200000 - Root Port 5001 - Bridge Priority 61440 % 1: Forward Delay 15 - Hello Time 2 - Max Age 20 % 1: Root Id 00000000f4272c74 % 1: Bridge Id f0000000cd240367 % 1: 2 topology changes - last topology change Mon Feb 20 06:05:37 2012 % 1: portfast bpdu-filter disabled % 1: portfast bpdu-guard disabled % 1: portfast errdisable timeout disabled % 1: portfast errdisable timeout interval 300 sec
awplus> show spanning-tree interface port1.0.1-1.0.2,port1.0.8 | include Role ↓ % port1.0.1: Port 5001 - Id 8389 - Role Rootport - State Forwarding % port1.0.2: Port 5002 - Id 838a - Role Alternate - State Discarding % port1.0.8: Port 5008 - Id 8390 - Role Designated - State Forwarding
Noteモディファイアについては、「運用・管理」の「コマンドラインインターフェース(CLI)」をご覧ください。
Note前記のモディファイア使用例はあくまでも一例です。ファームウェアのバージョンによっては各コマンドの出力形式が異なり、結果として前記の指定ではうまく絞り込みが行われない可能性もあります。その場合は、各コマンドの出力を検討して、適切な文字列を指定するようにしてください。
SwitchA(config)# vlan database ↓ SwitchA(config-vlan)# vlan 10,20 ↓ SwitchA(config-vlan)# exit ↓
SwitchA(config)# interface port1.0.1-1.0.2 ↓ SwitchA(config-if)# switchport mode trunk ↓ SwitchA(config-if)# switchport trunk allowed vlan add 10,20 ↓ SwitchA(config-if)# exit ↓
SwitchA(config)# interface port1.0.3 ↓ SwitchA(config-if)# switchport mode access ↓ SwitchA(config-if)# switchport access vlan 10 ↓ SwitchA(config-if)# exit ↓ SwitchA(config)# interface port1.0.4 ↓ SwitchA(config-if)# switchport mode access ↓ SwitchA(config-if)# switchport access vlan 20 ↓ SwitchA(config-if)# exit ↓
SwitchA(config)# spanning-tree mode mstp ↓
SwitchA(config)# spanning-tree mst configuration ↓ SwitchA(config-mst)# region Test ↓ SwitchA(config-mst)# revision 1 ↓
SwitchA(config-mst)# instance 1 vlan 10 ↓ SwitchA(config-mst)# instance 2 vlan 20 ↓
SwitchA(config-mst)# instance 1 priority 32768 ↓ SwitchA(config-mst)# instance 2 priority 32768 ↓ SwitchA(config-mst)# exit ↓
SwitchA(config)# interface port1.0.3-1.0.4 ↓ SwitchA(config-if)# spanning-tree edgeport ↓ SwitchA(config-if)# exit ↓
SwitchB(config)# vlan database ↓ SwitchB(config-vlan)# vlan 10,20 ↓ SwitchB(config-vlan)# exit ↓
SwitchB(config)# interface port1.0.1-1.0.2 ↓ SwitchB(config-if)# switchport mode trunk ↓ SwitchB(config-if)# switchport trunk allowed vlan add 10,20 ↓ SwitchB(config-if)# exit ↓
SwitchB(config)# interface port1.0.3 ↓ SwitchB(config-if)# switchport mode access ↓ SwitchB(config-if)# switchport access vlan 10 ↓ SwitchB(config-if)# exit ↓ SwitchB(config)# interface port1.0.4 ↓ SwitchB(config-if)# switchport mode access ↓ SwitchB(config-if)# switchport access vlan 20 ↓ SwitchB(config-if)# exit ↓
SwitchB(config)# spanning-tree mode mstp ↓
SwitchB(config)# spanning-tree mst configuration ↓ SwitchB(config-mst)# region Test ↓ SwitchB(config-mst)# revision 1 ↓
SwitchB(config-mst)# instance 1 vlan 10 ↓ SwitchB(config-mst)# instance 2 vlan 20 ↓
SwitchB(config-mst)# instance 1 priority 4096 ↓ SwitchB(config-mst)# instance 2 priority 8192 ↓ SwitchB(config-mst)# exit ↓
SwitchB(config)# interface port1.0.3-1.0.4 ↓ SwitchB(config-if)# spanning-tree edgeport ↓ SwitchB(config-if)# exit ↓
SwitchC(config)# vlan database ↓ SwitchC(config-vlan)# vlan 10,20 ↓ SwitchC(config-vlan)# exit ↓
SwitchC(config)# interface port1.0.1-1.0.2 ↓ SwitchC(config-if)# switchport mode trunk ↓ SwitchC(config-if)# switchport trunk allowed vlan add 10,20 ↓ SwitchC(config-if)# exit ↓
SwitchC(config)# interface port1.0.3 ↓ SwitchC(config-if)# switchport mode access ↓ SwitchC(config-if)# switchport access vlan 10 ↓ SwitchC(config-if)# exit ↓ SwitchC(config)# interface port1.0.4 ↓ SwitchC(config-if)# switchport mode access ↓ SwitchC(config-if)# switchport access vlan 20 ↓ SwitchC(config-if)# exit ↓
SwitchC(config)# spanning-tree mode mstp ↓
SwitchC(config)# spanning-tree mst configuration ↓ SwitchC(config-mst)# region Test ↓ SwitchC(config-mst)# revision 1 ↓
SwitchC(config-mst)# instance 1 vlan 10 ↓ SwitchC(config-mst)# instance 2 vlan 20 ↓
SwitchC(config-mst)# instance 1 priority 8192 ↓ SwitchC(config-mst)# instance 2 priority 4096 ↓ SwitchC(config-mst)# exit ↓
SwitchC(config)# interface port1.0.3-1.0.4 ↓ SwitchC(config-if)# spanning-tree edgeport ↓ SwitchC(config-if)# exit ↓
awplus(config)# interface port1.0.12 ↓ awplus(config-if)# no spanning-tree mst instance 2 ↓
awplus(config-mst)# no instance 1 vlan 10 ↓
awplus(config-mst)# instance 1 priority 4096 ↓ awplus(config-mst)# instance 2 priority 8192 ↓
awplus> show spanning-tree mst ↓ % 1: Bridge up - Spanning Tree Enabled % 1: CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768 % 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20 % 1: CIST Root Id 80000000cd240367 % 1: CIST Reg Root Id 80000000cd240367 % 1: CIST Bridge Id 80000000cd240367 % 1: CIST 2 topology changes - last topology change Mon Jan 30 06:10:23 2012 % 1: portfast bpdu-filter disabled % 1: portfast bpdu-guard disabled % 1: portfast errdisable timeout disabled % 1: portfast errdisable timeout interval 300 sec % % Instance VLAN % 0: 1 % 1: 10 (port1.0.3) % 1: 10 (port1.0.2) % 1: 10 (port1.0.1) % 2: 20 (port1.0.4) % 2: 20 (port1.0.2) % 2: 20 (port1.0.1)
awplus> show spanning-tree mst detail ↓ % 1: Bridge up - Spanning Tree Enabled % 1: CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768 % 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20 % 1: CIST Root Id 80000000cd240367 % 1: CIST Reg Root Id 80000000cd240367 % 1: CIST Bridge Id 80000000cd240367 % 1: CIST 2 topology changes - last topology change Mon Jan 30 06:10:23 2012 % 1: portfast bpdu-filter disabled % 1: portfast bpdu-guard disabled % 1: portfast errdisable timeout disabled % 1: portfast errdisable timeout interval 300 sec % port1.0.1: Port 5001 - Id 8389 - Role Designated - State Forwarding % port1.0.1: Designated External Path Cost 0 -Internal Path Cost 0 % port1.0.1: Configured Path Cost 200000 - Add type Explicit ref count 3 % port1.0.1: Designated Port Id 8389 - CIST Priority 128 - % port1.0.1: CIST Root 80000000cd240367 % port1.0.1: Regional Root 80000000cd240367 % port1.0.1: Designated Bridge 80000000cd240367 % port1.0.1: Message Age 0 - Max Age 20 % port1.0.1: CIST Hello Time 2 - Forward Delay 15 % port1.0.1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 - topo cha nge timer 0 % port1.0.1: forward-transitions 3 % port1.0.1: Version Multiple Spanning Tree Protocol - Received MSTP - Send MS TP % port1.0.1: No portfast configured - Current portfast off % port1.0.1: portfast bpdu-guard default - Current portfast bpdu-guard off % port1.0.1: portfast bpdu-filter default - Current portfast bpdu-filter off % port1.0.1: no root guard configured - Current root guard off % port1.0.1: Configured Link Type point-to-point - Current point-to-point % % port1.0.2: Port 5002 - Id 838a - Role Designated - State Forwarding ...
awplus> show spanning-tree mst detail interface port1.0.1 ↓ % 1: Bridge up - Spanning Tree Enabled % 1: CIST Root Path Cost 0 - CIST Root Port 0 - CIST Bridge Priority 32768 % 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Max-hops 20 % 1: CIST Root Id 80000000cd240367 % 1: CIST Reg Root Id 80000000cd240367 % 1: CIST Bridge Id 80000000cd240367 % 1: CIST 2 topology changes - last topology change Mon Jan 30 06:10:23 2012 % 1: portfast bpdu-filter disabled % 1: portfast bpdu-guard disabled % 1: portfast errdisable timeout disabled % 1: portfast errdisable timeout interval 300 sec % port1.0.1: Port 5001 - Id 8389 - Role Designated - State Forwarding % port1.0.1: Designated External Path Cost 0 -Internal Path Cost 0 % port1.0.1: Configured Path Cost 200000 - Add type Explicit ref count 3 % port1.0.1: Designated Port Id 8389 - CIST Priority 128 - % port1.0.1: CIST Root 80000000cd240367 % port1.0.1: Regional Root 80000000cd240367 % port1.0.1: Designated Bridge 80000000cd240367 % port1.0.1: Message Age 0 - Max Age 20 % port1.0.1: CIST Hello Time 2 - Forward Delay 15 % port1.0.1: CIST Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 - topo cha nge timer 0 % port1.0.1: forward-transitions 3 % port1.0.1: Version Multiple Spanning Tree Protocol - Received MSTP - Send MS TP % port1.0.1: No portfast configured - Current portfast off % port1.0.1: portfast bpdu-guard default - Current portfast bpdu-guard off % port1.0.1: portfast bpdu-filter default - Current portfast bpdu-filter off % port1.0.1: no root guard configured - Current root guard off % port1.0.1: Configured Link Type point-to-point - Current point-to-point % % Instance 1: Vlans: 10 % 1: MSTI Root Path Cost 0 -MSTI Root Port 0 - MSTI Bridge Priority 4096 % 1: MSTI Root Id 10010000cd240367 % 1: MSTI Bridge Id 10010000cd240367 % port1.0.1: Port 5001 - Id 8389 - Role Designated - State Forwarding % port1.0.1: Designated Internal Path Cost 0 - Designated Port Id 8389 % port1.0.1: Configured Internal Path Cost 200000 % port1.0.1: Configured CST External Path cost 200000 % port1.0.1: CST Priority 128 - MSTI Priority 128 % port1.0.1: Designated Root 10010000cd240367 % port1.0.1: Designated Bridge 10010000cd240367 % port1.0.1: Message Age 0 - Max Age 0 % port1.0.1: Hello Time 2 - Forward Delay 15 % port1.0.1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 % Instance 2: Vlans: 20 % 1: MSTI Root Path Cost 2000 -MSTI Root Port 5002 - MSTI Bridge Priority 8192 % 1: MSTI Root Id 10020000f4272c74 % 1: MSTI Bridge Id 20020000cd240367 % port1.0.1: Port 5001 - Id 8389 - Role Alternate - State Discarding % port1.0.1: Designated Internal Path Cost 0 - Designated Port Id 8389 % port1.0.1: Configured Internal Path Cost 200000 % port1.0.1: Configured CST External Path cost 200000 % port1.0.1: CST Priority 128 - MSTI Priority 128 % port1.0.1: Designated Root 10020000f4272c74 % port1.0.1: Designated Bridge 10020000f4272c74 % port1.0.1: Message Age 0 - Max Age 0 % port1.0.1: Hello Time 2 - Forward Delay 15 % port1.0.1: Forward Timer 0 - Msg Age Timer 4 - Hello Timer 0
awplus> show spanning-tree mst config ↓ % % MSTP Configuration Information for bridge 1 : %------------------------------------------------------ % Format Id : 0 % Name : Test % Revision Level : 1 % Digest : 0x9357EBB7A8D74DD5FEF4F2BAB50531AA %------------------------------------------------------
awplus> show spanning-tree mst instance 1 ↓ % 1: MSTI Root Path Cost 0 - MSTI Root Port 0 - MSTI Bridge Priority 4096 % 1: MSTI Root Id 10010000cd240367 % 1: MSTI Bridge Id 10010000cd240367 % 1: 1 topology changes - last topology change Mon Jan 30 06:11:45 2012 % port1.0.3: Port 5003 - Id 838b - Role Disabled - State Discarding % port1.0.3: Designated Internal Path Cost 0 - Designated Port Id 838b % port1.0.3: Configured Internal Path Cost 20000000 % port1.0.3: Configured CST External Path cost 20000000 % port1.0.3: CST Priority 128 - MSTI Priority 128 % port1.0.3: Designated Root 10010000cd240367 % port1.0.3: Designated Bridge 10010000cd240367 % port1.0.3: Message Age 0 - Max Age 0 % port1.0.3: Hello Time 2 - Forward Delay 15 % port1.0.3: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0 % % port1.0.2: Port 5002 - Id 838a - Role Designated - State Forwarding % port1.0.2: Designated Internal Path Cost 0 - Designated Port Id 838a % port1.0.2: Configured Internal Path Cost 200000 % port1.0.2: Configured CST External Path cost 200000 % port1.0.2: CST Priority 128 - MSTI Priority 128 % port1.0.2: Designated Root 10010000cd240367 % port1.0.2: Designated Bridge 10010000cd240367 % port1.0.2: Message Age 0 - Max Age 0 % port1.0.2: Hello Time 2 - Forward Delay 15 % port1.0.2: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 1 % % port1.0.1: Port 5001 - Id 8389 - Role Designated - State Forwarding % port1.0.1: Designated Internal Path Cost 0 - Designated Port Id 8389 % port1.0.1: Configured Internal Path Cost 200000 % port1.0.1: Configured CST External Path cost 200000 % port1.0.1: CST Priority 128 - MSTI Priority 128 % port1.0.1: Designated Root 10010000cd240367 % port1.0.1: Designated Bridge 10010000cd240367 % port1.0.1: Message Age 0 - Max Age 0 % port1.0.1: Hello Time 2 - Forward Delay 15 % port1.0.1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0
(C) 2019 - 2021 アライドテレシスホールディングス株式会社
PN: 613-002734 Rev.P