Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Show Page Sections

ECMP commands

The ECMP commands are detailed in this section.

protocols ecmp disable

Disables ECMP routing.

set protocols ecmp disable

None.

Configuration mode

protocols {
 ecmp {
 disable {}
 }
}

protocols ecmp maximum#paths

Sets the maximum number of next hops for ECMP routing.

set protocols ecmp maximum-pathsnumber
delete protocols ecmp maximum-paths

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.

set protocols ecmp mode hash-threshold | hrw | modulo-n
delete protocols ecmp mode hash-threshold | hrw | modulo-n
show protocols ecmp mode hash-threshold | hrw | modulo-n

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.

show dataplane route

None.

Operational mode

Use this command to display the FIB table.

Note: FIB table is stored in the data plane.

show dataplane route6

Displays FIB table that contain all IPv6 routes including ECMP routes.

show dataplane route6

None.

Operational mode

Use this command to display IPv6 FIB table.