The authentication guest-vlan command configures a guest VLAN on an interface.
The undo authentication guest-vlan command deletes a guest VLAN from an interface.
By default, no guest VLAN is configured on an interface.
In the system view:
authentication guest-vlan vlan-id interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
undo authentication guest-vlan [ vlan-id ] interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
In the interface view:
authentication guest-vlan vlan-id
undo authentication guest-vlan [ vlan-id ]
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the ID of a guest 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
During 802.1X authentication and MAC address authentication, a guest VLAN allows users to access limited resources without authentication. The device supports the guest VLAN function.
Users in the guest VLAN can access resources in the guest VLAN without authentication but must be authenticated when they access external resources.
The restrict VLAN is for the users who fail the authentication, while the guest VLAN is for the users who are not authenticated.
If only a guest VLAN is configured but no restrict VLAN is configured, the users who fail the authentication are added to the guest VLAN.
Prerequisites
The VLAN to be configured as the guest VLAN must have been created.
802.1X authentication has been enabled globally and on the interface using the dot1x enable command, or MAC address authentication has been enabled globally and on the interface using the mac-authen command.
Precautions
<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 guest-vlan 20 interface gigabitethernet 0/0/1
# In the interface view, enable MAC address authentication on GE0/0/1 and set the guest 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 guest-vlan 20