Operation Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IP Routing Policy Configuration
Huawei Technologies Proprietary
5-7
Table 5-4 Configure an IPv4 ip-prefix list
Operation Command Description
Enter system view
system-view
—
Configure an IPv4
ip-prefix list
ip ip-prefix ip-prefix-name
[ index index-number ]
{ permit | deny } network len
[ greater-equal
greater-equal | less-equal
less-equal ]
Required
By default, no ip-prefix list is
specified. If all the list items
are in deny mode, all
routing information will be
denied by the filter list. You
are recommended to define
the item permit 0.0.0.0 0
greater-equal 0
less-equal 32 after
multiple items in the deny
mode so as to permit all
other IPv4 routes.
Note:
If more than one ip-prefix item are defined, the match mode of at least one item should
be the permit mode.
5.5 Displaying IP Routing Policy
After the above configuration, execute the display command in any view to display
and verify the routing policy configuration.
Table 5-5 Display and debug a route policy
Operation Command Description
Display route-policy
information
display route-policy
[ route-policy-name ]
Display address
prefix list information
display ip ip-prefix
[ ip-prefix-name ]
You can execute the display
command in any view.
5.6 IP Routing Policy Configuration Example
5.6.1 Configuring to Filter Received Routing Information
I. Network requirements
Switch A communicates with Switch B. OSPF protocol is enabled on both switches.
The router ID of Switch A is 1.1.1.1 and that of Switch B is 2.2.2.2.