dhcpv6 relay access-limit pevlan cevlan

Function

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.

Format

dhcpv6 relay access-limit limit-number pevlan pevlan-id cevlan cevlan-id [ end-cevlan-id ]

undo dhcpv6 relay access-limit [ limit-number ] pevlan pevlan-id cevlan cevlan-id [ end-cevlan-id ]

Parameters

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.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

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.

Example

# Configure GE 0/1/0.2 to allow a maximum of 2 DHCPv6 clients that send double-tagged packets carrying PE-VLAN 200 and any CE-VLAN ID in the range 100-200 to go online, a maximum of 3 DHCPv6 clients that send double-tagged packets carrying PE-VLAN 200 and any CE-VLAN ID in the range 300-400 to go online, and only 1 DHCPv6 client that sends double-tagged packets carrying any PE-VLAN ID and CE-VLAN ID other than the ones specified to go online.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >