
# Enter system view.
<Sysname> system-view
# Configure the banner
Welcome
to be displayed when a user logs into the switch through Web.
[Sysname] header login %Welcome%
Assume that a route is available between the user terminal (the PC) and the switch. After the
above-mentioned configuration, if you enter the IP address of the switch in the address bar of the
browser running on the user terminal and press <Enter>, the browser will display the banner page, as
shown in
Figure 2-22
.
Figure 2-22
Banner page displayed when a user logs in to the switch through Web
Click <Continue> to enter user login authentication page. You will enter the main page of the
Web-based network management system if the authentication succeeds.
Enabling/Disabling the WEB Server
Follow these steps to enable/Disable the WEB Server:
To do…
Use the command…
Remarks
Enter system view
—
system-view
Required
Enable the Web server
ip http shutdown
By default, the Web server is
enabled.
Disable the Web server
Required
undo ip http shutdown
To improve security and prevent attack to the unused Sockets, TCP 80 port (which is for HTTP service)
is enabled/disabled after the corresponding configuration.
z
Enabling the Web server (by using the
undo ip http shutdown
command) opens TCP 80 port.
z
Disabling the Web server (by using the
ip http shutdown
command) closes TCP 80 port.
2-34