H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 7 IP Routing Policy Configuration
7-9
7.2.6 Applying a Routing Policy to Receive or Advertise Routes
Note:
The filter-policy command (used to apply a routing policy to receive or advertise
routes) is somewhat different in form in different routing protocol views. Refer to the
filter-policy command description under routing protocols in the command manual.
7.3 Displaying and Maintaining IP Routing Policy
Configuration
To do... Use the command... Remarks
Display route-policy
information
display route-policy
[ route-policy-name ]
Display information about
the specified AS path ACL
display ip as-path-acl [ acl-number ]
Display information about
the specified address
prefix list
display ip ip-prefix [ ip-prefix-name ]
Display information about
the specified community
list
display ip community-list
[ basic-comm-list-number |
adv-comm-list-number ]
Available in
any view
7.4 IP Routing Policy Configuration Example
7.4.1 Filtering Routing Information
I. Network requirements
z As shown in Figure 7-1, Switch A communicates with Switch B. Both switches
enable the OSPF protocol. Switch A’s router ID is 1.1.1.1 and Switch B’s is
2.2.2.2.
z Configure OSPF routing process on Switch A: configuring and importing three
static routes.
z Configure a routing policy on Switch A to filter imported static routes. In this
example, the routes in 20.0.0.0 and 40.0.0.0 network segments can be imported,
but those in 30.0.0.0 network segment will be filtered out.