48
Parameters
ip-address
: Source IP address to be specified for portal packets. This IP address must be a local IP
address, and cannot be 0.0.0.0, 255.255.255.255, a class D address, a class E address, or a loopback
address.
Description
Use the
portal nas-ip
command to configure the source IP address for portal packets to be sent.
Use the
undo portal nas-ip
command to restore the default.
By default, no source IP address is specified, and the IP address of the user access interface will be used
as the source IP address of the portal packets.
Examples
# Configure the source IP address for portal packets to be sent on GigabitEthernet 0/0 as 2.2.2.2.
<Sysname> system-view
[Sysname] interface gigabitethernet0/0
[Sysname-GigabitEthernet0/0] portal nas-ip 2.2.2.2
portal server
Syntax
portal server
server-name
ip
ip-address
[
key
key-string
|
port
port-id
|
url
url-string
] *
undo portal server
server-name
[
key
|
port
|
url
]
View
System view
Default level
2: System level
Parameters
server-name
: Name of the portal server, a case-sensitive string of 1 to 32 characters.
ip-address
: IP address of the portal server.
key-string
: Shared key for communication with the portal server, a case-sensitive string of 1 to 16
characters.
port-id
: Destination port number used when the device sends unsolicited messages to the portal server,
in the range of 1 to 65534. The default is 50100.
url-string
: Uniform resource locator (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 IP address.
Description
Use the
portal server
command to configure a portal server.
Use the
undo portal server
command to remove a portal server, restore the default destination port
number or URL, or delete the shared key.
By default, no portal server is configured.