332
Enabling PBR notification sending
Perform this task to enable PBR notification sending so that PBR can generate notifications when the next
hop becomes invalid. The generated notifications are sent to the SNMP module. The output rules for PBR
notifications depend on the SNMP notification configuration. For more information about SNMP
notifications, see
Network Management and Monitoring Configuration Guide
.
To enable PBR notification sending:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable PBR notification
sending.
snmp-agent trap enable
policy-based-route
By default, PBR notification
sending is enabled.
Displaying and maintaining PBR
Execute
display
commands in any view and
reset
commands in user view.
Task Command
Display PBR policy information.
display ip policy-based-route
[
policy
policy-name
]
Display PBR configuration.
display ip policy-based-route setup
Display local PBR configuration and statistics.
display ip policy-based-route local
Display interface PBR configuration and
statistics.
display ip policy-based-route interface
interface-type
interface-number
Clear PBR statistics.
reset ip policy-based-route statistics
[
policy
policy-name
]
PBR configuration examples
Packet type-based local PBR configuration example
Network requirements
As shown in
Figure 78
, configure PBR on Router A to forward all TCP packets to the next hop 1.1.2.2.
Router A forwards other packets according to the routing table.
Figure 78
Network diagram