Displaying and Maintaining the Routing Policy 495
n
The apply ipv6 next-hop commands do not apply to redistributed IPv6 routes
respectively.
Displaying and
Maintaining the
Routing Policy
Routing Policy
Configuration
Example
Applying Routing Policy
When Redistributing
IPv6 Routes
Network requirements
■ Enable RIPng on Switch A and Switch B.
■ Configure three static routes on Switch A and apply a routing policy when
redistributing static routes, making routes 20::0/32 and 40::0/32 pass, routes in
30::0/32 filtered out.
■ Display RIPng routing table information on Switch B to verify the configuration.
Set a local preference for IPv6
BGP routes
apply local-preference preference Optional
Not set by default
Set an origin attribute for IPv6
BGP routes
apply origin { igp | egp as-number |
incomplete }
Optional
Not set by default
Set a preference for the
matched routing protocol
apply preference preference Optional
Not set by default
Set a preferred value for IPv6
BGP routes
apply preferred-value
preferred-value
Optional
Not set by default
Set a tag value for the routes apply tag value Optional
Not set by default
To do… Use the command… Remarks
To do… Use the command… Remarks
Display IPv6 BGP AS path ACL
information
display ip as-path [ as-path-number ] Available in
any view
Display IPv6 BGP community list
information
display ip community-list
[ basic-community-list-number |
adv-community-list-number ]
Display IPv6 BGP extended
community list information
display ip extcommunity-list
[ ext-comm-list-number ]
Display IPv6 prefix list statistics display ip ipv6-prefix [ ipv6-prefix-name ]
Display routing policy
information
display route-policy [ route-policy-name ]
Clear IPv6 prefix statistics reset ip ipv6-prefix [ ipv6-prefix-name ]