Policy, Displaying and maintaining the routing policy, Routing policy configuration examples – H3C Technologies H3C S12500-X Series Switches User Manual

Page 389

Advertising
background image

375

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter routing policy node view. route-policy route-policy-name

{ deny | permit } node node-number N/A

3.

Specify the next node to be
matched.

continue [ node-number ]

By default, no continue clause is
configured.
The specified next node must

have a larger number than the
current node.

130B

Displaying and maintaining the routing policy

Execute display commands in any view and reset commands in user view.

Task Command

Display BGP AS path list information.

display ip as-path [ as-path-number ]

Display BGP community list information.

display ip community-list [ basic-community-list-number |
adv-community-list-number | name comm-list-name ]

Display BGP extended community list
information.

display ip extcommunity-list [ ext-comm-list-number ]

Display IPv4 prefix list statistics.

display ip prefix-list [ name prefix-list-name ]

Display IPv6 prefix list statistics.

display ipv6 prefix-list [ name prefix-list-name ]

Display routing policy information.

display route-policy [ name route-policy-name ]

Clear IPv4 prefix list statistics.

reset ip prefix-list [ prefix-list-name ]

Clear IPv6 prefix list statistics.

reset ipv6 prefix-list [ prefix-list-name ]

131B

Routing policy configuration examples

443B

Applying a routing policy to IPv4 route redistribution

702B

Network Requirements

As shown in

1252H

Figure 88

, Switch B exchanges routing information with Switch A by using OSPF and with

Switch C by using IS-IS.
On Switch B, enable route redistribution from IS-IS to OSPF, and use a routing policy to set the cost of

route 172.17.1.0/24 to 100 and the tag of route 172.17.2.0/24 to 20.

Advertising
This manual is related to the following products: