R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
29
{ If the outgoing interface is a Null 0 interface, no next hop address is required.
{ If the outgoing interface is a point-to-point interface, a PPP serial interface for example, you can
specify only the outgoing interface. You do not need to change the configuration of the route
even if the peer address is changed.
{ If the outgoing interface is an NBMA interface or point-to-multipoint (P2MP) interface, an X.25
or Frame Relay interface for example, HP recommends specifying both the outgoing interface
and the next hop address for the route. This is because such interfaces need IP address-to-link
layer address mappings for successful packet delivery.
{ If the outgoing interface is a broadcast interface, an Ethernet interface or a VLAN interface for
example, specify the corresponding next hop of the interface at the same time. This is because
such interfaces can have multiple next hops.
The next hop address of a static route cannot be the IP address of a local interface.
Enabling BFD for a flapping route could worsen the situation. Be cautious when using BFD. For more
information about BFD, see High Availability Configuration Guide.
If the track module uses NQA to detect the reachability of the private network static route's next hop, the
VPN instance number of the static route's next hop must be identical to that configured in the NQA test
group.
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 might be mistakenly considered invalid.
Do not specify the permanent keyword together with the bfd or 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, which is the address of this VPN instance.
<Sysname> system-view
[Sysname] ip route-static vpn-instance vpn1 1.1.1.1 16 vpn-instance vpn1 1.1.1.2
# Configure a static route with destination address 1.1.1.1/24, outgoing interface GigabitEthernet 2/1/1,
and next hop address 2.2.2.2, and configure BFD echo packet mode for the static route.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 gigabitethernet 2/1/1 2.2.2.2 bfd echo-packet
Related commands
• display ip routing-table
• ip route-static default-preference
ip route-static default-preference
Use ip route-static default-preference to configure the 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