IP Routing Policy
119
Perform the following configurations in System View.
During the matching, the router checks list items identified by the
index_number
in ascending order. If only one list item meets the condition, it means that it has
passed the
ip-prefix
filtering (and does not enter the testing of the next list
item).
If more than one IP prefix item is defined, then the match mode of at least one list
item should be the
permit
mode. The list items of the
deny
mode can be defined
to rapidly filter the routing information not satisfying the requirement, but if all
the items are in the
deny
mode, no route will pass the
ip-prefix
filtering. You
can define an item of
permit
0.0.0.0/0
greater-equal
0
less-equal
32 after
the multiple list items in the
deny
mode to let all the other routes pass.
Displaying and
Debugging the Routing
Policy
Enter the
display
command in any view to display the operation of the routing
policy configuration, and to verify the effect of the configuration.
Typical IP Routing Policy
Configuration Example
Configuring the Filtering of the Received Routing Information
Networking Requirements
■
Switch A communicates with Switch B, running RIP protocol.
■
Import three static routes by enabling the RIP protocol on Switch A.
■
The route filtering rules can be configured on Switch B to make the received
three static routes partially visible and partially shielded. This means that routes
in the network segments 20.0.0.0 and 40.0.0.0 are visible while those in the
network segment 30.0.0.0 are shielded.
Table 125
Defining Prefix-list
Operation
Command
Define a Prefix-list
ip ip-prefix
ip_prefix_name
[
index
index_number
]
{
permit
|
deny
}
network len
[
greater-equal
greater_equal
] [
less-equal
less_equal
]
Remove a Prefix-list
undo ip ip-prefix
ip_prefix_name
[
index
index_number
|
permit
|
deny
]
Table 126
Displaying and Debugging the Routing Policy
Operation
Command
Display the routing policy
display route-policy
[
route_policy_name
]
Display the address prefix list
information
display ip ip-prefix
[
ip_prefix_name
]
Summary of Contents for 400 Family
Page 12: ......
Page 16: ...14 ABOUT THIS GUIDE ...
Page 58: ...56 CHAPTER 2 PORT OPERATION ...
Page 68: ...66 CHAPTER 3 VLAN OPERATION ...
Page 98: ...96 CHAPTER 5 NETWORK PROTOCOL OPERATION ...
Page 124: ...122 CHAPTER 6 IP ROUTING PROTOCOL OPERATION ...
Page 156: ...154 CHAPTER 8 ACL CONFIGURATION ...
Page 218: ...216 CHAPTER 11 802 1X CONFIGURATION ...
Page 298: ...296 CHAPTER 13 PASSWORD CONTROL CONFIGURATION OPERATIONS ...
Page 336: ...334 APPENDIX B RADIUS SERVER AND RADIUS CLIENT SETUP ...