- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
09-URPF Commands | 29.09 KB |
Chapter 1 URPF Configuration Commands
& Note:
The service processor boards mentioned in this chapter refer to LSBM1NAMB0 boards.
1.1 URPF Configuration Commands
1.1.1 display urpf
Syntax
display urpf
View
VLAN interface view
Parameters
None
Description
Use the display urpf command to query that URPF is enabled on current VLAN ports. If URPF is enabled and the specified board with URPF function is enabled, you can view URPF statistical data, that is, the sum of processed packets and discarded packets.
Examples
# Query URPF enabling status and statistical data of VLAN interface 1001.
[H3C-Vlan-interface1001] display urpf
URPF is enabled to slot 2 on current vlan interface!
packet statistics related to URPF:
Number of received packets: 5000
Number of dropped packets: 200
# Following information appears when the service processor board is not installed.
[H3C-Vlan-interface1001]display urpf
URPF is disabled on current vlan interface!
1.1.2 reset urpf statistic
Syntax
reset urpf statistic
View
VLAN interface view
Parameters
None
Description
Use the reset urpf statistic command to clear URPF statistical counters to zero.
When a VLAN interface with URPF enabled runs for a long time, more statistical data enter the counter. Therefore you need to clear statistical data related to URPF on the port. To clear recording statistics of received and discarded data packets on the port, execute the reset urpf statistic command. As a result, the URPF statistical counter is cleared to zero.
Examples
# Clear URPF statistical counters to zero.
[H3C-Vlan-interface100] reset urpf statistic
1.1.3 urpf enable
Syntax
urpf enable to slot slotid
undo urpf enable
View
VLAN interface view
Parameters
slotid: Numbers of the slot where service processor boards implementing URPF check is located.
Description
Use the urpf enable command to enable URPF on a certain VLAN port, and specify the corresponding service processor board for handling.
Use the undo urpf enable command to disable URPF on a certain VLAN port.
After the urpf enable command is configured, you need to configure packet redirection in Ethernet port view to redirect the packets needing URPF check to boards with URPF function (the LSBM1NAMB0 board). For details, refer to Configuring Traffic Redirection in QoS Configuration of the QoS ACL Volume.
Caution:
Because URPF and virtual private LAN service (VPLS) are mutually exclusive, you cannot simultaneously enable URPF and VPLS in the same VLAN interface view.
Examples
# Enable URPF on VLAN ports, and specify the service processor board installed in slot 2 to implement URPF check.
[H3C-Vlan-interface1001] urpf enable to slot 2