I Commands
This chapter describes the Cisco NX-OS unicast Routing Information Base (RIB) and the Forwarding Information Base (FIB) commands that begin with I.
ip load-sharing address
To configure the load-sharing algorithm used by the unicast Forwarding Information Base (FIB), use the ip load-sharing address command. To restore the default, use the no form of this command.
ip load-sharing address { destination port destination | source-destination [ port source-destination ]} [ universal-id seed ]
no ip load-sharing address { destination port destination | source-destination [ port source-destination ]} [ universal-id seed ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the ip load-sharing address command to set the load-sharing algorithm that the unicast FIB uses to select a path from the equal-cost paths in the Routing Information Base (RIB).
Examples
This example shows how to set the load-sharing algorithm to use the source and destination address:
Related Commands
|
|
---|---|
Displays the path the RIB and FIB select for a source/destination pair. |
ip route
To configure a static route, use the ip route command. To remove the static route, use the no form of this command.
ip route ip-prefix / mask {[ interface ] next-hop } [ preference ] [ tag id ]
no ip route ip-prefix / mask {[ interface ] next-hop } [ preference ] [ tag id ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Static routes have a default administrative distance of 1. If you want a dynamic routing protocol to take precidence over a static route, you must configure the static route preference argument to be greater than the administrative distance of the dynamic routing protocol. For example, routes derived with the Enhanced Interior Gateway Routing Protocol (EIGRP) have a default administrative distance of 100. To have a static route that would be overridden by an EIGRP dynamic route, you should specify an administrative distance greater than 100.
Examples
This example shows how to create a static route for destinations with the IP address prefix 192.168.1.1/32, reachable through the next-hop address 10.0.0.2:
This example shows how to assign a tag to the previous example so that you can configure a route map that can match on this static route:
This example shows how to choose a preference of 110. In this case, packets for prefix 10.0.0.0 are routed to a router at 172.31.3.4 if dynamic route information with an administrative distance less than 110 is not available.
Related Commands
|
|
---|---|
ip source-route
To handle IP datagrams with source routing header options, use the ip source-route command. To have the software discard any IP datagram containing a source-route option, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to enable the handling of IP datagrams with source routing header options:
Related Commands
|
|
---|---|
To configure a static route, use the ip route command. To remove the static route, use the no form of this command. |