R3204P16-HP Load Balancing Module Network Management Command Reference-6PW101
109
When configuring a unicast static route, follow these guidelines:
1. 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 will be used for forwarding a packet if no route is available for the packet
in the routing table.
2. Implement different routing policies by tuning route preference. For example, to enable multiple
routes to the same destination address to share load, assign the same preference for the routes; to
enable them to back up one another, assign different preferences for them.
3. Specify the outbound interface or the next hop address of the static route as needed. The next hop
address cannot be the IP address of a local interface; otherwise, the route configuration will not
take effect. If the outbound interface supports network address-to-link layer address resolution or is
a point-to-point interface, you may specify only the interface or the next hop address. Note that:
4. If the outbound interface is a Null 0 interface, no next hop address is required.
5. If the outbound interface is a point-to-point interface, a PPP interface for example, you may specify
only the outbound interface rather than the peer address or both the outbound interface and peer
address. As only the outbound interface is specified, there is no need to change the configuration
of the route even if the peer address is changed.
6. If the outbound interface is an NBMA and P2MP interface, HP recommends specifying both the
interface and the next hop address for the route. This is because such interfaces support
point-to-multipoint networks; for them the router must establish IP address-to-link layer address
mappings for successful packet delivery.
7. HP does not recommend specifying a broadcast interface (such as an Ethernet interface or a VLAN
interface) as the outbound interface for a static route, because a broadcast interface may have
multiple next hops. If you have to do so, you must specify the corresponding next hop of the
interface at the same time.
Related commands: display ip routing-table and ip route-static default-preference.
NOTE:
• The static route does not take effect if you specify its next hop address first and then configure the
address as the IP address of a local interface, such as Ethernet interface and VLAN interface.
• To configure track monitoring for an existing static route, associate the static route with a track entry.
• 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.
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
ip route-static default-preference
Syntax
ip route-static default-preference default-preference-value
undo ip route-static default-preference