The authentication event command grants network access rights to users in different authentication stages.
The undo authentication event command cancels network access rights of users in different authentication stages.
By default, no network access right is granted to users in different authentication stages.
Command for 802.1X authentication:
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:
authentication event { pre-authen | authen-fail | authen-server-down | client-no-response } { vlan vlan-id | user-group group-name }
undo authentication event { pre-authen | authen-fail | authen-server-down | client-no-response }
Command for MAC address authentication:
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:
authentication event { pre-authen | authen-fail | authen-server-down } { vlan vlan-id | user-group group-name }
undo authentication event { pre-authen | authen-fail | authen-server-down }
VLANIF interface view:
authentication event { authen-fail | authen-server-down } user-group group-name
undo authentication event { authen-fail | authen-server-down }
Command for external Portal authentication:
System view:
authentication event { pre-authen | authen-fail | authen-server-down } user-group group-name
undo authentication event { pre-authen | authen-fail | authen-server-down }
VLANIF interface view:
authentication event { authen-fail | authen-server-down } user-group group-name
undo authentication event { authen-fail | authen-server-down }
Command for built-in Portal authentication:
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:
authentication event { pre-authen | authen-fail | authen-server-down } { vlan vlan-id | user-group group-name }
undo authentication event { pre-authen | authen-fail | authen-server-down }
VLANIF interface view:
authentication event { authen-fail | authen-server-down } user-group group-name
undo authentication event { authen-fail | authen-server-down }
Parameter | Description | Value |
---|---|---|
pre-authen |
Specifies the network access rights granted to users before authentication starts. In an 802.1X authentication, when a device receives an ARP or DHCP request packet sent from a user terminal, but not an authentication request packet from an 802.1X client, the device grants the pre-authen right to the user. If only this parameter is specified but the network access rights are not configured for other events, the device grants the pre-authen right to the users failing in authentication. In a MAC address or Portal authentication, if only this parameter is specified but the network access rights are not configured for other events, the device grants the pre-authen right to the users failing in authentication. |
- |
authen-fail |
Specifies the network access rights granted to users when authentication fails. The device grants this right to all users who have failed in authentication. |
- |
authen-server-down |
Specifies the network access rights granted to users when the authentication server does not respond. If both the authen-server-down and authen-fail parameters are specified, the authen-server-down parameter takes effect if the authentication server does not respond. |
- |
client-no-response |
Specifies the network access rights granted to users when the 802.1X client does not respond. If both the client-no-response and authen-fail parameters are specified, the client-no-response parameter takes effect if the 802.1X client does not respond. |
- |
vlan vlan-id |
Specifies a VLAN ID. When this parameter is specified, the user can access only the resources in the VLAN. |
The value is an integer that ranges from 1 to 4094. |
user-group group-name |
Specifies a user group. When this parameter is specified, the user can access the resources defined for the user group. |
The value must be an existing service scheme name. |
System view, VLANIF interface 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
Usage Scenario
To grant different network access rights to users in different stages, you can use this command.
Prerequisites
The 802.1X authentication, MAC address authentication, or Portal authentication has been enabled.
Precautions
This function takes effect only for users who go online after this function is successfully configured.