load-balance rtag7
Use this command to configure rtag7 load balancing.
Use the no option to disable the rtag7 load balancing.
Command Syntax
This form enables or disables rtag7 load balancing globally:
load-balance rtag7
no load-balance rtag7
By default, load balancing is enabled for ECMP and LAG
This form sets rtag7 hashing for ECMP and L3 LAG based on IPv4 fields:
load-balance rtag7 (ipv4 {src-ipv4|dest-ipv4|srcl4-port|destl4-port|protocol-id})
no load-balance rtag7 (ipv4 {src-ipv4|dest-ipv4|srcl4-port|destl4-port|protocol- id})
By default, IPv4 ECMP is configured with the fields src-ipv4, dest-ipv4, srcl4-port, and dest-l4port.
By default, L3 LAG is configured with the fields src-ipv4 and dest-ipv4.
This form sets rtag7 hashing for ECMP based on IPv6 fields:
load-balance rtag7 (ipv6 {src-ipv6|dest-ipv6|srcl4-port|destl4-port|next-hdr})
no load-balance rtag7 (ipv6 {src-ipv6|dest-ipv6|srcl4-port|destl4-port|next-hdr})
By default, IPv6 ECMP is configured with the fields src-ipv6, dest-ipv6, srcl4-port, and dest-l4port.
This form sets rtag7 hashing for L2 LAG based on L2 fields:
load-balance rtag7 (l2 {dest-mac|src-mac|ether-type|vlan})
no load-balance rtag7 (l2 {dest-mac|src-mac|ether-type|vlan})
By default, L2 LAG is configured with the fields src-mac and dest-mac.
This form sets rtag7 hashing on an MPLS egress LER node based on L2/L3 fields:
load-balance rtag7 (mpls-ler ((inner-l2 ({dest-mac|src-mac|ether-type|vlan})) | (inner-l3 ({src-ip|dest-ip|srcl4-port|destl4-port|protocol-id}))))
no load-balance rtag7 (mpls-ler ((inner-l2 ({dest-mac|src-mac|ether-type|vlan})) | (inner-l3 ({src-ip|dest-ip|srcl4-port|destl4-port|protocol-id}))))
Please note the following:
• For ingress LER nodes, hashing is done on L2 fields, L3 fields (outer IPx), or inner IP fields (only for IPx-over-IPx or IPx-over-GRE-IPx).
• For egress LER nodes, hashing is done based on only L2 and L3 fields immediately after the MPLS header which is popped. Any other fields are not supported.
This form sets rtag7 hashing based on the outer IP address:
load-balance rtag7 (tunnel outer-l3-header)
no load-balance rtag7 (tunnel outer-l3-header)
Parameters
ipv4
Load balance IPv4 packets
src-ipv4
Source IPv4 based load balancing
dest-ipv4
Destination IPv4 based load balancing
srcl4-port
Source L4 port based load balancing
destl4-port
Destination L4 port based load balancing
protocol-id
Protocol ID based load balancing
ipv6
Load balance IPv6 packets
src-ipv6
Source IPV6 based load balancing
dest-ipv6
Destination IPv6 based load balancing
srcl4-port
Source L4 port based load balancing
destl4-port
Destination L4 port based load balancing
next-hdr
Next header field for IPv6
l2
Load balance L2 packets
dest-mac
Destination MAC address based load balancing
src-mac
Source MAC address based load balancing
ether-type
Ether-type based load balancing
vlan
VLAN-based load balancing
tunnel
Load balance tunneled packets based on outer header (default uses the inner-header)
outer-l3-header
Use outer header for hashing (ip-over-ip, ipv6-over-ip, ip-over-gre-ip, ipv6-over-gre-ip, ipv6-over-ipv6, ip-over-ipv6, ip-over-gre-ipv6, ipv6-over-gre-ipv6)
mpls-ler
Load balance LER packets
inner-l2
Load balance Inner l2 header
dest-mac
Destination MAC address load balancing
src-mac
Source MAC address
ether-type
Ether-type based load balancing
vlan
VLAN tag id
inner-l3
Inner l3 header
dest-ip
Destination IP address
src-ip
Source IP address
srcl4-port
Source L4 port based load balancing
protocol ID
Protocol (IPv4), nxt-hdr (IPv6)
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#load-balance rtag7
(config)#load-balance rtag7 ipv4 src-ipv4