dhcpv6 relay access-limit vlan

Function

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.

Format

dhcpv6 relay access-limit limit-number vlan vlan-id [ end-vlan-id ]

undo dhcpv6 relay access-limit [ limit-number ] vlan vlan-id [ end-vlan-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.

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.

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 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.

Example

# Configure GE 0/1/0.1 to allow a maximum of 2 DHCPv6 clients to go online through any VLAN in the range 100-200 and to allow a maximum of 1 DHCPv6 client to go online through any other VLANs.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >