Configuring VPLS Load Balancing on MX Series 5G Universal Routing Platforms
In Junos OS Release 9.5 and later, on MX Series routers, you can configure the load balancing hash key for Layer 2 traffic to use fields in the Layer 3 and Layer 4 headers inside the frame payload. You can also configure VPLS load balancing based on IP and MPLS information on M120 and M320 routers only. For more information, see Configuring VPLS Load Balancing Based on IP and MPLS Information.
You can configure load balancing on MX Series routers based on Layer 3 or Layer 4 information or both.
To configure VPLS load balancing on the MX Series router to include either Layer 3 IP information or Layer 4 headers or both:
- Include the
payloadstatement at the[edit forwarding-options hash-key family multiservice]hierarchy level. - Include the
ipstatement at the[edit forwarding-options hash-key family multiservice payload]hierarchy level.
To configure VPLS load balancing to include the Layer 3 information:
Include the
layer-3statement at the[edit forwarding-options hash-key family multiservice payload ip]hierarchy level.Include the
source-ip-onlystatement at the[edit forwarding-options hash-key family multiservice payload ip layer-3]hierarchy level to include information about the IP source address only in the hash key.Include
destination-ip-onlystatement at the[edit forwarding-options hash-key family multiservice payload ip layer-3]hierarchy level to include information about the IP destination address only in the hash key.Note:You can configure either the
source-ip-onlyor thedestination-ip-onlystatements at a time, not both. They are mutually exclusive.
To configure VPLS load balancing to include Layer 4 information:
Include the
layer-4statement at the[edit forwarding-options hash-key family multiservice payload ip]hierarchy level.
The following example shows load balancing configured to use the source Layer 3 IP address option and Layer 4 header fields as well as the source and destination MAC addresses:
[edit forwarding-options hash-key]
family multiservice {
source-mac;
destination-mac;
payload {
ip {
layer-3 {
source-ip-only;
}
layer-4;
}
}
}