157
You can configure multiple authentication destination subnets by executing the
portal auth-network
destination
command. The system supports up to 16 authentication source subnets and destination
subnets.
If both an authentication source subnet and destination subnet are configured on an interface, only
the authentication destination subnet takes effect.
Examples
# Configure a portal authentication destination subnet of 2.2.2.0/24 on GigabitEthernet 3/0/1, so that
only users accessing subnet 2.2.2.0/24 trigger portal authentication on the interface. Users can
access other subnets through the interface without portal authentication.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] portal auth-network destination 2.2.2.0 24
portal delete-user
Use
portal delete-user
to log off portal users.
Syntax
portal delete-user
{
ip-address
|
all
|
interface
interface-type interface-number
}
Views
System view
Default command level
2: System level
Parameters
ip-address
: Logs off the portal user with the specified IPv4 address.
all
: Logs off all portal users.
interface
interface-type interface-number
: Logs off all IPv4 portal users on the specified interface.
Examples
# Log out the portal user whose IP address is 1.1.1.1.
<Sysname> system-view
[Sysname] portal delete-user 1.1.1.1
Related commands
display portal user
portal device-id
Use
portal device-id
to specify the device ID.
Use
undo portal device-id
to restore the default.
Syntax
portal device-id
id-value
undo portal device-id
Default
A device is not configured with a device ID.