1-7
To do…
Use the command…
Remarks
for IPv4 routes
apply ip-address
next-hop
ip-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the next
hop
for IPv6 routes
apply ipv6 next-hop
ipv6-address
Optional
Not set by default.
The setting does not apply to
redistributed routing information.
Set the preference for the
routing protocol
apply preference
preference
Optional
Not set by default.
Set a tag value for RIP routing
information
apply tag value
Optional
Not set by default.
z
The difference between IPv4 and IPv6
apply
clauses is the command for setting the next hop for
routing information.
z
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…
Use the command…
Remarks
Display IPv4 prefix list statistics
display ip ip-prefix
[
ip-prefix-name
]
Display IPv6 prefix list statistics
display ip ipv6-prefix
[
ipv6-prefix-name
]
Display route policy information
display route-policy
[
route-policy-name
]
Available in any
view
Clear IPv4 prefix list statistics
reset ip ip-prefix
[
ip-prefix-name
]
Clear IPv6 prefix list statistics
reset ip ipv6-prefix
[
ipv6-prefix-name
]
Available in user
view
Route Policy Configuration Example
Applying a Route Policy to IPv4 Route Redistribution
Network Requirements
As shown in the following figure, Switch A and Switch B communicate with each other at the network
layer through RIPv2. Switch A has static routes to networks 20.0.0.0/8, 30.0.0.0/8, and 40.0.0.0/8.
Switch B needs to access these networks through Switch A, while Switch A allows Switch B to access
networks 20.0.0.0/8 and 40.0.0.0/8, but not 30.0.0.0/8.