Unicast reverse path forwarding
#Unicast reverse path forwarding
Unicast Reverse Path Forwarding (URPF) is a mechanism for validating the source IP address of packets received on a router.
A router configured with URPF performs a reverse path lookup in the FIB table to validate the presence of the source IP address.
CEF (Cisco Express Forwarding) must be enabled on the IOS device for uRPF to work.
uRPF can operate in two modes: loose, strict.
- Loose: The router verifies the source IP can be reached via the routing table using any interface (other than a default route).
- Strict : The router verifies the source of the IP packet arrives on the same interface the router would use to reach that source address . Cause problem with asymmetric routing.
#Verification commands
interface GigabitEthernet0/0
ip verify unicast source reachable-via any ###Loose
ip verify unicast source reachable-via rx ### Strict
sw1#show ip traffic | section Drop
Drop: 2614 encapsulation failed, 0 unresolved, 0 no adjacency
0 no route, 0 unicast RPF, 0 forced drop
R1#show ip traffic | sec Drop
Drop: 0 encapsulation failed, 0 unresolved, 0 no adjacency
0 no route, 0 unicast RPF, 0 forced drop
R1#show cef interface gi 0/0
GigabitEthernet0/0 is up (if_number 2)
IP unicast RPF check is disabled