Captive Portal Global Commands
Use these commands to configure the captive portal settings that affect the captive portal feature on the switch and all captive portal instances.
For information about user and user group commands in the Captive Portal Configuration mode, see Captive Portal Local User and User Group Commands.
captive-portal
M4250
M4350
Use this command to enter the Captive Portal Configuration mode.
This command lets the CLI enter the Captive Portal configuration mode.
| Format | captive-portal |
| Mode | Global Config |
enable (Captive Portal Config)
M4250
M4350
This command globally enables the captive portal feature on the switch.
| Default | Disable |
| Format | enable |
| Mode | Captive Portal Config |
no enable (Captive Portal Config)
The no enable command disables the captive portal functionality.
| Format | no enable |
| Mode | Captive Portal Config |
http port (Captive Portal Config)
M4250
M4350
This command configures an additional HTTP port. Valid port numbers are in the range of 0-65535, excluding port numbers 80 and 443 which are reserved. The HTTP port default is 0 which denotes no additional port and the default port (80) is used.
| Default | 0 |
| Format | http port port-number |
| Mode | Captive Portal Config |
Command example:
(NETGEAR Switch) (Config-CP) #http port 8080
(NETGEAR Switch) (Config-CP) #no http port
no http port (Captive Portal Config)
This command removes the specified additional HTTP port.
| Format | no http port port-number |
| Mode | Captive Portal Config |
https port (Captive Portal Config)
M4250
M4350
This command configures an additional HTTPS secure port. The HTTPS secure port default is 0 which denotes no additional port and the default port (443) is used. Port number 80 is reserved.
| Default | 0 |
| Format | https port port-number |
| Mode | Captive Portal Config |
| Parameter | Description |
|---|---|
| port-number | Port number in the range of 0-65535. |
Command example:
(NETGEAR Switch) (Config-CP) #https port 60000
(NETGEAR Switch) (Config-CP) #no https port
no https port (Captive Portal Config)
This command sets the HTTPS secure port to the default.
| Format | no https port port-number |
| Mode | Captive Portal Config |
authentication timeout (Captive Portal Config)
M4250
M4350
This command configures the authentication time-out. If the captive portal user does not enter valid credentials within this time limit, the authentication page needs to be served again in order for the client to gain access to the network. The seconds variable is the authentication time-out and is a number in the range of 60-600 seconds.
| Default | 300 |
| Format | authentication timeout seconds |
| Mode | Captive Portal Config |
no authentication timeout (Captive Portal Config)
This command sets the authentication timeout to the default value.
| Format | no authentication timeout |
| Mode | Captive Portal Config |
trapflags (Captive Portal Config)
M4250
M4350
This command enables captive portal SNMP traps. If no parameters are specified, then all traps are enabled. SNMP traps can also be enabled individually by supplying the optional parameters.
The client-auth-failure option allows the SNMP agent to send a trap when a client attempts to authenticate with a captive portal but is unsuccessful.
The client-connect option allows the SNMP agent to send a trap when a client authenticates with and connects to a captive portal.
The client-db-full option allows the SNMP agent to send a trap each time an entry cannot be added to the client database because it is full.
The client-disconnect option allows the SNMP agent to send a trap when a client disconnects from a captive portal.
| Default | Disabled |
| Format | trapflags [client-auth-failure | client-connect | client-db-full | client-disconnect] |
| Mode | Captive Portal Config |
no trapflags (Captive Portal Config)
This command disables all captive portal SNMP traps when no parameters are specified. The optional parameters specify individual traps to disable.
| Format | no trapflags [client-auth-failure | client-connect | client-db-full | client-disconnect] |
| Mode | Captive Portal Config |
snmp-server enable traps captive-portal
M4250
M4350
This command globally enables the captive portal traps. The specific captive portal traps are configured using the trapflags command in Captive Portal Config mode.
| Default | Disable |
| Format | snmp-server enable traps captive-portal |
| Mode | Global Config |
no snmp-server enable traps captive-portal
This command globally disables all the captive portal traps.
| Format | no snmp-server enable traps captive-portal |
| Mode | Global Config |
show captive-portal
M4250
M4350
This command reports status of the captive portal feature.
| Format | show captive-portal |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Administrative Mode | Shows whether the CP is enabled. |
| Operational Status | Indicates whether the CP operational status is enabled or disabled. |
| Disable Reason | If CP is disabled, this field displays the reason, which can be None, Administratively Disabled, No IPv4 Address, or Routing Enabled, but no IPv4 routing interface. |
| Captive Portal IP Address | Shows the IP address that the captive portal feature uses. |
show captive-portal status
M4250
M4350
This command reports status of all captive portal instances in the system.
| Format | show captive-portal status |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Additional HTTP Port | Displays the port number of the additional HTTP port configured for traffic. A value of 0 indicates that only port 80 is configured for HTTP traffic. |
| Additional HTTP Secure Port | Displays the port number of the additional HTTPS secure port. A value of 0 indicates no additional port and the default port (443) is used. |
| Peer Switch Statistics Reporting Interval | Displays the interval at which statistics are reported in the Cluster Controller. The reporting interval is in the range of 0, 15-3600 seconds where 0 disables statistical reporting. |
| Authentication Timeout | Displays the number of seconds to keep the authentication session open with the client. When the timeout expires, the switch disconnects any active TCP or SSL connection with the client. |
| Supported Captive Portals | Shows the number of supported captive portals in the system. |
| Configured Captive Portals | Shows the number of captive portals configured on the switch. |
| Active Captive Portals | Shows the number of captive portal instances that are operationally enabled. |
| Local Supported Users | Shows the number of users that can be added and configured using the local user database. |
| Configured Local Users | Shows the number of users that are configured from the local user database. |
| System Supported Users | Shows the total number of authenticated users that the system can support. |
| Authenticated Users | Shows the number of users currently authenticated to all captive portal instances on this switch. |
Command example:
(NETGEAR Switch) #show captive-portal status
Additional HTTP Port........................... 0
Additional HTTP Secure Port.................... 0
Peer Switch Statistics Reporting Interval...... 120
Authentication Timeout......................... 300
Supported Captive Portals...................... 10
Configured Captive Portals..................... 1
Active Captive Portals......................... 0
Local Supported Users.......................... 128
Configured Local Users......................... 0
System Supported Users......................... 1024
Authenticated Users............................ 0
show captive-portal trapflags
M4250
M4350
This command shows which captive portal SNMP traps are enabled. The show trapflags command shows the global captive portal traps configuration. For more information, see the sample output of show trapflags (M4250 series switch).
| Format | show captive-portal trapflags |
| Mode | Privileged EXEC |
| Term | Description |
|---|---|
| Client Authentication Failure Traps | Shows whether the SNMP agent sends a trap when a client attempts to authenticate with a captive portal but is unsuccessful. |
| Client Connection Traps | Shows whether the SNMP agent sends a trap when a client authenticates with and connects to a captive portal. |
| Client Database Full Traps | Shows whether the SNMP agent sends a trap each time an entry cannot be added to the client database because it is full. |
| Client Disconnection Traps | Shows whether the SNMP agent sends a trap when a client disconnects from a captive portal. |