The dhcpv6 relay access-limit pevlan cevlan command configures the maximum number of DHCPv6 clients that send double-tagged packets to go online through a DHCPv6 relay interface.
The undo dhcpv6 relay access-limit pevlan cevlan 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. |
pevlan-id |
Specifies the outer VLAN ID of DHCPv6 clients that send double-tagged packets to go online. |
The value is an integer ranging from 1 to 4094. |
cevlan-id |
Specifies the start inner VLAN ID. |
The value is an integer ranging from 1 to 4094. |
end-cevlan-id |
Specifies the end inner 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 pevlan pevlan-id { cevlan cevlan-id [ end-cevlan-id ] | any } command configures the maximum number of DHCPv6 clients that send double-tagged packets to go online through a DHCPv6 relay interface. Each relay interface supports 16 VLAN ranges. If you configure any for cevlan, the maximum number of DHCPv6 clients whose packets carry the outer VLAN ID specified by pevlan-id and any inner VLAN ID not in the CE-VLAN range is limited. This configuration is counted in the 16 VLAN ranges allowed. For example, if both the dhcpv6 relay access-limit 1 pevlan 2 cevlan 1 100 and dhcpv6 relay access-limit 2 pevlan 2 cevlan any commands are run on GE 0/1/1.1, one DHCPv6 client whose packets carry PE-VLAN 2 and any CE-VLAN ID in the range 1-100 is allowed to go online, and two DHCPv6 clients whose packets carry PE-VLAN 2 and any CE-VLAN ID in the range 101-4094 are allowed to go online.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] encapsulation qinq-termination [*HUAWEI-GigabitEthernet0/1/0.2] dhcpv6 relay access-limit 2 pevlan 200 cevlan 100 200 [*HUAWEI-GigabitEthernet0/1/0.2] dhcpv6 relay access-limit 3 pevlan 200 cevlan 300 400 [*HUAWEI-GigabitEthernet0/1/0.2] dhcpv6 relay access-limit 1 vlan any