49
Using the
undo portal server
server-name
command, you remove the specified portal server if the
specified portal server exists and there is no user on the interfaces referencing the portal server.
The configured portal server and its parameters can be removed or modified only when the portal server
is not referenced by an interface. To remove or modify the settings of a portal server that has been
referenced by an interface, you must remove the portal configuration on the interface using the
undo
portal
command.
Related commands:
display portal server
.
Examples
# Configure portal server
pts
, setting the IP address to 192.168.0.111, the key to
portal
, and the
redirection URL to
http://192.168.0.111/portal
.
<Sysname> system-view
[Sysname] portal server pts ip 192.168.0.111 key portal url http://192.168.0.111/portal
portal server method
Syntax
portal server
server-name
method
{
direct
|
layer3
|
redhcp
}
undo portal
View
Interface view
Default level
2: System level
Parameters
server-name
: Name of the portal server, a case-sensitive string of 1 to 32 characters.
method
: Specifies the authentication mode to be used.
direct
: Direct authentication.
layer3
: Layer 3 authentication.
redhcp
: Re-DHCP authentication.
Description
Use the
portal server
command to enable portal authentication on an interface, and specify the portal
server to be referenced and the authentication mode.
Use the
undo portal
command to disable portal authentication on an interface.
By default, portal authentication is disabled on an interface.
Note that the portal server to be referenced must exist.
Related commands:
display portal server
.
Examples
# Enable portal authentication on interface GigabitEthernet 0/0, setting the portal server to
pts
, and the
authentication mode to
direct
.
<Sysname> system-view
[Sysname] interface gigabitethernet0/0
[Sysname-GigabitEthernet0/0] portal server pts method direct