R3303-HP HSR6800 Routers Security Command Reference

173
Examples
# Configure the device 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 server
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.
Syntax
portal server server-name ip ip-address [ key [ cipher | simple ] key-string | port port-id | server-type
{ cmcc | imc } | url url-string | vpn-instance vpn-instance-name ] *
undo portal server server-name [ key | port | server-type | url | vpn-instance ]
Default
No portal server is configured for Layer 3 portal authentication.
Views
System view
Default command level
2: System level
Parameters
server-name: Specifies a name for the portal server, a case-sensitive string of 1 to 32 characters.
ip ip-address: Specifies the IP address of the portal server. In portal stateful failover environments, HP
recommends specifying the virtual IP address of the VRRP group to which the downlink belongs as the
portal server IP address.
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.
server-type { cmcc | imc }: Specifies the portal server type. The default is imc.
cmcc—CMCC portal server. To use a CMCC portal server, you must also specify a device ID for the
access device by using the portal device-id command.
imc—HP IMC portal server.