Unicast reverse path forwarding

Published

April 26, 2023

#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.

#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
         

Source cisco.com
RFC 3704