F3215-HP Load Balancing Module Network Management Command Reference-6PW101

147
If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default
route. The default route is used for forwarding packets that match no specific entry in the routing
table.
Implement different routing policies to tune route preferences. For example, to enable load sharing
for multiple routes to the same destination, assign the same preference to the routes. To enable them
to back up one another, assign different preferences to them.
Specify the output interface or the next hop address of the static route as needed:
{ If the output interface is a Null 0 interface, no next hop address is required.
{ If the output interface is an NBMA interface that needs IP address-to-link layer address
mapping for successful packet delivery, HP recommends you specify both the output interface
and the next hop address for the route.
{ If the output interface is a broadcast interface (such as an Ethernet interface or a VLAN
interface) that might have multiple next hops, you must specify both the output interface and the
next hop address at the same time.
The next hop address of a static route cannot be the IP address of a local interface. Otherwise, the
static does not take effect.
If a static route needs route recursion, the associated track entry must monitor the next hop of the
recursive route instead of that of the static route. Otherwise, a valid route may be mistakenly
considered invalid.
Destination VPN is not supported by the device. To achieve packet forwarding between different
VPNs, specify both the output interface and the next hop address of the static route.
Do not specify the permanent keyword together with the track keyword.
Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2, tag value
is 45, and description information is for internet & intranet.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet & intranet
# Configure a static route for a VPN instance named vpn1: the destination address is 1.1.1.1/16 and the
next hop address is 1.1.1.2. (The next hop address is the address of VPN instance vpn 2 bound to
GigabitEthernet 0/1.)
<Sysname> system-view
[Sysname] ip route-static vpn-instance vpn1 1.1.1.1 16 gigabitethernet0/1 1.1.1.2
Related commands
display ip routing-table
ip route-static default-preference
ip route-static default-preference
Use ip route-static default-preference to configure a default preference for static routes.
Use undo ip route-static default-preference to restore the default.
Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference