IPv4 Static Route Configuration
© Copyright Lenovo 2017
Up to 128 IPv4 static routes can be configured.
Table 265.
IPv4 Static Route Configuration Options
Command Syntax and Usage
ip route <IP subnet> <IP netmask> <IP nexthop> [<IP interface number>|
|port <port alias or number>]
Adds a static route. You will be prompted to enter a destination IP address,
destination subnet mask, and gateway address. Enter all addresses using
dotted decimal notation.
Command mode: Global configuration
no ip route <IP subnet> <IP netmask> [<IP interface number>|<IP nexthop>
[<IP interface number>]|port <port alias or number>]
Removes a static route. The destination address of the route to remove must be
specified using dotted decimal notation.
Command mode: Global configuration
ip route ecmphash [dipsip|sip]
Configures ECMP hashing parameters. You may choose one or more of the
following parameters:
dipsip: Destination IP and source IP address
sip: Source IP address
Command mode: Global configuration
[no] ip route healthcheck
Enables or disables static route health checks.
The default setting is disabled.
Command mode: Global configuration
ip route interval <1‐60>
Configures the ECMP health‐check ping interval, in seconds.
The default value is 1 second.
Command mode: Global configuration
ip route retries <1‐60>
Configures the number of ECMP health‐check retries.
The default value is 3 retries.
Command mode: Global configuration
no ip route all
Clears all IP statis routes.
Command mode: Global configuration
Chapter 4: Configuration Commands
515