Static IPv6SG configuration example

Network requirements

As shown in Figure 131, configure a static IPv6SG binding on GigabitEthernet 1/0/1 of the device to allow only IPv6 packets from the host to pass.

Figure 130: Network diagram

Configuration procedure

# Enable IPv6SG on GigabitEthernet 1/0/1.

<Device> system-view
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] ipv6 verify source ip-address mac-address

# On GigabitEthernet 1/0/1, configure a static IPv6SG binding for the host.

[Device-GigabitEthernet1/0/1] ipv6 source binding ip-address 2001::1 mac-address 0001-0202-0202
[Device-GigabitEthernet1/0/1] quit

Verifying the configuration

# Verify that the static IPv6SG binding is configured successfully on the device.

[Device] display ipv6 source binding static
Total entries found: 1
IPv6 Address         MAC Address    Interface               VLAN Type
2001::1              0001-0202-0202 GE1/0/1                 N/A  Static