How to configure the restrict VLAN function on S series switches

You can configure a restrict VLAN on an interface of a switch, so that a user can still access some network resources (for example, update the virus library) when the user fails authentication. The user who fails authentication is added to the restrict VLAN to access resources in the restrict VLAN. Note that a user fails authentication because the authentication server rejects the user for some reasons, for example, the user enters an incorrect password, but not because the authentication times out or the network is disconnected.
Configure a restrict VLAN on S series switches (except the S1700) as follows:
- Perform the following operations in the system view:
[HUAWEI] vlan batch 20
[HUAWEI] undo authentication unified-mode //Skip this step on switches running versions earlier than V200R005C00.
[HUAWEI] dot1x enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/1] port hybrid untagged vlan 20 //The restrict VLAN takes effect only for hybrid or access interfaces added to the restrict VLAN in untagged mode.
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] dot1x enable interface gigabitethernet 1/0/1
[HUAWEI] dot1x port-method port interface gigabitethernet 1/0/1
[HUAWEI] authentication restrict-vlan 20 interface gigabitethernet 1/0/1

- Perform the following operations in the interface view:
[HUAWEI] vlan batch 20
[HUAWEI] undo authentication unified-mode //Skip this step on switches running versions earlier than V200R005C00.
[HUAWEI] dot1x enable
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/1] port hybrid untagged vlan 20 //The restrict VLAN takes effect only for hybrid or access interfaces added to the restrict VLAN in untagged mode.
[HUAWEI-GigabitEthernet1/0/1] dot1x enable
[HUAWEI-GigabitEthernet1/0/1] dot1x port-method port
[HUAWEI-GigabitEthernet1/0/1] authentication restrict-vlan 20

Scroll to top