portal auth-fail vlan

Syntax

portal auth-fail vlan authfail-vlan-id

undo portal auth-fail vlan

View

Layer 2 Ethernet interface view

Default level

2: System level

Parameters

authfail-vlan-id: Specifies the Auth-Fail VLAN ID. After an Auth-Fail VLAN is specified, a client failing portal authentication will be added to the Auth-Fail VLAN.

Description

Use portal auth-fail vlan to specify an Auth-Fail VLAN for portal authentication on the current port.

Use undo portal auth-fail vlan to restore the default setting.

By default, no Auth-Fail VLAN is specified for portal authentication on a port.

The specified VLAN must exist.

To make the Auth-Fail VLAN take effect, you need to enable the MAC VLAN function on the port.

You can specify different Auth-Fail VLANs for portal authentication on different ports. A port can be specified with only one Auth-Fail VLAN for portal authentication.

Examples

# Configure VLAN 5 as the Auth-VLAN of portal authentication on port Ethernet 1/0/1, so that the port will add users failing portal authentication to this VLAN.

<Sysname> system-view
[Sysname] vlan 5
[Sysname-vlan5] quit
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type hybrid
[Sysname-Ethernet1/0/1] mac-vlan enable
[Sysname-Ethernet1/0/1] portal auth-fail vlan 5