Pbr configuration examples, Configuring local pbr based on packet type, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual

Page 290

Advertising
background image

274

Task Command

Remarks

Display the specified PBR routing
information (in standalone mode).

display ip policy-based-route setup
{ policy-name | interface interface-type
interface-number
[ slot slot-number ] | local

[ slot slot-number ] } [ | { begin | exclude |

include } regular-expression ]

Available in any view.

Display the specified PBR routing
information (in IRF mode).

display ip policy-based-route setup
{ policy-name | interface interface-type

interface-number [ chassis chassis-number
slot slot-number ] | local [ chassis

chassis-number slot slot-number ] } [ |

{ begin | exclude | include }
regular-expression ]

Available in any view.

Display PBR statistics (in
standalone mode).

display ip policy-based-route statistics
{ interface interface-type interface-number |

local } [ slot slot-number ] [ | { begin |

exclude | include } regular-expression ]

Available in any view.

Display PBR statistics (in IRF mode).

display ip policy-based-route statistics
{ interface interface-type interface-number |

local } [ chassis chassis-number slot
slot-number ] [ | { begin | exclude |

include } regular-expression ]

Available in any view.

Display the PBR policy information.

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

regular-expression ]

Available in any view.

Clear PBR statistics.

reset policy-based-route statistics
[ policy-name ]

Available in user view.

PBR configuration examples

By default, Ethernet, VLAN, and aggregate interfaces are down. Before configuring these interfaces,

bring them up by using the undo shutdown command.

Configuring local PBR based on packet type

Network requirements

As shown in

Figure 96

, configure PBR on Switch A, so all TCP packets are forwarded to next hop 1.1.2.2,

and other packets are forwarded according to the routing table.
Switch A is directly connected to Switch B and Switch C. Switch B and Switch C are unreachable to each
other.

Advertising