ECMP commands
The ECMP commands are detailed in this section.
protocols ecmp disable
Disables ECMP routing.
None.
Configuration mode
protocols {
ecmp {
disable {}
}
}
protocols ecmp maximum#paths
Sets the maximum number of next hops for ECMP routing.
None
- maximum-paths number
- Sets the maximum number of next hops for ECMP routing.
Configuration mode
protocols {
ecmp {
maximum-paths number{}
}
}
Use the set form of this command to set the maximum number of next hops for ECMP routing.
Use the delete form of this command to remove the maximum number of next hops for ECMP routing.
protocols ecmp mode <mode>
Sets the load-balancing mechanism for ECMP.
None
- hash-threshold
- Sets the hash-threshold ECMP routing mode.
- hrw
- Sets the highest random weight ECMP routing mode. This mode is the default.
- modulo-n
- Sets the modulo-n-hash ECMP routing mode.
Configuration mode
protocols {
ecmp {
mode {
hash-threshold
hrw
modulo-n
}
}
}
Use the set form of this command to set the load-balancing mechanism for ECMP.
Use the delete form of this command to remove the load-balancing mechanism. The ECMP load-balancing mechanism returns to its default setting, which is HRW.
Use the show form of this command to display the current load-balancing mechanism for ECMP.
The following example shows how to set the hash-threshold mode with maximum number of next hops as 34 for ECMP routing.
vyatta@vyatta# set protocols ecmp maximum-paths 34
[edit]
vyatta@vyatta# set protocols ecmp mode hash-threshold
[edit]
vyatta@vyatta# commit
The output for the ECMP configuration is as follows.
vyatta@vyatta# show protocols ecmp
ecmp {
maximum-paths 34
mode hash-threshold
}
[edit]
show dataplane route
Displays forward information base (FIB) table that contain all routes including ECMP routes.
None.
Operational mode
Use this command to display the FIB table.
show dataplane route6
Displays FIB table that contain all IPv6 routes including ECMP routes.
None.
Operational mode
Use this command to display IPv6 FIB table.