vstp
MX 系列
vstp { bpdu-block-on-edge; force-version stp; interface interface-name { bpdu-timeout-action { alarm; block; } cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; } priority-hold-time seconds; vlan vlan-id { bridge-priority priority; forward-delay seconds; hello-time seconds; max-age seconds; interface interface-name { access-trunk bpdu-timeout-action { alarm; block; } cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; } } traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } }
EX 系列, QFX 系列, QFabric
vstp { bpdu-block-on-edge; disable; force-version stp; vlan (all | vlan-id | vlan-name) { bridge-priority priority; forward-delay seconds; hello-time seconds; interface (all | interface-name) { arp-on-stp; bpdu-timeout-action { block; log; } cost cost; disable; edge; mode mode; no-root-port; priority priority; } max-age seconds; traceoptions { file filename <files number > <size size> <no-stamp | no-world-readable | world-readable>; flag flag; } } }
ELS 版本:EX 系列、QFX 系列、NFX 系列
vstp { bpdu-block-on-edge; disable; force-version stp; interface (interface-name disable | interface-range-name | all ){ bpdu-timeout-action { alarm; block; } cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; } priority-hold-time seconds; vlan (vlan-id | all){ bridge-priority priority; forward-delay seconds; hello-time seconds; max-age seconds; interface (interface-name disable | interface-range-name | all ){ bpdu-timeout-action { alarm; block; } cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; } } traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } vlan-group group group-name { vlansvlan-name (vlan-id |vlan-range | open-set-of-values) { interface all; interface interface-name { disable; } } }
层次结构级别
[edit protocols]
[edit logical-systems logical-system-name protocols], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols],
[edit protocols],
[edit routing-instances routing-instance-name protocols]
描述
配置 VLAN 生成树协议 (VSTP)。VSTP 用于防止每 VLAN 在第 2 层网络中出现环路。
每个交换机最多可以有 253 个 VSTP VLAN。
如果交换机上的 VLAN 数量超过 VSTP VLAN 限制,则必须使用 语 vlan
句指定哪些 VLAN 或 VLAN 组使用 VSTP。当交换机具有超过允许的最大 VSTP VLAN 时,您也不能使用 vlan 所有 选项来配置 VSTP。为了确保所有 VLAN 都运行生成树协议,请为具有大量 VLAN 的网络运行 RSTP。
使用 命令配置 VSTP set protocol vstp vlan all
时,未设置 VLAN ID 1;排除该 VLAN ID 1,以便配置与 Cisco PVST+兼容。如果您希望 VLAN ID 1 包含在交换机上的 VSTP 配置中,则必须使用 命令单独 set protocol vstp vlan 1
设置。
Junos OS 13.2X50 版不支持选项 vlan all
。
配置 VSTP 时的 RSTP。RSTP 开销极少,此配置可确保交换机上所有 VLAN 上运行某些生成树协议,即使交换机允许的最大 VSTP VLAN 数超过最大数量也是如此。
其余语句将单独解释。请参阅 CLI Explorer。
默认
默认情况下,VSTP 未启用。
所需权限级别
路由 — 要在配置中查看此语句。
路由控制 — 要将此语句添加至配置。
发布信息
Junos OS 9.0 版中引入的语句。
bpdu-block-on-edge
语句在 Junos OS 9.4 版中添加。
bpdu-timeout-action
语句在 Junos OS 9.4 版中添加。
Junos OS 版本 9.6 中添加的逻辑系统支持。
EX 系列交换机 Junos OS 版本 15.1 中更新的语句,以支持在所有接口上全局配置生成树参数。
不能禁用所有接口上的全局生成树参数。