To do...
Set a preferred value for BGP
routing information
Set a tag value for RIP, OSPF or
IS-IS routing information
The difference between IPv4 and IPv6 apply clauses is the command for setting the next hop for
routing information.
The apply ip-address next-hop and apply ipv6 next-hop commands do not apply to
redistributed IPv4 and IPv6 routes respectively.
Displaying and Maintaining the Route Policy
To do...
Display BGP AS-PATH list
information
Display BGP community list
information
Display BGP extended
community list information
Display IPv4 prefix list statistics
Display IPv6 prefix list statistics
Display route policy information
Clear IPv4 prefix list statistics
Clear IPv6 prefix list statistics
Route Policy Configuration Example
Applying a Route Policy to IPv4 Route Redistribution
Network Requirements
As shown in the following figure, Switch B exchanges routing information with Switch A using
OSPF, and with Switch C using IS-IS.
On Switch B, enable route redistribution from IS-IS to OSPF and apply a route policy to set the cost
of route 172.17.1.0/24 to 100, and the tag of route 172.17.2.0/24 to 20.
Use the command...
apply preferred-value
preferred-value
apply tag value
Use the command...
display ip as-path [ as-path-number ]
display ip community-list
[ basic-community-list-number |
adv-community-list-number ]
display ip extcommunity-list
[ ext-comm-list-number ]
display ip ip-prefix [ ip-prefix-name ]
display ip ipv6-prefix [ ipv6-prefix-name ]
display route-policy [ route-policy-name ]
reset ip ip-prefix [ ip-prefix-name ]
reset ip ipv6-prefix [ ipv6-prefix-name ]
1-10
Remarks
Optional
Not set by default.
Optional
Not set by default.
Remarks
Available in any
view
Available in user
view