No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
assignment

assignment

Function

The assignment command configures the VLAN assignment algorithm in a VLAN pool.

The undo assignment command restores the default VLAN assignment algorithm in a VLAN pool.

By default, the VLAN assignment algorithm is hash in a VLAN pool.

Format

assignment { even | hash }

undo assignment

Parameters

Parameter Description Value
even

Sets the VLAN assignment algorithm to even.

-

hash

Sets the VLAN assignment algorithm to hash.

-

Views

VLAN pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • When the VLAN assignment algorithm is set to even, service VLANs are assigned to users from the VLAN pool based on the order in which users go online. Address pools mapping the service VLANs evenly assign IP addresses to users. If a user goes online many times, it obtains different IP addresses.

  • When the VLAN assignment algorithm is set to hash, VLANs are assigned to users from the VLAN pool based on the hash result of their MAC addresses. As long as the VLANs in the VLAN pool do not change, the users obtain fixed VLAN. A user is preferentially assigned the same IP address when going online at different times.

Precautions

For the even VLAN assignment algorithm, the aging time of IP addresses is set large on the DHCP server. A user is assigned different IP addresses when going online at different times. As a result, a user may occupy many IP addresses, which wastes IP addresses. Additionally, frequent IP address changes may lower user experience.

Configuration Impact

The VLAN assignment algorithm configuration affects only newly connected users, but not those that have been connected to the network.

Example

# Set the VLAN assignment algorithm to even in the VLAN pool test.

<HUAWEI> system-view
[HUAWEI] vlan pool test
[HUAWEI-vlan-pool-test] assignment even
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 113077

Downloads: 83

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next