- Table of Contents
-
- 11-Security Command Reference
- 00-Preface
- 01-AAA Commands
- 02-802.1X Commands
- 03-MAC Authentication Commands
- 04-Portal Commands
- 05 Password Control Commands
- 06-Public Key Commands
- 07-IPsec Commands
- 08-SSH Commands
- 09-Blacklist Commands
- 10-TCP and ICMP Attack Protection Commands
- 11-IP Source Guard Commands
- 12-ARP Attack Protection Commands
- 13-ND Attack Defense Commands
- 14-URPF Commands
- 15-PKI Commands
- 16-SSL Commands
- 17-FIPS Commands
- 18-Attack Detection and Protection Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Portal Commands | 192.72 KB |
display portal connection statistics
display portal server statistics
display portal tcp-cheat statistics
reset portal connection statistics
display portal acl
Syntax
display portal acl { all | dynamic | static } interface interface-type interface-number [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays all portal access control lists (ACLs), including dynamic and static portal ACLs.
dynamic: Displays dynamic portal ACLs—ACLs generated dynamically after a user passes portal authentication.
static: Displays static portal ACLs—ACLs generated through portal related configuration, such as portal-free rule configuration.
interface interface-type interface-number: Displays the ACLs on the specified interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal acl to display the ACLs on a specific interface.
Examples
# Display all ACLs on interface VLAN-interface 4.
<Sysname> display portal acl all interface Vlan-interface 4
IPv4 portal ACL rules on Vlan-interface4:
Rule 0
Inbound interface : all
Type : static
Action : permit
Source:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
MAC : 0000-0000-0000
Interface : any
VLAN : 4
Protocol : 0
Destination:
IP : 192.168.111.1
Mask : 255.255.255.255
Port : any
Procotol : 0
Rule 1
Inbound interface : all
Type : dynamic
Action : permit
Source:
IP : 14.14.2.250
Mask : 255.255.255.255
MAC : 0000-0000-0000
Port : any
Interface : any
VLAN : 4
Protocol : 0
Destination:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
Procotol : 0
Author ACL:
Number : NONE
Rule 2
Inbound interface : all
Type : static
Action : redirect
Source:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
MAC : 0000-0000-0000
Interface : any
VLAN : 4
Protocol : 6
Destination:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
Procotol : 0
Rule 3
Inbound interface : all
Type : static
Action : deny
Source:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
MAC : 0000-0000-0000
Interface : any
VLAN : 4
Protocol : 0
Destination:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
Procotol : 0
IPv6 portal ACL rules on Vlan-interface2:
Rule 0
Inbound interface : all
Type : static
Action : permit
Source:
IP : ::
Prefix length : 0
MAC : 0000-0000-0000
Interface : any
VLAN : 8
Protocol : 0
Destination:
IP : 2::2
Prefix length : 128
Rule 1
Inbound interface : all
Type : static
Action : redirect
Source:
IP : ::
Prefix length : 0
MAC : 0000-0000-0000
Interface : any
VLAN : 8
Protocol : 6
Destination:
IP : ::
Prefix length : 0
Rule 2
Inbound interface : GigabitEthernet3/1/1
Type : static
Action : deny
Source:
IP : ::
Prefix length : 0
MAC : 0000-0000-0000
Interface : GigabitEthernet3/1/1
VLAN : 8
Protocol : 0
Destination:
IP : ::
Prefix length : 0
Table 1 Command output
Field |
Description |
Rule |
Sequence number of the portal ACL, which is numbered from 0 in ascending order. |
Inbound interface |
Interface to which the portal ACL is bound. |
Type |
Type of the portal ACL. |
Action |
Match action in the portal ACL. |
Source |
Source information in the portal ACL. |
IP |
Source IP address. |
Mask |
Subnet mask of the source IP address. |
Prefix length |
Source IPv6 address prefix. |
Port |
Source transport layer port number. |
MAC |
Source MAC address. |
Interface |
Source interface. |
VLAN |
Source VLAN. |
Protocol |
Protocol type. |
Destination |
Destination information in the portal ACL. |
IP |
Destination IP address. |
Mask |
Subnet mask of the destination IP address. |
Prefix length |
Destination IPv6 address prefix. |
Author ACL |
Authorization ACL information. It is displayed only when the value of the Type field is dynamic. |
Number |
Authorization ACL number assigned by the RADIUS server. None indicates that the server did not assign any ACL. |
display portal connection statistics
Syntax
display portal connection statistics { all | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Specifies all interfaces.
interface interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal connection statistics to display portal connection statistics on a specific interface or all interfaces.
Examples
# Display portal connection statistics on interface VLAN-interface 100.
<Sysname> display portal connection statistics interface Vlan-interface 100
---------------Interface: Vlan-interface100-----------------------
User state statistics:
State-Name User-Num
VOID 0
DISCOVERED 0
WAIT_AUTHEN_ACK 0
WAIT_AUTHOR_ACK 0
WAIT_LOGIN_ACK 0
WAIT_ACL_ACK 0
WAIT_NEW_IP 0
WAIT_USERIPCHANGE_ACK 0
ONLINE 1
WAIT_LOGOUT_ACK 0
WAIT_LEAVING_ACK 0
Message statistics:
Msg-Name Total Err Discard
MSG_AUTHEN_ACK 3 0 0
MSG_AUTHOR_ACK 3 0 0
MSG_LOGIN_ACK 3 0 0
MSG_LOGOUT_ACK 2 0 0
MSG_LEAVING_ACK 0 0 0
MSG_CUT_REQ 0 0 0
MSG_AUTH_REQ 3 0 0
MSG_LOGIN_REQ 3 0 0
MSG_LOGOUT_REQ 2 0 0
MSG_LEAVING_REQ 0 0 0
MSG_ARPPKT 0 0 0
MSG_PORT_REMOVE 0 0 0
MSG_VLAN_REMOVE 0 0 0
MSG_IF_REMOVE 6 0 0
MSG_L3IF_SHUT 0 0 0
MSG_IF_DISPORTAL 0 0 0
MSG_IF_UP 0 0 0
MSG_ACL_RESULT 0 0 0
MSG_AAACUTBKREQ 0 0 0
MSG_CUT_BY_USERINDEX 0 0 0
MSG_CUT_L3IF 0 0 0
MSG_IP_REMOVE 0 0 0
MSG_ALL_REMOVE 1 0 0
MSG_IFIPADDR_CHANGE 0 0 0
MSG_SOCKET_CHANGE 8 0 0
MSG_NOTIFY 0 0 0
MSG_SETPOLICY 0 0 0
MSG_SETPOLICY_RESULT 0 0 0
Table 2 Command output
Field |
Description |
User state statistics |
Statistics on portal users. |
State-Name |
Name of a user state. |
User-Num |
Number of users in a specific state. |
Message statistics |
Statistics on messages. |
Msg-Name |
Message type. |
Total |
Total number of messages of a specific type. |
Err |
Number of erroneous messages of a specific type. |
Discard |
Number of discarded messages of a specific type. |
MSG_AUTHEN_ACK |
Authentication acknowledgment message. |
MSG_AUTHOR_ACK |
Authorization acknowledgment message. |
MSG_LOGIN_ACK |
Accounting acknowledgment message. |
MSG_LOGOUT_ACK |
Accounting-stop acknowledgment message. |
MSG_LEAVING_ACK |
Leaving acknowledgment message. |
MSG_CUT_REQ |
Cut request message. |
MSG_AUTH_REQ |
Authentication request message. |
MSG_LOGIN_REQ |
Accounting request message. |
MSG_LOGOUT_REQ |
Accounting-stop request message. |
MSG_LEAVING_REQ |
Leaving request message. |
MSG_ARPPKT |
ARP message. |
MSG_PORT_REMOVE |
Users-of-a-Layer-2-port-removed message. |
MSG_VLAN_REMOVE |
VLAN user removed message. |
MSG_IF_REMOVE |
Users-removed message, indicating the users on a Layer 3 interface were removed because the Layer 3 interface was removed. |
MSG_IF_SHUT |
Layer 3 interface shutdown message. |
MSG_IF_DISPORTAL |
Portal-disabled-on-interface message. |
MSG_IF_UP |
Layer 3 interface came up message. |
MSG_ACL_RESULT |
ACL deployment failure message. |
MSG_AAACUTBKREQ |
Message that AAA uses to notify portal to delete backup user information. |
MSG_CUT_BY_USERINDEX |
Force-user-offline message. |
MSG_CUT_L3IF |
Users-removed message, indicating the users on a Layer 3 interface were removed because they were logged out. |
MSG_IP_REMOVE |
User-with-an-IP-removed message. |
MSG_ALL_REMOVE |
All-users-removed message. |
MSG_IFIPADDR_CHANGE |
Interface IP address change message. |
MSG_SOCKET_CHANGE |
Socket change message. |
MSG_NOTIFY |
Notification message. |
MSG_SETPOLICY |
Set policy message for assigning security ACL. |
MSG_SETPOLICY_RESULT |
Set policy response message. |
display portal free-rule
Syntax
display portal free-rule [ rule-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
rule-number: Specifies a portal-free rule by its number in the range of 0 to 255.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal free-rule to display information about a specific portal-free rule or all portal-free rules.
Related commands: portal free-rule.
Examples
# Display information about all portal-free rules.
<Sysname> display portal free-rule
Rule-Number 1:
Source:
IP : 2.2.2.0
Mask : 255.255.255.0
Port : any
MAC : 0000-0000-0000
Interface : any
Vlan : 0
Destination:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
Procotol : 0
Rule-Number 2:
Source:
IP : 1::2
Prefix length : 128
MAC : 0000-0000-0000
Interface : any
Vlan : 0
Destination:
IP : 1::
Prefix length : 64
Rule-Number 3:
Source:
IP : 0.0.0.0
Mask : 0.0.0.0
Port : any
MAC : 0000-0000-0000
Interface : any
Vlan : 0
Destination:
Hostname : www.baid.com
Port : any
Protocol : 0
Table 3 Command output
Field |
Description |
Rule-Number |
Number of the portal-free rule. |
Source |
Source information in the portal-free rule. |
IP |
Source IP address. |
Prefix length |
Source IPv6 address prefix. |
Mask |
Subnet mask of the source IPv4 address. |
MAC |
Source MAC address. |
Port |
Source transport layer port number. |
Interface |
Source interface. |
Vlan |
Source VLAN. |
Destination |
Destination information in the portal-free rule. |
IP |
Destination IP address. |
Mask |
Subnet mask of the destination IPv4 address. |
Prefix length |
Destination IPv6 address prefix. |
Protocol |
Tranport layer protocol number. |
Hostname |
Domain name. |
display portal interface
Syntax
display portal interface interface-type interface-number [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal interface to display the portal configuration of an interface.
Examples
# Display the portal configuration of interface VLAN-interface 100.
<Sysname> display portal interface Vlan-interface 100
Portal configuration of Vlan-interface100
IPv4:
Status: Portal running
Portal server: servername
Authentication type: Layer3
Authentication domain: my-domain
Authentication network:
address : 1.1.1.1 mask : 255.255.0.0
Portal configuration of Vlan-interface100
IPv6:
Status: Portal running
Portal server: 244
Authentication type: Direct
Authentication domain:
Authentication network:
address: 4::4 Prefix length: 128
Table 4 Command output
Field |
Description |
Portal configuration of interface |
Portal configuration on the interface interface. |
IPv4 |
IPv4 portal configuration. |
IPv6 |
IPv6 portal configuration. |
Status |
Status of the portal authentication on the interface: · Portal disabled—Portal authentication is disabled. · Portal enabled—Portal authentication is enabled but is not functioning. · Portal running—Portal authentication is functioning. |
Portal server |
Portal server referenced by the interface. |
Authentication type |
Authentication mode enabled on the interface. |
Authentication domain |
Mandatory authentication domain of the interface. |
Authentication network |
Information of the portal authentication subnet. |
address |
Portal authentication subnet. |
mask |
Mask of the portal authentication IPv4 subnet. |
Prefix length |
Prefix length of the portal authentication IPv6 subnet. |
display portal-roaming
Syntax
display portal-roaming [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal-roaming to display the configuration for portal user roaming.
Related commands: portal-roaming enable.
Examples
# Display the configuration for portal user roaming.
<Sysname> display portal-roaming
Current portal-roaming : enable
portal-roaming after system restart: enable
Notice: Changing portal-roaming will take effect only after system restart.
Table 5 Command output
Field |
Description |
Current portal-roaming |
Whether portal user roaming is enabled: · enable—Portal user roaming is enabled. · disable—Portal user roaming is disabled. |
portal-roaming after system restart |
Status of portal user roaming in the configuration file: · enable—Portal user roaming is enabled in the configuration file. After the system restarts, portal user roaming is enabled. · disable—Portal user roaming is disabled in the configuration file. After the system restarts, portal user roaming is disabled. |
display portal server
Syntax
display portal server [ server-name ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
server-name: Name of a portal server, a case-sensitive string of 1 to 32 characters.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal server to display information about a specific portal server or all portal servers.
Related commands: portal server.
Examples
# Display information about portal server aaa.
<Sysname> display portal server aaa
Portal server:
1)aaa:
IP : 192.168.0.111
VPN instance : vpn1
Port : 50100
Key : ******
URL : http://192.168.0.111
Status : Up
Table 6 Command output
Field |
Description |
1) |
Number of the portal server. |
aaa |
Name of the portal server. |
VPN instance |
For an IPv4 portal server, this field displays the MPLS L3VPN to which the portal server belongs. For an IPv6 portal server, this field is not displayed. |
IP |
IP address of the portal server. |
Port |
Listening port on the portal server. |
Key |
Shared key for exchanges between the access device and portal server. · ****** is displayed if a key is configured. · Not configured is displayed if no key is configured. |
URL |
Address the packets are to be redirected to. Not configured is displayed if no address is configured. |
Status |
Current status of the portal server. Possible values include: · N/A—The server is not referenced on any interface, or the server detection function is not enabled. The reachability of the portal server is unknown. · Up—The portal server is referenced on an interface and the portal server detection function is enabled, and the portal server is reachable. · Down—The portal server is referenced on an interface and the portal server detection function is enabled, but the portal server is unreachable. This field is not displayed for IPv6 portal servers, because IPv6 portal servers do not support the portal server detection function. |
display portal server statistics
Syntax
display portal server statistics { all | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Specifies all interfaces.
interface interface-type interface-number: Specifies an interface by its type and name.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal server statistics to display portal server statistics on a specific interface or all interfaces.
With the all keyword specified, the command displays portal server statistics by interface and therefore statistics about a portal server referenced by more than one interface might be displayed multiple times.
Examples
# Display portal server statistics on VLAN-interface 100.
<Sysname> display portal server statistics interface Vlan-interface 100
---------------Interface: Vlan-interface100----------------------
Server name: st
Invalid packets: 0
Pkt-Name Total Discard Checkerr
REQ_CHALLENGE 3 0 0
ACK_CHALLENGE 3 0 0
REQ_AUTH 3 0 0
ACK_AUTH 3 0 0
REQ_LOGOUT 1 0 0
ACK_LOGOUT 1 0 0
AFF_ACK_AUTH 3 0 0
NTF_LOGOUT 1 0 0
REQ_INFO 6 0 0
ACK_INFO 6 0 0
NTF_USERDISCOVER 0 0 0
NTF_USERIPCHANGE 0 0 0
AFF_NTF_USERIPCHANGE 0 0 0
ACK_NTF_LOGOUT 1 0 0
NTF_USERSYNC 2 0 0
ACK_NTF_USERSYNC 0 0 0
NTF_CHALLENGE 0 0 0
NTF_USER_NOTIFY 0 0 0
AFF_NTF_USER_NOTIFY 0 0 0
Table 7 Command output
Field |
Description |
Interface |
Interface referencing the portal server. |
Server name |
Name of the portal server. |
Invalid packets |
Number of invalid packets. |
Pkt-Name |
Packet type. |
Total |
Total number of packets. |
Discard |
Number of discarded packets. |
Checkerr |
Number of erroneous packets. |
REQ_CHALLENGE |
Challenge request message the portal server sends to the access device. |
ACK_CHALLENGE |
Challenge acknowledgment message the access device sends to the portal server. |
REQ_AUTH |
Authentication request message the portal server sends to the access device. |
ACK_AUTH |
Authentication acknowledgment message the access device sends to the portal server. |
REQ_LOGOUT |
Logout request message the portal server sends to the access device. |
ACK_LOGOUT |
Logout acknowledgment message the access device sends to the portal server. |
AFF_ACK_AUTH |
Affirmation message the portal server sends to the access device after receiving an authentication acknowledgement message. |
NTF_LOGOUT |
Forced logout notification message the access device sends to the portal server. |
REQ_INFO |
Information request message. |
ACK_INFO |
Information acknowledgment message. |
NTF_USERDISCOVER |
User discovery notification message the portal server sends to the access device. |
NTF_USERIPCHANGE |
User IP change notification message the access device sends to the portal server. |
AFF_NTF_USERIPCHANGE |
User IP change success notification message the portal server sends to the access device. |
ACK_NTF_LOGOUT |
Forced logout acknowledgment message from the portal server. |
NTF_USERSYNC |
User synchronization packet the access device received from the portal server. |
ACK_NTF_USERSYNC |
User synchronization acknowledgment packet the access device sent to the portal server. |
NTF_CHALLENGE |
Challenge request the access device sent to the portal server. |
NTF_USER_NOTIFY |
User information notification message the access device sent to the portal server. |
AFF_NTF_USER_NOTIFY |
NTF_USER_NOTIFY acknowledgment message the access device sent to the portal server. |
display portal tcp-cheat statistics
Syntax
display portal tcp-cheat statistics [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal tcp-cheat statistics to display TCP spoofing statistics.
Examples
# Display TCP spoofing statistics.
<Sysname> display portal tcp-cheat statistics
TCP Cheat Statistic:
Total Opens: 0
Resets Connections: 0
Current Opens: 0
Packets Received: 0
Packets Sent: 0
Packets Retransmitted: 0
Packets Dropped: 0
HTTP Packets Sent: 0
Connection State:
SYN_RECVD: 0
ESTABLISHED: 0
CLOSE_WAIT: 0
LAST_ACK: 0
FIN_WAIT_1: 0
FIN_WAIT_2: 0
CLOSING: 0
Table 8 Command output
Field |
Description |
TCP Cheat Statistic |
TCP spoofing statistics. |
Total Opens |
Total number of opened connections. |
Resets Connections |
Number of connections reset through RST packets. |
Current Opens |
Number of connections being set up. |
Packets Received |
Number of received packets. |
Packets Sent |
Number of sent packets. |
Packets Retransmitted |
Number of retransmitted packets. |
Packets Dropped |
Number of dropped packets. |
HTTP Packets Sent |
Number of HTTP packets sent. |
Connection State |
Statistics of connections in various states. |
ESTABLISHED |
Number of connections in ESTABLISHED state. |
CLOSE_WAIT |
Number of connections in CLOSE_WAIT state. |
LAST_ACK |
Number of connections in LAST-ACK state. |
FIN_WAIT_1 |
Number of connections in FIN_WAIT_1 state. |
FIN_WAIT_2 |
Number of connections in FIN_WAIT_2 state. |
CLOSING |
Number of connections in CLOSING state. |
display portal user
Syntax
display portal user { all | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Specifies all interfaces.
interface interface-type interface-number: Specifies an interface by its type and name.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display portal user to display information about portal users on a specific interface or all interfaces.
Examples
# Display information about portal users on all interfaces.
<Sysname> display portal user all
Index:3
State:WAIT_LOGOUT_ACK
SubState:NONE
ACL:NONE
Work-mode:stand-alone
VPN instance:NONE
MAC IP Vlan Interface
---------------------------------------------------------------------
0000-0000-0000 33.2.0.2 3002 Vlan-interface3002
Total 1 user(s) matched, 1 listed.
Table 9 Command output
Field |
Description |
Index |
Index of the portal user. |
State |
Current status of the portal user. |
SubState |
Current sub-status of the portal user. |
ACL |
Authorization ACL of the portal user. |
Work-mode |
User’s working mode: · Primary. · Secondary. · Stand-alone. |
VPN instance |
For an IPv4 portal server, this field indicates the MPLS L3VPN to which the portal server belongs. For an IPv6 portal server, this field is not displayed. |
MAC |
MAC address of the portal user. The switch does not display the real MAC address of the portal user but display 0000-0000-0000 instead. |
IP |
IP address of the portal user. |
Vlan |
VLAN to which the portal user belongs. |
Interface |
Interface to which the portal user is attached. |
Total 1 user(s) matched, 1 listed |
Total number of portal users. |
portal auth-network
Syntax
portal auth-network { ipv4-network-address { mask-length | mask } | ipv6 ipv6-network-address prefix-length }
undo portal auth-network { ipv4-network-address | all | ipv6 ipv6-network-address }
View
Interface view
Default level
2: System level
Parameters
ipv4-network-address: Specifies an authentication source IPv4 subnet.
mask-length: Specifies the subnet mask length in the range of 0 to 32.
mask: Specifies the subnet mask in dotted decimal notation.
ipv6 ipv6-network-address: Specifies an authentication source IPv6 subnet.
prefix-length: Specifies the IPv6 address prefix length in the range of 0 to 128.
all: Specifies all authentication subnets.
Description
Use portal auth-network to configure a portal authentication subnet on an interface.
Use undo portal auth-network to remove a specific portal authentication subnet or all portal authentication subnets.
By default, the portal authentication source IPv4 subnet is 0.0.0.0/0 and source IPv6 subnet is ::/0, meaning that users in all subnets must pass portal authentication.
This command is only applicable for cross-subnet authentication (layer3). The portal authentication source subnet for direct authentication (direct) can be any source IP address, and the portal authentication source subnet for re-DHCP authentication (redhcp) is the one determined by the private IP address of the interface connecting the users.
You can use this command to configure multiple portal authentication subnets on an interface. Only HTTP packets from the subnets can trigger portal authentication on the interface. If an unauthenticated user is not on any authentication subnet, the access device discards all the user's packets that do not match any portal-free rule.
Examples
# Configure a portal authentication source subnet of 10.10.10.0/24 on interface VLAN-interface 2 to allow users from subnet 10.10.10.0/24 to trigger portal authentication.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname–Vlan-interface2] portal auth-network 10.10.10.0 24
portal control-mode
Syntax
portal control-mode { ip-mac | mac }
undo portal control-mode
View
Interface view
Default level
2: System level
Parameters
ip-mac: Specifies the IP+MAC control mode. In this mode, the switch allows a packet to pass the interface if both the MAC and IP addresses of the packet are the same as those of the portal user.
mac: Specifies the MAC control mode. In this mode, the switch allows a packet to pass the interface if the packet's MAC address is the same as the portal user's MAC address.
Description
Use portal control-mode to specify the control mode for portal user packets.
Use undo portal control-mode to restore the default.
By default, the IP+MAC control mode is used.
In MAC control mode, after an IPv4 or IPv6 portal user passes portal authentication on an interface, both IPv4 and IPv6 packets of the user can pass the interface.
In IP+MAC control mode, after an IPv4 portal user passes portal authentication on an interface, only the IPv4 packets of the user can pass the interface. After an IPv6 portal user passes portal authentication on an interface, only the IPv6 packets of the user can pass the interface.
In MAC control mode, the portal authentication mode for IPv4 users and that for IPv6 users must be the same.
In MAC control mode, if only IPv4 portal authentication or IPv6 portal authentication is configured, the device controls traffic on the user access port according to the ACL authorized by the server, regardless of whether the ACL is an IPv4 ACL or an IPv6 ACL. An authorized ACL can be an IPv4 basic ACL, IPv4 advanced ACL, IPv6 basic ACL, or an IPv6 advanced ACL.
Follow these guidelines when you use the command on an interface:
· This function takes effect only to direct and re-DHCP Layer 3 portal authentication. In cross-subnet Layer 3 authentication mode, this function is configurable but does not take effect.
· After portal authentication is enabled on the interface, you cannot change the control mode for portal user packets.
Related commands: portal server method.
Examples
# Specify the control mode as MAC for portal user packets.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] portal control-mode mac
portal delete-user
Syntax
portal delete-user { ipv4-address | all | interface interface-type interface-number | ipv6 ipv6-address }
View
System view
Default level
2: System level
Parameters
ipv4-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 and IPv6 portal users on the specified interface.
ipv6 ipv6-address: Logs off the portal user with the specified IPv6 address.
Description
Use portal delete-user to log off portal users.
Related commands: display portal user.
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
portal domain
Syntax
portal domain [ ipv6 ] domain-name
undo portal domain [ ipv6 ]
View
Interface view
Default level
2: System level
Parameters
ipv6: Specifies IPv6 portal users. If you do not specify the ipv6 keyword, the command is for IPv4 portal users.
domain-name: Specifies an ISP domain by its name, a case-insensitive string of 1 to 24 characters. The domain specified by this argument must already exist.
Description
Use portal domain to specify an authentication domain for an interface. Then, the switch will use the authentication domain for authentication, authorization and accounting (AAA) of the portal users on the interface.
Use undo portal domain to delete the authentication domain specified for portal users.
By default, no authentication domain is specified for portal users on an interface.
Related commands: display portal interface.
Examples
# Configure the authentication domain for IPv4 portal users on VLAN-interface 100 as my-domain.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname–Vlan-interface100] portal domain my-domain
portal free-rule
Syntax
portal free-rule rule-number { destination { any | ip { ipv4-address mask { mask-length | mask } | any | hostname } | ipv6 { ipv6-address prefix-length | any | hostname } } | source { any | [ interface interface-type interface-number | ip { ipv4-address mask { mask-length | mask } | any } | ipv6 { ipv6-address prefix-length | any } | mac mac-address | vlan vlan-id ] * } } *
undo portal free-rule { rule-number | all }
View
System view
Default level
2: System level
Parameters
rule-number: Specifies a number for the portal-free rule, in the range of 0 to 255.
any: Imposes no limitation on the previous keyword.
ip ipv4-address: Specifies an IP address for the portal-free rule.
mask { mask-length | mask }: Specifies a mask or mask length for the IP address. The mask argument is a subnet mask in dotted decimal notation. The mask-length argument is a subnet mask length, an integer in the range of 0 to 32.
ipv6 ipv6-address: Specifies an IPv6 address for the portal-free rule.
prefix-length: Specifies the prefix length of the IPv6 address, in the range of 1 to 128.
interface interface-type interface-number: Specifies a source interface.
vlan vlan-id: Specifies a source VLAN ID.
all: Specifies all portal-free rules.
hostname: Specifies a domain name, a case-insensitive string of 1 to 255 characters. Users can access the specified domain name before authentication.
Description
Use portal free-rule to configure a portal-free rule and specify the source filtering condition, destination filtering condition, or both.
Use undo portal free-rule to remove a specific portal-free rule or all portal-free rules.
If you specify both a VLAN and an interface in a portal-free rule, the interface must belong to the VLAN. Otherwise, the rule does not take effect.
You cannot configure a portal-free rule to have the same filtering criteria as that of an existing one. When attempted, the system prompts that the rule already exists.
No matter whether portal authentication is enabled on an interface, you can only add or remove a portal-free rule, rather than modifying it.
A Layer 2 interface in an aggregation group cannot be specified as the source interface of a portal-free rule, and the source interface of a portal-free rule cannot be added to an aggregation group.
Related commands: display portal free-rule.
Examples
# Configure a portal-free rule, allowing any packet whose source IP address is 10.10.10.1/24 to bypass portal authentication.
<Sysname> system-view
[Sysname] portal free-rule 15 source ip 10.10.10.1 mask 24 destination ip any
portal max-user
Syntax
portal max-user max-number
undo portal max-user
View
System view
Default level
2: System level
Parameters
max-number: Maximum number of online portal users allowed in the system. The value range is 1 to 32768 when portal user roaming is disabled and 1 to 8000 when portal user roaming is enabled.
Description
Use portal max-user to set the maximum number of online portal users allowed in the system.
Use undo portal max-user to restore the default.
By default, the maximum number of portal users allowed is 32768 when portal user roaming is disabled and is 8000 when portal user roaming is enabled.
If the maximum number of portal users specified in the command is less than that of the current online portal users, the command can be executed successfully and will not impact the online portal users, but the system will not allow new portal users to log in until the number drops down below the limit.
Examples
# Set the maximum number of portal users allowed in the system to 100.
<Sysname> system-view
[Sysname] portal max-user 100
portal nas-ip
Syntax
portal nas-ip { ipv4-address | ipv6 ipv6-address }
undo portal nas-ip [ ipv6 ]
View
Interface view
Default level
2: System level
Parameters
ipv4-address: Specifies a source IPv4 address for outgoing portal packets. This IP address must be a local IP address, but it cannot be 0.0.0.0, 255.255.255.255, a class D address, a class E address, or a loopback address.
ipv6 ipv6-address: Specifies a source IPv6 address for outgoing portal packets. This IPv6 address must be a local IPv6 address, but it cannot be a multicast address, an all 0 address, or a link-local address.
Description
Use portal nas-ip to configure an interface to use a specific source IP address for outgoing portal packets.
Use undo portal nas-ip to delete the specified source IP address. If you do not specify the ipv6 keyword, this command deletes the specified source IPv4 address.
By default, no source IP address is specified, and the IP address of the user access interface is used as the source IP address of the outgoing portal packets.
Examples
# Configure the source IPv4 address for portal packets to be sent on VLAN-interface 5 as 2.2.2.2.
<Sysname> system-view
[Sysname] interface vlan-interface 5
[Sysname-Vlan-interface5] portal nas-ip 2.2.2.2
portal nas-port-type
Syntax
portal nas-port-type { ethernet | wireless }
undo portal nas-port-type
View
Interface view
Default level
2: System level
Parameters
ethernet: Specifies the access port type as Ethernet, which corresponds to code 15.
wireless: Specifies the access port type as IEEE 802.11 standard wireless interface, which corresponds to code 19. This keyword is usually specified on an interface for wireless portal users, making sure the NAS-Port-Type value delivered by the access device to the RADIUS server is wireless.
Description
Use portal nas-port-type to specify the access port type (indicated by the NAS-Port-Type value) on the current interface. The specified NAS-Port-Type value will be carried in the RADIUS requests sent from the switch to the RADIUS server.
Use undo portal nas-port-type to restore the default.
By default, the access port type of an interface is not specified, and the NAS-Port-Type value carried in RADIUS requests is the user access port type obtained by the access device.
Examples
# Specify the NAS-Port-Type value of VLAN-interface 2 as IEEE 802.11 standard wireless interface.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] portal nas-port-type wireless
portal redirect-url
Syntax
portal redirect-url url-string [ wait-time period ]
undo portal redirect-url
View
System view
Default level
2: System level
Parameters
url-string: Automatic redirection URL for authenticated portal users, a string of 1 to 127 characters. It must start with http:// or https:// and must be a fully qualified URL.
wait-time period: Time that the device must wait before redirecting a user passing portal authentication to the automatic redirection URL. The value range is 1 to 90 seconds, and the default value is 5 seconds. The switch does not support the wait-time period option.
Description
Use portal redirect-url to specify an automatic redirection URL for authenticated portal users.
Use undo portal redirect-url to restore the default.
By default, a user authenticated is redirected to the URL the user entered in the address bar before portal authentication.
With Layer 3 portal authentication, this feature requires the cooperation of an IMC server that supports the page autoredirection function.
Examples
# Configure the switch to redirect a portal user to http://www.testpt.cn after the user passes portal authentication.
<Sysname> system-view
[Sysname] portal redirect-url http://www.testpt.cn
portal-roaming enable
Syntax
portal-roaming enable
undo portal-roaming enable
View
System view
Default level
3: Manage level
Description
Use portal-roaming enable to enable the portal user roaming function.
Use undo portal-roaming enable to disable the function.
By default, portal user roaming is enabled.
After configuring this function, you must save the configuration and then restart the device to validate the configuration.
Examples
# Disable portal user roaming.
<Sysname> system-view
[Sysname] undo portal-roaming enable
To validate the setting, save the configuration and reboot the system.
portal server
Syntax
portal server server-name { ip ipv4-address [ key [ cipher | simple ] key-string | port port-id | url url-string | vpn-instance vpn-instance-name ] * | ipv6 ipv6-address [ key key-string | port port-id | url url-string ] * }
undo portal server server-name [ key | port | url | vpn-instance ]
View
System view
Default level
2: System level
Parameters
server-name: Specifies the name of the portal server, a case-sensitive string of 1 to 32 characters.
ip ipv4-address: Specifies the IPv4 address of a portal server.
ipv6 ipv6-address: Specifies the IPv6 address of a portal server.
key: Specifies a shared key for communication with the portal server. Portal packets exchanged between the access device and the portal server carry an authenticator, which is generated with the shared key. The receiver uses the authenticator to check the correctness of the received portal packets.
cipher: Sets a ciphertext shared key.
simple : Sets a plaintext shared key.
key-string: Specifies the shared key. This argument is case sensitive. If simple is specified, it must be a string of 1 to 16 characters. If cipher is specified, it must be a ciphertext string of 1 to 53 characters. If neither simple nor cipher is specified, you set a plaintext shared key.
port port-id: Specifies the destination port number used when the device sends an unsolicited message to the portal server, in the range of 1 to 65534. The default is 50100.
url url-string: Specifies the URL to which HTTP packets are to be redirected. The default URL is in the http://ip-address format, where ip-address is the IP address of the portal server. You can also specify the domain name of the portal server, in which case you must use the portal free-rule command to configure the IP address of the DNS server as a portal authentication-free destination IP address.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the portal server belongs. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the portal server is on the public network, do not specify this option.
Description
Use portal server to configure a portal server for Layer 3 portal authentication.
Use undo portal server to remove a portal server, restore the default destination port and default URL address, or delete the shared key or the VPN instance configuration.
By default, no portal server is configured for Layer 3 portal authentication.
If the specified portal server exists and no user is on the interfaces referencing the portal server, using the undo portal server server-name command removes the specified portal server, and if keyword port or url is also provided, the command will restore the destination port number or URL address to the default.
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 first remove the portal configuration on the interface by 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 [ server server-name ]
View
Interface view
Default level
2: System level
Parameters
server-name: Specifies the name of a portal server, a case-sensitive string of 1 to 32 characters.
method: Specifies the authentication mode to be used.
direct: Direct authentication.
layer3: Cross-subnet authentication.
redhcp: Re-DHCP authentication.
Description
Use portal server method to enable Layer 3 portal authentication on an interface, and specify the portal server and the authentication mode to be used.
Use undo portal to disable the specified portal server or all portal servers on an interface.
By default, Layer 3 portal authentication is disabled on an interface.
The specified portal server must exist.
IPv6 portal authentication does not support the re-DHCP authentication mode.
You can enable both an IPv4 portal server and an IPv6 portal server for Layer 3 portal authentication on an interface, but you cannot enable two IPv4 or two IPv6 portal servers on the interface.
If you do not specify a portal server in the undo portal command, the command removes all Layer 3 portal authentication configurations on the interface.
Related commands: display portal server.
Examples
# Enable Layer 3 portal authentication on interface VLAN-interface 100, referencing portal server pts and setting the authentication mode to layer3.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname–Vlan-interface100] portal server pts method layer3
portal server server-detect
Syntax
portal server server-name server-detect method { http | portal-heartbeat } * action { log | permit-all | trap } * [ interval interval ] [ retry retries ]
undo portal server server-name server-detect
View
System view
Default level
2: System level
Parameters
server-name: Name of a portal server, a case-sensitive string of 1 to 32 characters. The specified portal server must have existed.
server-detect method { http | portal-heartbeat }: Specifies the portal server detection method. Two detection methods are available:
· http: Probes HTTP connections. In this method, the switch (the access device) periodically sends TCP connection requests to the HTTP service port of the portal servers enabled on its interfaces. If the TCP connection with a portal server can be established, the access device considers that the HTTP service of the portal server is open and the portal server is reachable—the detection succeeds. If the TCP connection cannot be established, the access device considers that the detection fails—the portal server is unreachable. If a portal server does not support the portal server heartbeat function, you can configure the switch to use the HTTP probe method to detect the reachability of the portal server.
· portal-heartbeat: Probes portal heartbeat packets. Portal servers periodically send portal heartbeat packets to the access devices. If the access device receives a portal heartbeat packet from a portal server within the specified interval, the access device considers that the probe succeeds and the portal server is reachable; otherwise, it considers that the probe fails and the portal server is unreachable. This method is effective on only the portal servers that support the portal heartbeat function. Only the IMC portal server supports this function. To implement detection with this method, you also need to configure the portal server heartbeat function on the IMC portal server and make sure the server heartbeat interval configured on the portal server is shorter than or equal to the probe interval configured on the switch.
action { log | permit-all | trap }: Specifies the actions to be taken when the status of a portal server changes. The following actions are available:
· log: Specifies the action as sending a log message. When the status (reachable/unreachable) of a portal server changes, the access device sends a log message. The log message contains the portal server name and the current state and original state of the portal server.
· permit-all: Specifies the action as disabling portal authentication—enabling portal authentication bypass. When the access device detects that a portal server is unreachable, it disables portal authentication on the interface referencing the portal server, allowing all portal users on this interface to access network resources. When the access device receives the portal server heartbeat packets or authentication packets (such as login requests and logout requests), it re-enables the portal authentication function.
· trap: Specifies the action as sending a trap message. When the status (reachable/unreachable) of a portal server changes, the access device sends a trap message to the network management server (NMS). Trap message contains the portal server name and the current state of the portal server.
interval interval: Interval at which probe attempts are made. The value range for the interval argument is 20 to 600 seconds, and the default value is 20 seconds.
retry retries: Maximum number of probe attempts. The value range for the retries argument is 1 to 5 and the default value is 3. If the number of consecutive, failed probes reaches this value, the access device considers that the portal server is unreachable.
Description
Use portal server server-detect to configure portal server detection, including the detection method, action, probe interval, and maximum number of probe attempts. With this function configured, the switch checks the status of the specified server periodically and takes the specified actions when the server status changes.
Use undo portal server server-detect to cancel the detection of the specified portal server.
By default, the portal server detection function is not configured.
You can specify one or more detection methods and the actions to be taken.
If both detection methods are specified, a portal server will be regarded as unreachable as long as one detection method fails, and an unreachable portal server will be regarded as recovered only when both detection methods succeed.
If multiple actions are specified, the system will execute all the specified actions when the status of a portal server changes.
Deleting a portal server on the switch will delete the detection function for the portal server.
If you configure the detection function for a portal server multiple times, the most recent configuration takes effect. If you do not specify an optional parameter, the default setting of the parameter will be used.
The portal server detection function takes effect only when the portal server is referenced on an interface.
Authentication-related packets from a portal server, such as logon requests and logoff requests, have the same effect as the portal heartbeat packets for the portal server detection function.
Related command: display portal server.
Examples
# Configure the switch to detect portal server pts:
· Specifying both the HTTP probe and portal heartbeat probe methods
· Setting the probe interval to 600 seconds
· Specifying the switch to send a server unreachable trap message, send a log message and disable portal authentication to permit unauthenticated portal users, if two consecutive probes fail.
<Sysname> system-view
[Sysname] portal server pts server-detect method http portal-heartbeat action log permit-all trap interval 600 retry 2
portal server user-sync
Syntax
portal server server-name user-sync [ interval interval ] [ retry retries ]
undo portal server server-name user-sync
View
System view
Default level
2: System level
Parameters
server-name: Name of a portal server, a case-sensitive string of 1 to 32 characters. The specified portal server must have existed.
user-sync: Enables the portal user synchronization function.
interval interval: Specifies the interval at which the switch checks the user synchronization packets. The value range for the interval argument is 60 to 3600 seconds, and the default value is 300 seconds.
retry retries: Specifies the maximum number of consecutive failed checks. The value range for the retries argument is 1 to 5 and the default value is 4. If the switch finds that one of its users does not exist in the user synchronization packets from the portal server within N consecutive probe intervals (N = retries), it considers that the user does not exist on the portal server and logs the user off.
Description
Use portal server user-sync to configure portal user information synchronization with a specific portal server. With this function configured, the switch periodically checks and responds to the user synchronization packet received from the specified portal server, so as to keep the consistency of the online user information on the switch and the portal server.
Use undo portal server user-sync to cancel the portal user information synchronization configuration with the specified portal server.
By default, the portal user synchronization function is not configured.
The user information synchronization function requires that a portal server supports the portal user heartbeat function (only the IMC portal server supports portal user heartbeat). To implement the portal user synchronization function, you also need to configure the user heartbeat function on the portal server and make sure the user heartbeat interval configured on the portal server is shorter than or equal to the synchronization probe interval configured on the switch.
Deleting a portal server on the switch will delete the portal user synchronization configuration with the portal server.
If you configure the user synchronization function for a portal server multiple times, the most recent configuration takes effect. If you do not specify an optional parameter, the default setting of the parameter will be used.
For redundant user information on the switch—information of the users considered as nonexistent on the portal server, the switch will delete the information during the (N+1)th probe interval, where N equals to the value of retries configured in the portal server user-sync command.
Examples
# Configure the switch to synchronize portal user information with portal server pts:
· Setting the synchronization probe interval to 600 seconds
· Specifying the switch to log off users if information of the users does not exist in the user synchronization packets sent from the server in two consecutive probe intervals.
<Sysname> system-view
[Sysname] portal server pts user-sync interval 600 retry 2
reset portal connection statistics
Syntax
reset portal connection statistics { all | interface interface-type interface-number }
View
User view
Default level
1: Monitor level
Parameters
all: Specifies all interfaces.
interface interface-type interface-number: Specifies an interface by its type and number.
Description
Use reset portal connection statistics to clear portal connection statistics on a specific interface or all interfaces.
Examples
# Clear portal connection statistics on interface VLAN-interface 100.
<Sysname> reset portal connection statistics interface Vlan-interface 100
reset portal server statistics
Syntax
reset portal server statistics { all | interface interface-type interface-number }
View
User view
Default level
1: Monitor level
Parameters
all: Specifies all interfaces.
interface interface-type interface-number: Specifies an interface by its type and number.
Description
Use reset portal server statistics to clear portal server statistics on a specific interface or all interfaces.
Examples
# Clear portal server statistics on interface VLAN-interface 100.
<Sysname> reset portal server statistics interface Vlan-interface 100
reset portal tcp-cheat statistics
Syntax
reset portal tcp-cheat statistics
View
User view
Default level
1: Monitor level
Parameters
None
Description
Use reset portal tcp-cheat statistics to clear TCP spoofing statistics.
Examples
# Clear TCP spoofing statistics.
<Sysname> reset portal tcp-cheat statistics