为分段路由配置灵活的算法
开始为 IS-IS 配置灵活算法之前,请确保您:
-
配置设备接口以启用 IP 传输。
-
配置 IS-IS 协议以启用动态路由协议以交换路由信息。
-
配置 BGP 协议。
-
配置分段路由。
要为 IS-IS 配置灵活的算法:
- 对您在网络中识别的路由器定义灵活的算法。为灵活算法定义 (FAD) 分配一个 ID,范围为 128 到 255。
[edit routing-options] user@host# set flex-algorithm id
注意:建议仅在少数路由器上配置灵活的算法定义,以避免冲突。
指定定义的参数。IS-IS 根据 FAD 的这些指定参数计算路径。
- 将 BGP 颜色社区映射到定义的 FAD。默认情况下,每个灵活算法都与等于 flex 算法的值相关联。
可以通过 VPN 来解析配置的 BGP 颜色社区上的路径。
[edit routing-options flex-algorithm id]user@host# set color desired color community value注意:将 BGP 颜色社区更改为灵活的算法可能会导致流量中断。如果修改灵活算法的 BGP 颜色社区,则与该灵活算法相关的所有路由都将从 RIB 中移除,并使用新颜色再次添加。
- 指定 IS-IS 协议计算路径所依据的计算类型。
[edit routing-options flex-algorithm id definition] user@host# set (spf | strict-spf)
- 指定 IS-IS 计算路径所依据的指标类型。
[edit routing-options flex-algorithm id definition] user@host# set metric-type (delay-metric | igp-metric | te-metric)
- 根据 您的要求为 FAD 的播发分配优先级。指定范围为 0 到 255 的优先级。
[edit routing-options flex-algorithm id definition] user@host# set priority priority
注意:修改灵活的算法定义可能会导致流量中断,直到所有节点都汇聚到新路径上。
- 如果已启用 RSVP 流量工程,则可以为多个协议配置管理员组来为单个链路着色。
[edit protocols mpls]user@host# set admin-groups - 根据 您的要求定义管理员组。
[edit routing-options flex-algorithm definition admin-group]user@host# set include any admin-group user@host# set include-all admin-group user@host# set exclude admin-group注意:为了使具有链接约束的 FAD 正常工作,所有相关链接都应在 IS-IS 中通告管理颜色。您必须在接口上启用 RSVP,或者如果尚未为流量工程配置 RSVP,请确保在层次结构级别进行
[edit protocols isis]配置set traffic-engineering advertise always。
- 将 BGP 颜色社区映射到定义的 FAD。默认情况下,每个灵活算法都与等于 flex 算法的值相关联。
- 确定参与的路由器并配置这些路由器上的参与。同一设备可以通告 FAD,也可参与灵活的算法。
[edit protocols isis source-packet-routing]user@host# set flex-algorithm id - 通过策略配置播发前缀分段。
[edit policy-options policy-statement name term name]user@host# set from route-filter route exact user@host# set then prefix-segment algorithm id index value user@host# set then prefix-segment algorithm id node-segment - 在 协议 IS-IS 下应用策略。
[edit protocols isis]user@host# set export name - 要验证灵活算法配置是否工作正常,请使用命令
show isis spring flex-algorithm。