Configure URPF on an interface to prevent source address spoofing attacks across the network.
Configuring the link attributes of the interface
Configuring an IP address for the interface
Configuring an ACL rule
The URPF check can be implemented in strict or loose mode. Additionally, the URPF check also supports checking ACLs and default routes.
The processing flow of the URPF check is as follows:
If the source IP address of the packet exists in the FIB table of the router:
If the source IP address of the packet does not exist in the FIB table of the router, check the default route and the allow-default-route parameter of URPF.
If the default route is configured, but the allow-default-route parameter is not specified:
As the source IP address of the packet does not exist in the FIB table of the router, the packet is denied regardless of whether the URPF check is in strict or loose mode.
If the default route is configured, and the allow-default-route parameter is specified:
URPF cannot work with the global routing policy or PBR intelligent uplink selection. Otherwise, packet loss may occur.
system-view
interface interface-type interface-number
You can enable URPF check on GE interfaces, VLANIF interfaces, Eth-Trunk interfaces, Tunnel interfaces or sub-interfaces.
ip urpf { loose | strict } [ allow-default-route ] [ acl acl-number ]
Or
ipv6 urpf { loose | strict } [ allow-default-route ] [ acl6 acl-number ]