This topic describes how to load the Web system and create an account of the Web system.
10.1 Overview of Web System
Through the Web system, users can manage and maintain the S2300 in the graphical user interface (GUI).
To facilitates the use and maintenance of the S2300 , Huawei develops the Web system for S2300.
The S2300 is installed with a built-in Web server. Thus, the terminal (such as a PC) connected to the S2300 can access the S2300 through the Web browser.
Figure 10-1 shows the running environment of the Web system.
Figure 10-1 Running environment of the Web System
HTTP Connection
Switch
PC
10.2 Starting Web System
This topic describes how to load the Web system and create an account of the Web system.
10.2.1 Logging In to the S2300 Through the Console Interface
Context
When setting up a local configuration environment through the console interface, you can connect the PC and the S2300 through the Windows HyperTerminal.
Procedure
Step 1 Enable the HyperTerminal on the PC.
Choose Start > All Programs > Accessories > Communications > HyperTerminal to start the HyperTerminal.
Step 2 Set up a new connection.
As shown in Figure 10-2, enter the name of the new connection in the Name text box and choose an icon. Click OK.
Figure 10-2 Setting up a new connection
Step 3 Set the connection port.
After entering the Connect window as shown in Figure 10-3, select a serial port from the Connect drop-down list box according to the port used by the PC or the configuration terminal.
Select COM1 in this case, and click OK.
Figure 10-3 Setting the connection port
Step 4 Set communication parameters.
After entering the COM1 Properties window as shown in Figure 10-4, set the communication parameters according to the description in Table 10-1.
NOTE
In other Windows operating systems, Bits per second may be described as Baud rate; Flow control may be described as Traffic control.
Figure 10-4 Setting communication parameters for the port
Table 10-1 Communication parameters
Parameter Value
Bit per second (Baud rate) 9600
Data bit 8
Parity check None
Stop bit 1
Flow control (Traffic control) None
Step 5 After the HyperTerminal is started, select File Attributes to enter the Connect Properties window as shown in Figure 10-5. Choose the Setting tab, select Auto detect or VT100 from the Emulation drop-down list box. Click OK to complete the setting.
Figure 10-5 Selecting a terminal type
After the preceding steps are complete, press Enter. If the prompt <Quidway> is displayed, it indicates that you have logged in to the S2300. At this time, you can enter the command to configure and manage the S2300.
----End
10.2.2 Setting the Management IP Address of the S2300
This section describes how to configure the management IP address of the S2300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface vlanif interface-number
The view of the interface of the management VLAN is displayed.
Step 3 Run:
ip address ip-address { mask | mask-length } [ sub ]
The IP address of the interface is configured.
----End
10.2.3 Uploading Web Page Files
This section describes how to obtain the Web page files and upload them to the S2300 through FTP.
Prerequisite
To obtain the Web page file of the S2300, log in to http://support.huawei.com, and then choose Software Center > Version Software > Data Communication Product Line > Ethernet Switch > S23&33&53&CX200D Series. Download the software package of the current version. The Web page file is contained in the software package. The file name is Product Name + the Version of Software.web.zip.
Before uploading the Web page file, copy the Web page file to the client from which you log in to the S2300.
Context
NOTE
You can also download Web files through TFTP. In this case, the S2300 functions as the TFTP client, and the terminal that stores the Web files functions as the TFTP server. For details, see 8.5.3 Downloading Files Through TFTP.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ftp server enable
The FTP server is enabled.
Step 3 Run:
aaa
The AAA view is displayed.
Step 4 Run:
local-user user-name password { simple | cipher } password
An FTP client is configured and the password is set to huawei.
Step 5 Run:
local-user user-name ftp-directory directory
The directory is set for the FTP client.
Step 6 Run:
local-user user-name service-type ftp
The service type of an FTP login user is set.
Step 7 Run the following command in the cmd view of the PC:
ftp ip-address
The user name and password are displayed. The PC can log in to the S2300.
C:\>ftp 10.1.1.132 Connected to 10.1.1.132.
220 FTP service ready.
User (10.1.1.132:(none)): client 331 Password required for client.
Password:
230 User logged in.
ftp>
Step 8 Run the following command in the FTP view:
put local-filename
The web.zip file is uploaded from the PC to the S2300.
ftp> put web.zip 200 Port command okay.
150 Opening ASCII mode data connection for web.zip.
226 Transfer complete.
ftp: 251047 bytes sent in 3.36Seconds 74.74Kbytes/sec.
ftp>
----End
10.2.4 Loading a Web Page File
This section describes how to load a Web file.
Context
Before loading the Web page file, upload it to the S2300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
http server load file-name
The Web page file is loaded to the S2300.
----End
10.2.5 Creating a Web Account
Before logging in to the S2300 in Web mode, you need to create a Web account on the S2300.
Context
Before enabling the HTTP server,load the Web Page File to S2300.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
http server enable
The HTTP server is enabled.
Step 3 Run:
aaa
The AAA view is displayed.
Step 4 Run:
local-user user-name password { simple | cipher } password
An HTTP client is configured and the password of the client is set.
NOTE
You are recommended to set the password in the cipher text. Simple user name and password should not be used for the sake of security.
Step 5 Run:
local-user user-name service-type http
The access type of the user named admin is set to HTTP.
Step 6 Run:
quit
Return to the system view.
Step 7 (Optional) Run:
http timeout timeout
The timeout period of an HTTP connection is set.
By default, the timeout period of an HTTP connection is 20 minutes.
----End
10.2.6 Logging In to the Web System
This section describes how to log in to the S2300 in Web mode.
Procedure
Step 1 Open the Web browser on the PC, and then enter the management address of the S2300 in the address bar (the PC and the S2300 have reachable routes to each other). Then, press Enter to display the Login dialog box. As shown in Figure 10-6, enter the pre-set Web user name, password and verify code, and then choice the language.
Figure 10-6 Login
NOTE
If you select Save my password before clicking Login, you do not need to enter the password at next login.
Step 2 Click Login or press enter to display the homepage of the Web system.
You can configure the S2300 after logging in to the Web system. For details on how to configure the S2300 on the Web system, see the Quidway S2300 Series Ethernet Switches Web Network Management System Client Operation Guide.
----End