基于 IP 和 MPLS 信息配置 VPLS 负载平衡
在 Junos OS 9.4 及更高版本中 ,您可以为 VPLS 流量配置负载平衡,使哈希密钥仅在 M120 和 M320 路由器上包含 IP 信息和 MPLS 标签。在早期的 Junos OS 版本中,只能根据第 2 层 信息配置负载平衡。在 Junos OS 9.5 及更高版本中,您只能根据 MX 系列路由器上的第 3 层 IP 和第 4 层信息配置 VPLS 流量的负载平衡。有关更多信息,请参阅 在 MX 系列 5G 通用路由平台上配置 VPLS 负载平衡。
对于 IPv4 流量,哈希密钥中仅包含 IP 源地址和目标地址。对于 MPLS 和 IPv4 流量,包含一个或两个 MPLS 标签以及 IPv4 源地址和目标地址。对于 MPLS 以太网伪线,哈希密钥中仅包含一个或两个 MPLS 标签。
基于 MPLS 标签和 IP 信息的 VPLS 负载平衡仅在 M120 和 M320 路由器上受支持。在 Junos OS 9.5 及更高版本中,只能在 MX 系列路由器上基于 IP 和第 4 层信息配置 VPLS 负载平衡。
要根据 IP 和 MPLS 信息优化跨多条路径的 VPLS 流,请在层次结构级别包含以下 family multiservice
语句 [edit forwarding-options hash-key]
:
[edit forwarding-options hash-key] family multiservice { label-1; label-2; payload { ip { layer-3-only; } } }
要在哈希键中使用第一个 MPLS 标签,请包含以下 label-1
语句:
[edit forwarding-options hash-key family multiservice] label-1;
要使用第二个 MPLS 标签,请同时 label-1
包含和 label-2
语句:
[edit forwarding-options hash-key family multiservice] label-1; label-2;
要在哈希密钥中使用数据包的 IPv4 有效负载,请包含 payload
and ip
语句:
[edit forwarding-options hash-key family multiservice] payload { ip; }
仅支持 IPv4。
要仅包含来自 IPv4 有效负载的第 3 层 信息,请指定 layer-3-only
语句的选项 payload ip
:
[edit forwarding-options hash-key family multiservice] payload { ip { layer-3-only; } }
要在哈希密钥中使用第一个和第二个 MPLS 标签以及数据包的 IP 有效负载,请包含 label-1
、 label-2
和 payload ip
语句:
[edit forwarding-options hash-key family multiservice] label-1; label-2; payload { ip; }