Skip to main content
aarhernandez
Staff
Staff
October 6, 2017

Technical Tip: Configure Equal Cost MultiPath (ECMP)

  • October 6, 2017
  • 0 replies
  • 6489 views
Description
The ECMP feature is not available on GUI but only via CLI.

This article describes how to configure this feature.

Solution
With two or more internet connections, configure the same distance and priority on all routes is requested:
# Configure  static route
# configure routing static
    edit 1
        set gateway 172.100.10.1
        set distance 10
        set priority 1
        set device port1
        set dst 0.0.0.0
    end
end
# configure routing static
    edit 2
        set gateway 172.100.20.1
        set distance 10
        set priority 1
        set device port2
        set dst 0.0.0.0
    end
end
Configure DHCP route:

Obtain the interface IP from ISP via DHCP Server, to retreive the route and gateway automatically and configure the priority on each interface.
# configure system interface
    edit wan1
        set priority 1
    end
end

# configure system interface
    edit wan2
        set priority 1
    end
end