Description
Use
route-policy
to create a routing policy and a node of it and enter routing policy view.
Use
undo route-policy
to remove a routing policy or a node of it.
No routing policy is created by default.
A routing policy is used for filtering routing information. It contains several nodes and each node
comprises a set of if-match and apply clauses. The if-match clauses define the matching criteria of
the node and the apply clauses define the actions to be taken on packets passing the node. The
relation between the if-match clauses of a node is logic AND; all the if-match clauses must be
satisfied. The relation between different routing policy nodes is logic OR; a packet passing a node
passes the routing policy.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
and enter routing policy view.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy]
IPv4 routing policy configuration commands
apply fast-reroute
Syntax
apply fast-reroute
{
backup-interface
interface-type interface-number
[
backup-nexthop
ip-address
] }
undo apply fast-reroute
View
Routing policy view
Default level
2: System level
Parameters
backup-interface interface-type interface-number
: Specifies a backup outbound interface by its
type and number. If the specified backup outbound interface is a non-P2P interface (including NBMA
and broadcast interfaces, such as an Ethernet interface, or VLAN interface), you need to specify a
backup next hop at the same time.
backup-nexthop ip-address
: Backup next hop address.
Description
Use
apply
fast-reroute
to configure FRR.
Use
undo apply
fast-reroute
to remove the configuration.
By default, FRR is not configured.
When a link or a router in the network fails, the packets on the path may be discarded, or a routing
loop may occur. Then, the traffic will be interrupted until the routing protocol completes routing
convergence based on the new network topology.
With FRR, a routing protocol can designate a backup next hop by using the referenced routing policy
when a network failure is detected, and packets are directed to the backup next hop to reduce traffic
recovery time.
428