Displaying and maintaining the routing policy, Routing policy configuration examples, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual

Page 375

Advertising
background image

360

Displaying and maintaining the routing policy

To do…

Use the command…

Remarks

Display BGP AS-PATH list

information

display ip as-path [ as-path-number ] [ | { begin |

exclude | include } regular-expression ]

Display BGP community list
information

display ip community-list
[ basic-community-list-number |

adv-community-list-number | comm-list-name ] [ |

{ begin | exclude | include } regular-expression ]

Display BGP extended community
list information

display ip extcommunity-list
[ ext-comm-list-number ] [ | { begin | exclude |
include } regular-expression ]

Display IPv4 prefix list statistics

display ip ip-prefix [ ip-prefix-name ] [ | { begin |
exclude | include } regular-expression ]

Display IPv6 prefix list statistics

display ip ipv6-prefix [ ipv6-prefix-name ] [ |
{ begin | exclude | include } regular-expression ]

Display routing policy information

display route-policy [ route-policy-name ] [ | { begin
| exclude | include } regular-expression ]

Available in any
view

Clear IPv4 prefix list statistics

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

Clear IPv6 prefix list statistics

reset ip ipv6-prefix [ ipv6-prefix-name ]

Available in user
view

Routing policy configuration examples

Applying a routing policy to IPv4 route redistribution

Network Requirements

As shown in

Figure 116

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

with Switch C using IS-IS.

On Switch B, enable route redistribution from IS-IS to OSPF, and apply 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.

Figure 116 Network diagram for routing policy application to route redistribution

Advertising