
211
Static IPv6 source guard configuration example
Network requirements
As shown in
, the host is connected to port Ten-GigabitEthernet 1/0/1 of the switch.
Configure a static IPv6 source guard binding entry for Ten-GigabitEthernet 1/0/1 of the switch to allow
only IPv6 packets from the host to pass.
Figure 67
Network diagram
Configuration procedure
# Enable IPv6 source guard on port Ten-GigabitEthernet 1/0/1.
<Switch> system-view
[Switch] interface ten-gigabitEthernet 1/0/1
[Switch-Ten-GigabitEthernet1/0/1] ipv6 verify source ip-address mac-address
# On port Ten-GigabitEthernet 1/0/1, configure a static IPv6 source guard binding entry to allow only
IPv6 packets with the source IPv6 address of 2001::1 and the source MAC address of 00-01-02-02-02-02
to pass.
[Switch-Ten-GigabitEthernet1/0/1] ipv6 source binding ip-address 2001::1 mac-address
0001-0202-0202
[Switch-Ten-GigabitEthernet1/0/1] quit
Verifying the configuration
# Display static IPv6 source guard binding entries on the switch. The output shows that a static binding
entry is configured successfully.
[Switch] display ipv6 source binding static
Total entries found: 1
IPv6 Address MAC Address Interface VLAN Type
2001::1 0001-0202-0202 XGE1/0/1 N/A Static