The dhcpv6 relay access-limit vlan any command configures the maximum number of access DHCPv6 clients on a DHCPv6 relay interface. The configured maximum number applies to DHCPv6 clients that go online through single or double VLANs that do not have such a limit configured.
The undo dhcpv6 relay access-limit vlan any command deletes the maximum number of access DHCPv6 clients on a DHCPv6 relay interface.
By default, the maximum number of access DHCPv6 clients is not limited on DHCPv6 relay interfaces. Only the maximum number of DHCPv6 clients on the entire device is limited.
Usage Scenario
To limit the maximum number of access DHCPv6 clients during network planning or service adjustment, run the dhcpv6 relay access-limit command.
The dhcpv6 relay access-limit limit-number vlan any command configures the maximum number of DHCPv6 clients that can go online through single or double VLANs that do not have such a limit configured. This configuration is not counted in the 16 VLAN ranges allowed. Run this command to limit the maximum number of access DHCPv6 clients on a DHCPv6 relay interface in a specified VLAN. For example, if DHCPv6 clients send double-tagged packets to go online, each pair of VLAN tags identifies a VLAN. Run the dhcpv6 relay access-limit 1 vlan any command to configure a DHCPv6 relay interface to allow only one client that sends double-tagged VLAN packets to go online. This configuration protects the device against packets with changing MAC addresses and DUIDs.Configuration Impact
This command takes effect for subsequent DHCPv6 clients that go online. The maximum number of online DHCPv6 clients is not limited.
Precautions
If the dhcpv6 relay access-limit command is run with a VLAN range specified, and then the undo dhcpv6 relay access-limit command is run with a smaller VLAN range specified, the first VLAN range is divided into two parts. After the VLAN range specified in the dhcpv6 relay access-limit command is divided into 16 parts, the undo dhcpv6 relay access-limit command can no longer be run.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0.2 [~HUAWEI-GigabitEthernet0/1/0.2] dhcpv6 relay access-limit 1 vlan any