The authentication critical-vlan command configures a critical VLAN on an interface.
The undo authentication critical-vlan command deletes a critical VLAN from an interface.
By default, no critical VLAN is configured on an interface.
In the system view:
authentication critical-vlan vlan-id interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
undo authentication critical-vlan [ vlan-id ] interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
In the interface view:
authentication critical-vlan vlan-id
undo authentication critical-vlan [ vlan-id ]
Parameter |
Description |
Value |
---|---|---|
vlan-id | Specifies the VLAN ID of a critical VLAN. |
The value is an integer that ranges from 1 to 4094. |
interface { interface-type interface-number1 [ to interface-number2 ] } |
Specifies the interface type and number.
|
- |
System view, Ethernet interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Port group view
Usage Scenario
A critical VLAN is authorized for users when the authentication server does not respond.
When the access device cannot communicate with the RADIUS server or the RADIUS server fails, the authentication process on the network is interrupted and users cannot pass the authentication. After the critical VLAN function of the device is enabled, the device sets the state flag of the authentication server to Down and adds the users to the critical VLAN. In this way, the users can access resources in the critical VLAN without being authenticated.
Precautions
# In the system view, configure 802.1X authentication for the users using Port address-based access method on GE0/0/1 and set the critical VLAN to VLAN 20.
<HUAWEI> system-view [HUAWEI] vlan batch 20 [HUAWEI] dot1x enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type hybrid [HUAWEI-GigabitEthernet0/0/1] quit [HUAWEI] dot1x enable interface gigabitethernet 0/0/1 [HUAWEI] dot1x port-method port interface gigabitethernet 0/0/1 [HUAWEI] authentication critical-vlan 20 interface gigabitethernet 0/0/1
# In the interface view, enable MAC address authentication on GE0/0/1 and set the critical VLAN to VLAN 20.
<HUAWEI> system-view [HUAWEI] vlan batch 20 [HUAWEI] mac-authen [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type hybrid [HUAWEI-GigabitEthernet0/0/1] mac-authen [HUAWEI-GigabitEthernet0/0/1] authentication critical-vlan 20