Dynamic IPv6SG using DHCPv6 relay agent configuration example

Network requirements

As shown in Figure 133, DHCPv6 relay agent is enabled on the switch. The clients obtain IPv6 addresses from the DHCPv6 server through the DHCPv6 relay agent.

Enable dynamic IPv6SG on VLAN-interface 3 to filter incoming packets by using the IPv6SG bindings generated based on DHCPv6 relay entries.

Figure 132: Network diagram

Configuration procedure

  1. Configure the DHCPv6 relay agent:

    # Create VLAN 2 and VLAN 3, assign interfaces to the VLANs, and specify IP addresses for VLAN-interface 2 and VLAN-interface 3. (Details not shown.)

    # Enable the DHCPv6 relay agent on VLAN-interface 3.

    [Switch] interface vlan-interface 3
    [Switch-Vlan-interface3] ipv6 dhcp select relay
    

    # Enable recording of DHCPv6 relay entries on the interface.

    [Switch-Vlan-interface3] ipv6 dhcp relay client-information record
    

    # Specify the DHCPv6 server address 2::2 on the relay agent.

    [Switch-Vlan-interface3] ipv6 dhcp relay server-address 2::2
    [Switch-Vlan-interface3] quit
    
  2. Enable IPv6SG on VLAN-interface 3 and verify the source IP address and MAC address for dynamic IPv6SG.

    <Switch> system-view
    [Switch] interface vlan-interface 3
    [Switch-Vlan-interface3] ipv6 verify source ip-address mac-address
    [Switch-Vlan-interface3] quit
    

Verifying the configuration

# Verify that a dynamic IPv6SG binding is generated based on a DHCPv6 relay entry.

[Switch] display ipv6 source binding dhcpv6-relay
Total entries found: 1
IP Address      MAC Address    Interface                VLAN Type
1::2            0001-0203-0406 Vlan3                    3    DHCPv6 relay