174
URPF configuration example
By default, Ethernet, VLAN, and aggregate interfaces are down. Use the
undo shutdown
command to
bring them up before configuring them.
Network requirements
A client (Switch A) directly connects to the ISP switch (Switch B). Enable strict URPF check on
VLAN-interface 10 of Switch B to allow packets whose source addresses match ACL 2010 to pass.
See Figure 60. Enable strict URPF check on VLAN-interface 10 of Switch A to allow use of the
default route for URPF check.
Figure 62
Network diagram for URPF configuration example
Configuration procedure
1.
Configure Switch B
Create VLAN 10.
<SwitchB> system-view
[SwitchB] vlan 10
[SwitchB-vlan10] quit
Specify the IP address for VLAN-interface 10.
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] ip address 1.1.1.2 255.255.255.0
Enable strict URPF check on VLAN-interface 10.
[SwitchB-Vlan-interface10] ip urpf strict
2.
Configure Switch A
Create VLAN 10.
<SwitchA> system-view
[SwitchA] vlan 10
[SwitchA-vlan10] quit
Specify the IP address for VLAN-interface 10.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 1.1.1.1 255.255.255.0
Enable strict URPF check on VLAN-interface 10.
[SwitchA-Vlan-interface10] ip urpf strict