选项:在 MX 系列路由器上配置生成树协议和 VPLS
如果客户站点的多个路由器连接到同一个 PE,则应在该 PE 上启用生成树协议。要同时配置 RSTP、MSTP 和 VPLS,请在 [edit routing-instance <instance name> instance-type layer2-control] 层级包含 rstp 或 mstp 语句:
[edit routing-instance instance name]
instance-type layer2-control;
protocols {
rstp {
interface interface name;
force-version stp; # To run STP instead of RSTP
}
}
每 VLAN 生成树 (PVST) 协议为每个 VLAN 维护一个单独的生成树实例。要为特定 VLAN ID 启用 PVST,应有一个具有该 VLAN ID 的 VPLS 实例,并且分配给该实例的所有逻辑接口应具有相同的匹配 VLAN ID。要使用 VPLS 配置 PVST,请在 [edit routing-instance <instance name> instance-type layer2-control] 层级包含语vstp句:
[edit routing-instance instance name]
instance-type layer2-control;
protocols {
vstp {
interface interface name;
vlan vlan-id;
}
}
如果只想在设备上运行 STP,可以通过在 [edit protocols rstp] 或 [edit protocols vstp] 层级包含force-version stp语句来配置 STP:
[edit routing-instance instance name]
protocols {
rstp {
force-version stp;
}
}
有关生成树协议(VSTP、MSTP、RSTP 或 STP)的更多信息,请参阅 MX 系列解决方案指南 和 适用于路由设备的 Junos OS 路由协议库。