6-4
If all items are set to the
deny
mode, no routes can pass the IPv6 prefix list. Therefore, you need to
define the
permit
:: 0
less-equal
128 item following multiple
deny
items to allow other IPv6 routing
information to pass.
For example, the following configuration filters routes 2000:1::/48, 2000:2::/48 and 2000:3::/48, but
allows other routes to pass.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc index 10 deny 2000:1:: 48
[Sysname] ip ipv6-prefix abc index 20 deny 2000:2:: 48
[Sysname] ip ipv6-prefix abc index 30 deny 2000:3:: 16
[Sysname] ip ipv6-prefix abc index 40 permit :: 0 less-equal 128
Configuring a Route Policy
A route policy is used to filter routing information, and modify attributes of matching routing information.
The match criteria of a route policy can be configured by referencing filters above mentioned.
A route policy can comprise multiple nodes, and each route policy node contains:
z
if-match
clauses: Define the match criteria that routing information must satisfy. The matching
objects are some attributes of routing information.
z
apply
clauses: Specify the actions to be taken on routing information that has satisfied the match
criteria, such as route attribute modification.
Prerequisites
Before configuring this task, you need to configure:
z
Filters
z
Routing protocols
You also need to decide on:
z
Name of the route policy, and node numbers
z
Match criteria
z
Attributes to be modified
Creating a Route Policy
Follow these steps to create a route policy:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a route policy, specify a
node for it and enter route
policy node view
route-policy
route-policy-name
{
permit
|
deny
}
node
node-number
Required