The dhcpv6 relay access-limit vlan command configures the maximum number of access DHCPv6 clients in a specified VLAN on a DHCPv6 relay interface.
The undo dhcpv6 relay access-limit vlan 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.
Parameter | Description | Value |
---|---|---|
limit-number |
Specifies the maximum number of access DHCPv6 clients on a DHCPv6 relay interface. |
The value is an integer ranging from 0 to 65536. |
vlan-id |
Specifies the start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
end-vlan-id |
Specifies the end VLAN ID. |
The value is an integer ranging from 1 to 4094. |
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 vlan-id [ end-vlan-id ] command configures the maximum number of access DHCPv6 clients in a specified VLAN on a DHCPv6 relay interface. If both vlanid and end-vlan-id are configured to specify a VLAN range, the maximum number of access DHCPv6 clients applies to all the VLANs in this range. Each relay interface supports 16 VLAN ranges. For example, if the dhcpv6 relay access-limit 1 vlan 1 100 command is run on GE 0/1/1.1, one DHCPv6 client is allowed to go online through VLANs in the range 1-100.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.1 [~HUAWEI-GigabitEthernet0/1/0.1] encapsulation dot1q-termination [*HUAWEI-GigabitEthernet0/1/0.1] dhcpv6 relay access-limit 2 vlan 100 200