この製品のマニュアルセットは、偏向のない言語を使用するように配慮されています。このマニュアルセットでの偏向のない言語とは、年齢、障害、性別、人種的アイデンティティ、民族的アイデンティティ、性的指向、社会経済的地位、およびインターセクショナリティに基づく差別を意味しない言語として定義されています。製品ソフトウェアのユーザーインターフェイスにハードコードされている言語、RFP のドキュメントに基づいて使用されている言語、または参照されているサードパーティ製品で使用されている言語によりドキュメントに例外が存在する場合があります。シスコのインクルーシブランゲージに対する取り組みの詳細は、こちらをご覧ください。
このドキュメントは、米国シスコ発行ドキュメントの参考和訳です。リンク情報につきましては、日本語版掲載時点で、英語版にアップデートがあり、リンク先のページが移動/変更されている場合がありますことをご了承ください。あくまでも参考和訳となりますので、正式な内容については米国サイトのドキュメントを参照ください。
目次
この章では、Cisco NX-OS デバイスで Rapid per VLAN Spanning Tree(Rapid PVST+)プロトコルを設定する方法について説明します。
この章は、次の内容で構成されています。
(注) |
See the 『Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 6.x』, for information on creating Layer 2 interfaces. |
The Spanning Tree Protocol (STP) was implemented to provide a loop-free network at Layer 2 of the network. Rapid PVST+ is an updated implementation of STP that allows you to create one spanning tree topology for each VLAN. Rapid PVST+ is the default STP mode on the device.
(注) |
Spanning tree is used to refer to IEEE 802.1w and IEEE 802.1s. If the IEEE 802.1D Spanning Tree Protocol is discussed in this publication, then 802.1D is stated specifically. |
(注) |
You can run either Rapid PVST+ or MST within each virtual device context (VDC). You cannot run both STP modes simultaneously in a VDC. Rapid PVST+ is the default STP mode. |
The Rapid PVST+ protocol is the IEEE 802.1w standard, Rapid Spanning Tree Protocol (RSTP), implemented on a per VLAN basis. Rapid PVST+ interoperates with the IEEE 802.1Q VLAN standard, which mandates a single STP instance for all VLANs, rather than per VLAN.
Rapid PVST+ is enabled by default on the default VLAN (VLAN1) and on all newly created VLANs on the device. Rapid PVST+ interoperates with devices that run legacy IEEE 802.1D STP.
RSTP is an improvement on the original STP standard, 802.1D, which allows faster convergence.
The Cisco NX-OS release that is running on a managed device may not support all the features or settings described in this chapter. For the latest feature information and caveats, see the documentation and release notes for your platform and software release.
(注) |
Beginning with Cisco NX-OS Release 5.x, when you are running virtual port channels (vPCs), you can configure STP for better performance. See the 『Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 6.x』 , for more information on this feature. |
STP is a Layer 2 link-management protocol that provides path redundancy while preventing loops in the network.
In order for a Layer 2 Ethernet network to function properly, only one active path can exist between any two stations. STP operation is transparent to end stations, which cannot detect whether they are connected to a single LAN segment or a switched LAN of multiple segments.
When you create fault-tolerant internetworks, you must have a loop-free path between all nodes in a network. The STP algorithm calculates the best loop-free path throughout a switched Layer 2 network. Layer 2 LAN ports send and receive STP frames, which are called Bridge Protocol Data Units (BPDUs), at regular intervals. Network devices do not forward these frames but use the frames to construct a loop-free path.
Multiple active paths between end stations cause loops in the network. If a loop exists in the network, end stations might receive duplicate messages and network devices might learn end station MAC addresses on multiple Layer 2 LAN ports.
STP defines a tree with a root bridge and a loop-free path from the root to all network devices in the Layer 2 network. STP forces redundant data paths into a blocked state. If a network segment in the spanning tree fails and a redundant path exists, the STP algorithm recalculates the spanning tree topology and activates the blocked path.
When two Layer 2 LAN ports on a network device are part of a loop, the STP port priority and port path-cost setting determine which port on the device is put in the forwarding state and which port is put in the blocking state. The STP port priority value is the efficiency with which that location allows the port to pass traffic. The STP port path-cost value is derived from the media speed.
All devices in a LAN that participate in a spanning tree gather information about other switches in the network by exchanging BPDUs. This exchange of BPDUs results in the following actions:
The topology on an active switched network is determined by the following:
In a switched network, the root switch is the logical center of the spanning tree topology. STP uses BPDUs to elect the root switch and root port for the switched network.
各ネットワーク装置上の各 VLAN には、一意の 64 ビット ブリッジ ID が設定されています。ブリッジ ID はブリッジ プライオリティ値、拡張システム ID(IEEE 802.1t)、および STP MAC アドレス割り当てで構成されています。
The bridge priority is a 4-bit value when the extended system ID is enabled.
You can only specify a device bridge ID (used by the spanning tree algorithm to determine the identity of the root bridge; the lowest number is preferred) as a multiple of 4096.
(注) |
In this device, the extended system ID is always enabled; you cannot disable the extended system ID. |
The device always uses the 12-bit extended system ID.
Bridge Priority Value |
Extended System ID (Set Equal to the VLAN ID) |
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Bit 16 |
Bit 15 |
Bit 14 |
Bit 13 |
Bit 12 |
Bit 11 |
Bit 10 |
Bit 9 |
Bit 8 |
Bit 7 |
Bit 6 |
Bit 5 |
Bit 4 |
Bit 3 |
Bit 2 |
Bit 1 |
|
32768 |
16384 |
8192 |
4096 |
2048 |
1024 |
512 |
256 |
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
(注) |
MAC address reduction is always enabled on the device. |
Because MAC address reduction is always enabled on the device, you should also enable MAC address reduction on all other Layer 2 connected network devices to avoid undesirable root bridge election and spanning tree topology issues.
When MAC address reduction is enabled, the root bridge priority becomes a multiple of 4096 plus the VLAN ID. You can only specify a device bridge ID (used by the spanning tree algorithm to determine the identity of the root bridge; the lowest number is preferred) as a multiple of 4096. Only the following values are possible:
STP uses the extended system ID plus a MAC address to make the bridge ID unique for each VLAN.
(注) |
If another bridge in the same spanning tree domain does not run the MAC address reduction feature, it could win the root bridge ownership because of the finer granularity in the selection of its bridge ID. |
Network devices transmit BPDUs throughout the STP instance. Each network device sends configuration BPDUs to communicate and compute the spanning tree topology. Each configuration BPDU contains the following minimal information:
When a network device transmits a Rapid PVST+ BPDU frame, all network devices connected to the VLAN on which the frame is transmitted receive the BPDU. When a network device receives a BPDU, it does not forward the frame but instead uses the information in the frame to calculate a BPDU. If the topology changes, the device initiates a BPDU exchange.
A BPDU exchange results in the following:
For each VLAN, the network device with the highest bridge ID (that is, the lowest numerical ID value) is elected as the root bridge. If all network devices are configured with the default priority (32768), the network device with the lowest MAC address in the VLAN becomes the root bridge. The bridge priority value occupies the most significant bits of the bridge ID.
When you change the bridge priority value, you change the probability that the device will be elected as the root bridge. Configuring a lower value increases the probability; a higher value decreases the probability.
The STP root bridge is the logical center of each spanning tree topology in a Layer 2 network. All paths that are not needed to reach the root bridge from anywhere in the Layer 2 network are placed in STP blocking mode.
BPDUs contain information about the transmitting bridge and its ports, including bridge and MAC addresses, bridge priority, port priority, and path cost. STP uses this information to elect the root bridge for the STP instance, to elect the root port that leads to the root bridge, and to determine the designated port for each Layer 2 segment.
By increasing the priority (lowering the numerical value) of the ideal network device so that it becomes the root bridge, you force an STP recalculation to form a new spanning tree topology with the ideal network device as the root.
When the spanning tree topology is calculated based on default parameters, the path between the source and destination end stations in a switched network might not be ideal. For instance, connecting higher-speed links to a port that has a higher number than the current root port can cause a root-port change. The goal is to make the fastest link the root port.
For example, assume that one port on switch B is a fiber-optic link, and another port on switch B (an unshielded twisted-pair [UTP] link) is the root port. Network traffic might be more efficient over the high-speed fiber-optic link. By changing the STP port priority on the fiber-optic port to a higher priority (lower numerical value) than the root port, the fiber-optic port becomes the new root port.
Rapid PVST+ is the default spanning tree mode for the software and is enabled by default on the default VLAN and all newly created VLANs.
A single instance, or topology, of RSTP runs on each configured VLAN, and each Rapid PVST+ instance on a VLAN has a single root device. You can enable and disable STP on a per-VLAN basis when you are running Rapid PVST+.
Rapid PVST+ is the IEEE 802.1w (RSTP) standard implemented per VLAN. A single instance of STP runs on each configured VLAN (if you do not manually disable STP). Each Rapid PVST+ instance on a VLAN has a single root switch. You can enable and disable STP on a per-VLAN basis when you are running Rapid PVST+.
(注) |
Rapid PVST+ is the default STP mode for the device. |
Rapid PVST+ uses point-to-point wiring to provide rapid convergence of the spanning tree. The spanning tree reconfiguration can occur in less than 1 second with Rapid PVST+ (in contrast to 50 seconds with the default settings in the 802.1D STP). The device automatically checks the PVID.
(注) |
Rapid PVST+ supports one STP instance for each VLAN. |
Using Rapid PVST+, STP convergence occurs rapidly. By default, each designated port in the STP sends out a BPDU every 2 seconds. On a designated port in the topology, if hello messages are missed three consecutive times, or if the maximum age expires, the port immediately flushes all protocol information in the table. A port considers that it loses connectivity to its direct neighbor designated port if it misses three BPDUs or if the maximum age expires. This rapid aging of the protocol information allows quick failure detection.
Rapid PVST+ provides for rapid recovery of connectivity following the failure of a device, a device port, or a LAN. It provides rapid convergence for edge ports, new root ports, and ports connected through point-to-point links as follows:
Enter the spanning-tree port type interface configuration command to configure a port as an STP edge port.
(注) |
We recommend that you configure all ports connected to a Layer 2 host as edge ports. |
Rapid PVST+ achieves rapid transition to the forwarding state only on edge ports and point-to-point links. Although the link type is configurable, the system automatically derives the link type information from the duplex setting of the port. Full-duplex ports are assumed to be point-to-point ports, while half-duplex ports are assumed to be shared ports.
Edge ports do not generate topology changes, but all other designated and root ports generate a topology change (TC) BPDU when they either fail to receive three consecutive BPDUs from the directly connected neighbor or the maximum age times out. At this point, the designated or root port sends a BPDU with the TC flag set. The BPDUs continue to set the TC flag as long as the TC While timer runs on that port. The value of the TC While timer is the value set for the hello time plus 1 second. The initial detector of the topology change immediately floods this information throughout the entire topology.
When Rapid PVST+ detects a topology change, the protocol does the following:
The topology change notification floods quickly across the entire topology. The system flushes dynamic entries immediately on a per-port basis when it receives a topology change.
(注) |
The TCA flag is used only when the device is interacting with devices that are running legacy 802.1D STP. |
The proposal and agreement sequence then quickly propagates toward the edge of the network and quickly restores connectivity after a topology change.
Rapid PVST+ and 802.1w use all six bits of the flag byte to add the following:
This figure shows the use of the BPDU flags in Rapid PVST+.
Another important change is that the Rapid PVST+ BPDU is type 2, version 2, which makes it possible for the device to detect connected legacy (802.1D) bridges. The BPDU for 802.1D is type 0, version 0.
In this figure, switch A is connected to switch B through a point-to-point link, and all of the ports are in the blocking state. Assume that the priority of switch A is a smaller numerical value than the priority of switch B. Switch A sends a proposal message (a configuration BPDU with the proposal flag set) to switch B, proposing itself as the designated switch.
After receiving the proposal message, switch B selects as its new root port the port from which the proposal message was received, forces all nonedge ports to the blocking state, and sends an agreement message (a BPDU with the agreement flag set) through its new root port.
After receiving the agreement message from switch B, switch A also immediately transitions its designated port to the forwarding state. No loops in the network can form because switch B blocked all of its nonedge ports and because there is a point-to-point link between switches A and B.
When switch C connects to switch B, a similar set of handshaking messages are exchanged. Switch C selects the port connected to switch B as its root port, and both ends of the link immediately transition to the forwarding state. With each iteration of this handshaking process, one more switch joins the active topology. As the network converges, this proposal-agreement handshaking progresses from the root toward the leaves of the spanning tree as shown in this figure.
The switch learns the link type from the port duplex mode; a full-duplex port is considered to have a point-to-point connection and a half-duplex port is considered to have a shared connection. You can override the default setting that is controlled by the duplex setting by entering the spanning-tree link-type interface configuration command.
This proposal/agreement handshake is initiated only when a nonedge port moves from the blocking to the forwarding state. The handshaking process then proliferates step-by-step throughout the topology.
Variable |
Description |
---|---|
Hello timer |
Determines how often each device broadcasts BPDUs to other network devices. The default is 2 seconds, and the range is from 1 to 10. |
Forward delay timer |
Determines how long each of the listening and learning states last before the port begins forwarding. This timer is generally not used by the protocol, but it is used when interoperating with the 802.1D spanning tree. The default is 15 seconds, and the range is from 4 to 30 seconds. |
Maximum age timer |
Determines the amount of time that protocol information received on a port is stored by the network device. This timer is generally not used by the protocol, but it is used when interoperating with the 802.1D spanning tree. The default is 20 seconds; the range is from 6 to 40 seconds. |
Rapid PVST+ provides rapid convergence of the spanning tree by assigning port roles and learning the active topology. Rapid PVST+ builds upon the 802.1D STP to select the device with the highest switch priority (lowest numerical priority value) as the root bridge. Rapid PVST+ assigns one of these port roles to individual ports:
In a stable topology with consistent port roles throughout the network, Rapid PVST+ ensures that every root port and designated port immediately transition to the forwarding state while all alternate and backup ports are always in the blocking state. Designated ports start in the blocking state. The port state controls the operation of the forwarding and learning processes.
Propagation delays can occur when protocol information passes through a switched LAN. As a result, topology changes can take place at different times and at different places in a switched network. When a Layer 2 LAN port transitions directly from nonparticipation in the spanning tree topology to the forwarding state, it can create temporary data loops. Ports must wait for new topology information to propagate through the switched LAN before starting to forward frames.
Each Layer 2 LAN port on the device that uses Rapid PVST+ or MST exists in one of the following four states:
When you enable Rapid PVST+, every port in the device, VLAN, and network goes through the blocking state and the transitory states of learning at power up. If properly configured, each Layer 2 LAN port stabilizes to the forwarding or blocking state.
When the STP algorithm places a Layer 2 LAN port in the forwarding state, the following process occurs:
ブロッキング ステートのレイヤ 2 LAN ポートは、フレーム転送に参加しません。
ブロッキング ステートのレイヤ 2 LAN ポートは、次の処理を実行します。
A Layer 2 LAN port in the learning state prepares to participate in frame forwarding by learning the MAC addresses for the frames. The Layer 2 LAN port enters the learning state from the blocking state.
A Layer 2 LAN port in the learning state performs as follows:
A Layer 2 LAN port in the forwarding state forwards frames. The Layer 2 LAN port enters the forwarding state from the learning state.
A Layer 2 LAN port in the forwarding state performs as follows:
A Layer 2 LAN port in the disabled state does not participate in frame forwarding or STP. A Layer 2 LAN port in the disabled state is virtually nonoperational.
A disabled Layer 2 LAN port performs as follows:
Operational Status |
Port State |
Is Port Included in the Active Topology? |
---|---|---|
Enabled |
Blocking |
No |
Enabled |
Learning |
Yes |
Enabled |
Forwarding |
Yes |
Disabled |
Disabled |
No |
When the device receives a proposal message on one of its ports and that port is selected as the new root port, Rapid PVST+ forces all other ports to synchronize with the new root information.
The device is synchronized with superior root information received on the root port if all other ports are synchronized. An individual port on the device is synchronized if either of the following applies:
If a designated port is in the forwarding state and is not configured as an edge port, it transitions to the blocking state when the Rapid PVST+ forces it to synchronize with new root information. In general, when the Rapid PVST+ forces a port to synchronize with root information and the port does not satisfy any of the above conditions, its port state is set to blocking.
After ensuring that all of the ports are synchronized, the device sends an agreement message to the designated device that corresponds to its root port. When the devices connected by a point-to-point link are in agreement about their port roles, Rapid PVST+ immediately transitions the port states to the forwarding state.
A superior BPDU is a BPDU with root information (such as a lower switch ID or lower path cost) that is superior to what is currently stored for the port.
If a port receives a superior BPDU, Rapid PVST+ triggers a reconfiguration. If the port is proposed and is selected as the new root port, Rapid PVST+ forces all the designated, nonedge ports to synchronize.
If the received BPDU is a Rapid PVST+ BPDU with the proposal flag set, the device sends an agreement message after all of the other ports are synchronized. The new root port transitions to the forwarding state as soon as the previous port reaches the blocking state.
If the superior information received on the port causes the port to become a backup port or an alternate port, Rapid PVST+ sets the port to the blocking state and sends an agreement message. The designated port continues sending BPDUs with the proposal flag set until the forward-delay timer expires. At that time, the port transitions to the forwarding state.
An inferior BPDU is a BPDU with root information (such as a higher switch ID or higher path cost) that is inferior to what is currently stored for the port.
If a designated port receives an inferior BPDU, it immediately replies with its own information.
The software checks the consistency of the port role and state in the received BPDUs to detect unidirectional link failures that could cause bridging loops using the Unidirectional Link Detection (UDLD) feature. This feature is based on the dispute mechanism.
See the 『Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 6.x』, for information on UDLD.
When a designated port detects a conflict, it keeps its role, but reverts to a discarding state because disrupting connectivity in case of inconsistency is preferable to opening a bridging loop.
(注) |
Rapid PVST+ uses the short (16-bit) path-cost method to calculate the cost by default. With the short path-cost method, you can assign any value in the range of 1 to 65535. However, you can configure the device to use the long (32-bit) path-cost method, which allows you to assign any value in the range of 1 to 200,000,000. You configure the path-cost calculation method globally. |
Bandwidth |
Short Path-Cost Method of Port Cost |
Long Path-Cost Method of Port Cost |
---|---|---|
10 Mbps |
100 |
2,000,000 |
100 Mbps |
19 |
200,000 |
1 Gigabit Ethernet |
4 |
20,000 |
10 Gigabit Ethernet |
2 |
2,000 |
If a loop occurs, STP considers the port cost when selecting a LAN interface to put into the forwarding state.
You can assign the lower cost values to LAN interfaces that you want STP to select first and higher cost values to LAN interfaces that you want STP to select last. If all LAN interfaces have the same cost value, STP puts the LAN interface with the lowest LAN interface number in the forwarding state and blocks other LAN interfaces.
On access ports, you assign the port cost by the port. On trunk ports, you assign the port cost by the VLAN; you can configure the same port cost to all the VLANs on a trunk port.
If a redundant path occurs and multiple ports have the same path cost, Rapid PVST+ considers the port priority when selecting which LAN port to put into the forwarding state. You can assign lower priority values to LAN ports that you want Rapid PVST+ to select first and higher priority values to LAN ports that you want Rapid PVST+ to select last.
If all LAN ports have the same priority value, Rapid PVST+ puts the LAN port with the lowest LAN port number in the forwarding state and blocks other LAN ports. The possible priority range is from 0 through 224 (the default is 128), configurable in increments of 32. The device uses the port priority value when the LAN port is configured as an access port and uses the VLAN port priority values when the LAN port is configured as a trunk port.
The 802.1Q trunks impose some limitations on the STP strategy for a network. In a network of Cisco network devices connected through 802.1Q trunks, the network devices maintain one instance of STP for each VLAN allowed on the trunks. However, non-Cisco 802.1Q network devices maintain only one instance of STP for all VLANs allowed on the trunks, which is the Common Spanning Tree (CST).
When you connect a Cisco network device to a non-Cisco device through an 802.1Q trunk, the Cisco network device combines the STP instance of the 802.1Q VLAN of the trunk with the STP instance of the non-Cisco 802.1Q network device. However, all per-VLAN STP information that is maintained by Cisco network devices is separated by a cloud of non-Cisco 802.1Q network devices. The non-Cisco 802.1Q cloud that separates the Cisco network devices is treated as a single trunk link between the network devices.
For more information on 802.1Q trunks, see the 『Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 6.x』.
Rapid PVST+ can interoperate with devices that are running the legacy 802.1D protocol. The device knows that it is interoperating with equipment running 802.1D when it receives a BPDU version 0. The BPDUs for Rapid PVST+ are version 2. If the BPDU received is an 802.1w BPDU version 2 with the proposal flag set, the device sends an agreement message after all of the other ports are synchronized. If the BPDU is an 802.1D BPDU version 0, the device does not set the proposal flag and starts the forward-delay timer for the port. The new root port requires twice the forward-delay time to transition to the forwarding state.
The device interoperates with legacy 802.1D devices as follows:
(注) |
If you want all devices on the same LAN segment to reinitialize the protocol on each interface, you must reinitialize Rapid PVST+. |
Rapid PVST+ interoperates seamlessly with the IEEE 802.1s Multiple Spanning Tree (MST) standard. No user configuration is needed. To disable this seamless interoperation, you can use PVST Simulation.
The software supports high availability for Rapid PVST+. However, the statistics and timers are not restored when Rapid PVST+ restarts. The timers start again and the statistics begin from 0.
(注) |
See the 『Cisco Nexus 7000 Series NX-OS High Availability and Redundancy Guide』, for complete information on high-availability features. |
(注) |
See the 『Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide』, for complete information on virtual device contexts (VDCs) and assigning resources. |
This figure shows how the system provides support for VDCs. Using VDCs, you have a separate Layer 2 virtualization in each VDC, and each VDC runs a separate STP.
Each VDC will have its own Rapid PVST+. You cannot configure Rapid PVST+ across VDCs with Cisco NX-OS software. However, you can run Rapid PVST+ in one VDC and run MST in each VDC.
For example, VDC1 can run MST, VDC2 can run Rapid PVST+, and VDC3 can run MST.
Ensure that you are in the correct VDC before you begin configuring either Rapid PVST+ parameters.
The following table shows the licensing requirements for this feature:
However, using VDCs requires an Advanced Services license.
Rapid PVST+ has the following prerequisites:
Rapid PVST+ has the following configuration guidelines and limitations:
PVST+ プロトコルに 802.1 w 標準を適用した Rapid PVST+ が、デバイスのデフォルトの STP 設定です。
Rapid PVST+ は VLAN ごとにイネーブルにします。 デバイスは VLAN ごとに個別の STP インスタンスを維持します(STP をディセーブルに設定した VLAN を除きます)。 デフォルトで Rapid PVST+ は、デフォルト VLAN と、作成した各 VLAN でイネーブルになります。
(注) |
Cisco IOS の CLI に慣れている場合、この機能に対応する Cisco NX-OS コマンドは通常使用する Cisco IOS コマンドと異なる場合があるので注意してください。 |
正しい VDC を開始していることを確認してください( 『Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide』を参照)。
Rapid PVST+ をディセーブル化した VLAN がある場合は、指定した VLAN で Rapid PVST+ を再度イネーブルにする必要があります。 デバイスで MST がイネーブルな場合に、Rapid PVST+ を使用するには、そのデバイスで Rapid PVST+ をイネーブルにする必要があります。
Rapid PVST+ はデフォルトの STP モードです。 同じ VDC 上で MST と Rapid PVST+ を同時に実行することはできません。
ただし、特定の VDC で Rapid PVST+ を実行し、別の VDC で MST を実行することはできます。
(注) |
スパニングツリー モードを変更すると、すべてのスパニングツリー インスタンスが前のモードで停止して新規モードで再開されるため、トラフィックが中断されます。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree mode rapid-pvst
3. exit
4. (任意) show running-config spanning-tree all
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |||
---|---|---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
||
ステップ 2 | spanning-tree mode rapid-pvst 例: switch(config)# spanning-tree mode rapid-pvst |
デバイスで Rapid PVST+ をイネーブルにします。 Rapid PVST+ はデフォルトのスパニングツリー モードです。
|
||
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
||
ステップ 4 | show running-config spanning-tree all 例: switch# show running-config spanning-tree all |
(任意) 現在稼働している STP コンフィギュレーションの情報を表示します。 |
||
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次に、デバイス上で Rapid PVST+ をイネーブルにする例を示します。
switch# config t switch(config)# spanning-tree mode rapid-pvst switch(config)# exit switch#
(注) |
Rapid PVST+ はデフォルトでイネーブルに設定されているので、show running コマンドを入力して設定の結果を表示しても、Rapid PVST+ をイネーブルにするために入力したコマンドは表示されません。 |
Rapid PVST+ は、VLAN ごとにイネーブルまたはディセーブルにできます。
(注) |
Rapid PVST+ は、デフォルト VLAN と、作成したすべての VLAN でデフォルトでイネーブルになります。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. 次のいずれかのコマンドを入力します。
3. exit
4. (任意) show spanning-tree
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |||||||
---|---|---|---|---|---|---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
||||||
ステップ 2 | 次のいずれかのコマンドを入力します。
例: switch(config)# spanning-tree vlan 5 |
|||||||
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
||||||
ステップ 4 | show spanning-tree 例: switch# show spanning-tree |
(任意) STP コンフィギュレーションを表示します。 |
||||||
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次に、VLAN 5 で STP をイネーブルにする例を示します。
switch# config t switch(config)# spanning-tree vlan 5 switch(config)# exit switch#
(注) |
VLAN のすべてのスイッチおよびブリッジでスパニングツリーがディセーブルになっていない場合は、VLAN でスパニングツリーをディセーブルにしないでください。 VLAN の一部のスイッチおよびブリッジでスパニングツリーをディセーブルにして、VLAN のその他のスイッチおよびブリッジでイネーブルにしておくことはできません。 スパニングツリーをイネーブルにしたスイッチとブリッジに、ネットワークの物理トポロジに関する不完全な情報が含まれることになるので、この処理によって予想外の結果となることがあります。 |
注意 |
物理的なループがないトポロジであっても、スパニングツリーをディセーブルにしないことを推奨します。 スパニングツリーは、設定の誤りおよび配線の誤りに対する保護手段として動作します。 VLAN 内に物理的なループが存在しないことを保証できる場合以外は、VLAN でスパニングツリーをディセーブルにしないでください。 |
(注) |
STP はデフォルトでイネーブルのため、設定結果を参照するために show running コマンドを入力しても、STP をイネーブルするために入力したコマンドは表示されません。 |
デバイスは、Rapid PVST+ が有効なアクティブ VLAN ごとに、STP インスタンスを個別に維持します。 VLAN ごとに、最小のブリッジ ID を持つネットワーク デバイスが、その VLAN のルート ブリッジになります。
特定の VLAN インスタンスがルート ブリッジになるように設定するには、そのブリッジのプライオリティをデフォルト値(32768)よりかなり小さい値に変更します。
spanning-tree vlan vlan_ID primary root コマンドを入力すると、各 VLAN で現在ルートになっているブリッジのブリッジ プライオリティがデバイスによって確認されます。 24576 という値でデバイスが指定 VLAN のルートになる場合、デバイスは指定 VLAN のブリッジ プライオリティをこの値に設定します。 指定 VLAN のルート ブリッジのブリッジ プライオリティが 24576 より小さい場合、デバイスは最小ブリッジ プライオリティより 4096 小さい値に指定 VLAN のブリッジ プライオリティを設定します。
(注) |
ルート ブリッジになるために必要な値が 4096 より小さい場合は、spanning-tree vlan vlan_ID primary root コマンドはエラーになります。 ソフトウェアでブリッジ プライオリティをそれ以上低くできない場合、デバイスは次のメッセージを返します。 Error: Failed to set root bridge for VLAN 1 It may be possible to make the bridge root by setting the priority for some (or all) of these instances to zero. |
注意 |
STP のインスタンスごとのルート ブリッジは、バックボーンまたはディストリビューション デバイスである必要があります。 アクセス デバイスは、STP のプライマリ ルートとして設定しないでください。 |
レイヤ 2 ネットワークの直径(つまり、レイヤ 2 ネットワーク上の任意の 2 つのエンド ステーション間における最大ブリッジ ホップ数)を指定するには、diameter キーワードを入力します。 ネットワーク直径を指定すると、その直径のネットワークに最適な hello タイム、転送遅延時間、最大経過時間が自動的に選択されます。これにより、STP 収束の時間が大幅に削減されます。 キーワード hello-time を入力すると、自動的に計算された hello タイムを上書きできます。
(注) |
ルート ブリッジとして設定されているデバイスでは、hello タイム、転送遅延時間、最大エージング タイムは手動で設定(spanning-tree mst hello-time、spanning-tree mst forward-time、spanning-tree mst max-age の各グローバル コンフィギュレーション コマンドを使用)しないでください。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range root primary [diameter dia [hello-time hello-time]]
3. exit
4. (任意) show spanning-tree
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range root primary [diameter dia [hello-time hello-time]] 例: switch(config)# spanning-tree vlan 5 root primary diameter 4 |
デバイスをプライマリ ルート ブリッジとして設定します。 The vlan-range の値は、2 ~ 4094 の範囲です(予約済みの VLAN の値を除く)。dia のデフォルトは 7 です。 hello-time の範囲は 1 ~ 10 秒で、デフォルト値は 2 秒です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree 例: switch# show spanning-tree |
(任意) STP コンフィギュレーションを表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次に、デバイスを VLAN 5 のルート ブリッジとして設定し、ネットワーク直径を 4 に設定する例を示します。
switch# config t switch(config)# spanning-tree vlan 5 root primary diameter 4 switch#
デバイスをセカンダリ ルートとして設定すると、STP ブリッジ プライオリティはデフォルト値(32768)から変更されます。その結果、プライマリ ルート ブリッジに障害が発生した場合に(ネットワーク上の他のネットワーク装置がデフォルトのブリッジ プライオリティ 32768 を使用していると仮定して)、このデバイスが指定された VLAN のルート ブリッジになる可能性が高くなります。 STP により、ブリッジ プライオリティが 28672 に設定されます。
レイヤ 2 ネットワークの直径(つまり、レイヤ 2 ネットワーク上の任意の 2 つのエンド ステーション間における最大ブリッジ ホップ数)を指定するには、diameter キーワードを入力します。 ネットワーク直径を指定すると、その直径のネットワークに最適な hello タイム、転送遅延時間、最大経過時間が自動的に選択されます。これにより、STP 収束の時間が大幅に削減されます。 キーワード hello-time を入力すると、自動的に計算された hello タイムを上書きできます。
この方法で、複数のデバイスに複数のバックアップ ルート ブリッジを設定できます。 プライマリ ルート ブリッジの設定時に使用した値と同じネットワーク直径と hello タイムの値を入力します。
(注) |
ルート ブリッジとして設定されているデバイスでは、hello タイム、転送遅延時間、最大エージング タイムは手動で設定(spanning-tree mst hello-time、spanning-tree mst forward-time、spanning-tree mst max-age の各グローバル コンフィギュレーション コマンドを使用)しないでください。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range root secondary [diameter dia [hello-time hello-time]]
3. exit
4. (任意) show spanning-tree vlan vlan_id
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range root secondary [diameter dia [hello-time hello-time]] 例: switch(config)# spanning-tree vlan 5 root secondary diameter 4 |
デバイスをセカンダリ ルート ブリッジとして設定します。 vlan-range の値は、2 ~ 4094 の範囲です(予約済みの VLAN の値を除く)。 dia のデフォルトは 7 です。 hello-time の範囲は 1 ~ 10 秒で、デフォルト値は 2 秒です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree vlan vlan_id 例: switch# show spanning-tree vlan 5 |
(任意) 指定された VLAN の STP コンフィギュレーションを表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次に、デバイスを VLAN 5 のセカンダリ ルート ブリッジとして設定し、ネットワーク直径を 4 に設定する例を示します。
switch# config t switch(config)# spanning-tree vlan 5 root secondary diameter 4 switch(config)# exit switch#
VLAN の Rapid PVST+ のブリッジ プライオリティを設定できます。 この方法で、ルート ブリッジを設定することもできます。
(注) |
この設定を使用するときは注意が必要です。 ブリッジ プライオリティを変更するには、プライマリ ルートおよびセカンダリ ルートを設定することを推奨します。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range priority value
3. exit
4. (任意) show spanning-tree vlan vlan_id
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range priority value 例: switch(config)# spanning-tree vlan 5 priority 8192 |
VLAN のブリッジ プライオリティを設定します。 有効な値は 0、4096、8192、12288、16384、20480、24576、28672、32768、36864、40960、45056、49152、53248、57344、61440 です。 その他すべての値は拒否されます。 デフォルト値は 32768 です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree vlan vlan_id 例: switch# show spanning-tree vlan 5 |
(任意) 指定された VLAN の STP コンフィギュレーションを表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、ギガビット イーサネット ポート 1/4 で VLAN 5 のプライオリティを 8192 に設定する方法を示しています。
switch# config t switch(config)# spanning-tree vlan 5 priority 8192 switch(config)# exit switch#
Rapid PVST+ に最初に選択させる LAN ポートには小さいプライオリティ値を割り当て、Rapid PVST+ に最後に選択させる LAN ポートには大きいプライオリティ値を割り当てます。 すべての LAN ポートに同じプライオリティ値が割り当てられている場合、Rapid PVST+ は、LAN ポート番号が最小の LAN ポートをフォワーディング ステートにし、他の LAN ポートをブロックします。
デバイスは LAN ポートがアクセス ポートとして設定されている場合にはポート プライオリティ値を使用し、LAN ポートがトランク ポートとして設定されている場合には VLAN ポート プライオリティ値を使用します。
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. interface type slot/port
3. spanning-tree [vlan vlan-list] port-priority priority
4. exit
5. (任意) show spanning-tree interface {ethernet slot/port | port channel channel-number}
6. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | interface type slot/port 例: switch(config)# interface ethernet 1/4 switch(config-if)# |
設定するインターフェイスを指定します。インターフェイス コンフィギュレーション モードを開始します。 |
ステップ 3 | spanning-tree [vlan vlan-list] port-priority priority 例: switch(config-if)# spanning-tree port-priority 160 |
LAN インターフェイスのポート プライオリティを設定します。 priority の値は 0 ~ 224 の範囲です。 値が小さいほど、プライオリティは高くなります。 プライオリティ値は、0、32、64、96、128、160、192、224 です。 その他すべての値は拒否されます。 デフォルト値は 128 です。 |
ステップ 4 | exit 例: switch(config-if)# exit switch(config)# |
インターフェイス モードを終了します。 |
ステップ 5 | show spanning-tree interface {ethernet slot/port | port channel channel-number} 例: switch# show spanning-tree interface ethernet 2/10 |
(任意) 指定されたインターフェイスの STP コンフィギュレーションを表示します。 |
ステップ 6 | copy running-config startup-config 例: switch(config)# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、イーサネット アクセス ポート 1/4 のポート プライオリティを 160 に設定する方法を示しています。
switch# config t switch (config)# interface ethernet 1/4 switch(config-if)# spanning-tree port-priority 160 switch(config-if)# exit switch(config)#
アクセス ポートでは、ポートごとにポート コストを割り当てることができます。 トランク ポートでは、VLAN ごとにポート コストを割り当てることができます。トランク上のすべての VLAN に同じポート コストを設定できます。
(注) |
Rapid PVST+ モードでは、ショートまたはロング パスコスト方式を使用できます。パスコスト方式の設定は、インターフェイス サブモードまたはコンフィギュレーション サブモードで行います。 デフォルト パスコスト方式はショートです。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree pathcost method {long | short}
3. interface type slot/port
4. spanning-tree [vlan vlan-id] cost [value | auto]
5. exit
6. (任意) show spanning-tree pathcost method
7. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |||
---|---|---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
||
ステップ 2 | spanning-tree pathcost method {long | short} 例: switch(config)# spanning-tree pathcost method long |
Rapid PVST+ パスコスト計算に使用される方式を選択します。 デフォルト方式は short 型です。 |
||
ステップ 3 | interface type slot/port 例: switch(config)# interface ethernet 1/4 switch(config-if) |
設定するインターフェイスを指定します。インターフェイス コンフィギュレーション モードを開始します。 |
||
ステップ 4 | spanning-tree [vlan vlan-id] cost [value | auto] 例: switch(config-if)# spanning-tree cost 1000 |
LAN インターフェイスのポート コストを設定します。 ポート コスト値には、パスコスト計算方式に応じて、次の値を指定できます。
デフォルトの auto では、パスコスト計算方式およびメディア速度に基づいてポート コストが設定されます。 |
||
ステップ 5 | exit 例: switch(config-if)# exit switch(config)# |
インターフェイス モードを終了します。 |
||
ステップ 6 | show spanning-tree pathcost method 例: switch# show spanning-tree pathcost method |
(任意) STP パスコスト方式を表示します。 |
||
ステップ 7 | copy running-config startup-config 例: switch(config)# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、イーサネット アクセス ポート 1/4 のポート コストを 1000 に設定する方法を示しています。
switch# config t switch (config)# spanning-tree pathcost method long switch (config)# interface ethernet 1/4 switch(config-if)# spanning-tree cost 1000 switch(config-if)# exit switch(config)#
VLAN の Rapid-PVST+ hello タイムを設定できます。
(注) |
この設定を使用する場合は、注意してください。スパニングツリーが中断されることがあります。 ほとんどの場合、プライマリ ルートとセカンダリ ルートを設定して、hello タイムを変更することを推奨します。 |
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range hello-time value
3. exit
4. (任意) show spanning-tree vlan vlan_id
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range hello-time value 例: switch(config)# spanning-tree vlan 5 hello-time 7 |
VLAN の hello タイムを設定します。 hello タイムの値の範囲は 1 ~ 10 秒で、デフォルトは 2 秒です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree vlan vlan_id 例: switch# show spanning-tree vlan 5 |
(任意) STP コンフィギュレーションを VLAN 単位で表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、VLAN 5 の hello タイムを 7 秒に設定する方法を示しています。
switch# config t switch(config)# spanning-tree vlan 5 hello-time 7 switch(config)# exit switch#
Rapid PVST+ の使用時は、VLAN ごとに転送遅延時間を設定できます。
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range forward-time value
3. exit
4. (任意) show spanning-tree vlan vlan_id
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range forward-time value 例: switch(config)# spanning-tree vlan 5 forward-time 21 |
VLAN の転送遅延時間を設定します。 転送遅延時間の値の範囲は 4 ~ 30 秒で、デフォルトは 15 秒です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree vlan vlan_id 例: switch# show spanning-tree vlan 5 |
(任意) STP コンフィギュレーションを VLAN 単位で表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、VLAN 5 の転送遅延時間を 21 秒に設定する方法を示しています。
switch# config t switch(config)# spanning-tree vlan 5 forward-time 21 switch(config)# exit switch#
Rapid PVST+ の使用時は、VLAN ごとに最大経過時間を設定できます。
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. spanning-tree vlan vlan-range max-age value
3. exit
4. (任意) show spanning-tree vlan vlan_id
5. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | spanning-tree vlan vlan-range max-age value 例: switch(config)# spanning-tree vlan 5 max-age 36 |
VLAN の最大エージング タイムを設定します。 最大経過時間の値の範囲は 6 ~ 40 秒で、デフォルトは 20 秒です。 |
ステップ 3 | exit 例: switch(config)# exit switch# |
コンフィギュレーション モードを終了します。 |
ステップ 4 | show spanning-tree vlan vlan_id 例: switch# show spanning-tree vlan 5 |
(任意) STP コンフィギュレーションを VLAN 単位で表示します。 |
ステップ 5 | copy running-config startup-config 例: switch# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、VLAN 5 の最大エージング タイムを 36 秒に設定する方法を示しています。
switch# config t switch(config)# spanning-tree vlan 5 max-age 36 switch(config)# exit switch#
Rapid の接続性(802.1w 規格)は、ポイントツーポイントのリンク上でのみ確立されます。 リンク タイプは、デフォルトでは、インターフェイスのデュプレックス モードから制御されます。 全二重ポートはポイントツーポイント接続であると見なされ、半二重ポートは共有接続であると見なされます。
リモート デバイスの単一ポートに、ポイントツーポイントで物理的に接続されている半二重リンクがある場合、リンク タイプのデフォルト設定を上書きして高速移行をイネーブルにできます。
リンクを共有に設定すると、STP は 802.1D にフォール バックします。
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. config t
2. interface type slot/port
3. spanning-tree link-type {auto | point-to-point | shared}
4. exit
5. (任意) show spanning-tree
6. (任意) copy running-config startup-config
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | config t 例: switch# config t switch(config)# |
コンフィギュレーション モードを開始します。 |
ステップ 2 | interface type slot/port 例: switch(config)# interface ethernet 1/4 switch(config-if)# |
設定するインターフェイスを指定します。インターフェイス コンフィギュレーション モードを開始します。 |
ステップ 3 | spanning-tree link-type {auto | point-to-point | shared} 例: switch(config-if)# spanning-tree link-type point-to-point |
リンク タイプを、ポイントツーポイント インクまたは共有リンクに設定します。 デフォルト値はデバイス接続から読み取られ、半二重リンクは共有、全二重リンクはポイントツーポイントです。 リンク タイプが共有の場合、STP は 802.1D にフォール バックします。 デフォルトは auto で、インターフェイスのデュプレックス設定に基づいてリンク タイプが設定されます。 |
ステップ 4 | exit 例: switch(config-if)# exit switch(config)# |
インターフェイス モードを終了します。 |
ステップ 5 | show spanning-tree 例: switch# show spanning-tree |
(任意) STP コンフィギュレーションを表示します。 |
ステップ 6 | copy running-config startup-config 例: switch(config)# copy running-config startup-config |
(任意) 実行コンフィギュレーションを、スタートアップ コンフィギュレーションにコピーします。 |
次の例は、リンク タイプをポイントツーポイント リンクとして設定する方法を示しています。
switch# config t switch (config)# interface ethernet 1/4 switch(config-if)# spanning-tree link-type point-to-point switch(config-if)# exit switch(config)#
Rapid PVST+ が稼働するブリッジにレガシー ブリッジが接続されている場合は、1 つのポートから 802.1D BPDU を送信できます。 ただし、STP プロトコルを移行しても、レガシー デバイスが代表スイッチでないかぎり、レガシー デバイスがリンクから削除されたかどうかを判別することはできません。 デバイス全体で、または指定されたインターフェイスで、プロトコル ネゴシエーションを再初期化する(ネイバー デバイスと強制的に再ネゴシエーションを行う)ことができます。
正しい VDC を開始していること(または switchto vdc コマンドを入力済みであること)を確認してください。
1. clear spanning-tree detected-protocol [interface {ethernet slot/port | port channel channel-number}]
コマンドまたはアクション | 目的 | |
---|---|---|
ステップ 1 | clear spanning-tree detected-protocol [interface {ethernet slot/port | port channel channel-number}] 例: switch# clear spanning-tree detected-protocol |
デバイス上のすべてのインターフェイス、または指定されたインターフェイスで、Rapid PVST+ を再初期化します。 |
次に、スロット 2 のイーサネット インターフェイス ポート 8 で、Rapid PVST+ を再初期化する例を示します。
switch# clear spanning-tree detected-protocol interface ethernet 2/8 switch#
コマンド |
目的 |
---|---|
show running-config spanning-tree [ all] |
STP 情報を表示します。 |
show spanning-tree summary |
STP の概要を表示します。 |
show spanning-tree detail |
STP の詳細を表示します。 |
show spanning-tree{vlanvlan-id | interface {[ethernetslot/port] | [port-channelchannel-number]}} [detail] |
VLAN またはインターフェイス単位の STP 情報を表示します。 |
show spanning-tree vlan vlan-id bridge |
STP ブリッジの情報を表示します。 |
これらのコマンドの出力フィールドについては、 『Cisco Nexus 7000 Series NX-OS Layer 2 Switching Command Reference』を参照してください。
コマンド |
目的 |
---|---|
clear spanning-tree counters [interface type slot/port | vlanvlan-id] |
STP のカウンタをクリアします。 |
show spanning-tree {vlan vlan-id | interface {[ethernet slot/port] | [port-channel channel-number]}} detail | 送受信された BPDU などの STP 情報を、インターフェイスまたは VLAN 別に表示します。 |
次に、Rapid PVST+ の設定例を示します。
switch# configure terminal switch(config)# spanning-tree port type edge bpduguard default switch(config)# spanning-tree port type edge bpdufilter default switch(cnfig)# spanning-tree port type network default switch(config)# spanning-tree vlan 1-10 priority 24576 switch(config)# spanning-tree vlan 1-10 hello-time 1 switch(config)# spanning-tree vlan 1-10 forward-time 9 switch(config)# spanning-tree vlan 1-10 max-age 13 switch(config)# interface Ethernet 3/1 switchport switch(config-if)# spanning-tree port type edge switch(config-if)# exit switch(config)# spanning-tree port type edge switch(config-if)# switchport switch(config-if)# switchport mode trunk switch(config-if)# spanning-tree guard root switch(config-if)# exit switch(config)#
関連項目 |
参照先 |
---|---|
コマンド リファレンス |
『Cisco Nexus 7000 Series NX-OS Layer 2 Switching Command Reference』 |
レイヤ 2 インターフェイス |
『Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 6.x』 |
NX-OS の基礎 |
『Cisco Nexus 7000 Series NX-OS Fundamentals Configuration Guide, Release 6.x』 |
ハイ アベイラビリティ |
『Cisco Nexus 7000 Series NX-OS High Availability and Redundancy Guide』 |
システム管理 |
『Cisco Nexus 7000 Series NX-OS System Management Configuration Guide, Release 6.x』 |
仮想デバイス コンテキスト(VDC) |
『Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide』 |
ライセンス |
|
リリース ノート |
『Cisco Nexus 7000 Series NX-OS Release Notes, Release 6.x』 |
標準 |
タイトル |
---|---|
IEEE 802.1Q-2006(旧称 IEEE 802.1s)、IEEE 802.1D-2004(旧称 IEEE 802.1w)、IEEE 802.1D、IEEE 802.1t |
— |
MIB |
MIB のリンク |
---|---|
MIB を検索およびダウンロードするには、次の URL にアクセスしてください。http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml |
機能名 |
リリース |
機能情報 |
---|---|---|
変更なし |
4.2(1) |
-- |
変更なし |
4.1(2) |
-- |