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.
Parameter | Description | Value |
---|---|---|
even | Sets the VLAN assignment algorithm to even. |
- |
hash | Sets the VLAN assignment algorithm to hash. |
- |
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.