I. Connecting the router to a console terminal
To set up a local
configuration environment, simply connect the RJ45 connector of the console
cable to the console port on the router, and the DB9 connector to the serial
port on the console terminal, a PC for example, as shown in Figure
3-1.

Figure 3-1 Local configuration through the console port
II. Setting terminal parameters
Follow these steps
to set terminal parameters on the console terminal, a PC that runs Windows XP
for example:
Step 1: Start the PC and select [Start/Programs/Accessories/
Communications/ HyperTerminal].
The HyperTerminal
window displays the Connection Description dialog box, as shown in Figure
3-2.

Figure 3-2 Set up a new connection
Step 2: Enter the
name of the new connection in the Name field and click <OK>. The dialog
box, as shown in Figure
3-3, displays.
Step 3: Select the
serial port to be used from the Connect
Using dropdown menu. The serial port must be the same port connected by
the console cable.

Figure 3-3 Setting the connection port
Step 4: Click <OK>. The Port Settings tab, shown
in Figure
3-4, appears and you can set serial port parameters. Set
the following parameters:
Baud rate = 9600
Databit = 8
Parity check = none
Stopbit = 1
Flow control = none

Figure 3-4 Setting communications parameters
Step 6: Click <OK>. The HyperTerminal dialogue
box appears.
Step 7: Select
Properties.
Step 8: In the Properties
dialog box, select the Settings
tab, as shown in Figure
3-5.
Step 9: Select VT100 or Auto detect in the Emulation dropdown menu.
Step 10: Click
<OK>.

Figure 3-5 Setting the terminal type
The standard flash
size of the router is 16 MB. After the router is powered on, the Boot Rom
program runs first and the following system information appears on the terminal
screen:
Router starts
booting... (V3.12)
Starting at
0x1500000...
********************************************
* *
* H3C Series
Routers Boot ROM, V7.68 *
* *
********************************************
Copyright (c)
2004-2007 by Hangzhou H3C Technologies Co., Ltd.
Testing
memory...OK!
64M bytes
SDRAM
8192k bytes
flash memory
Hardware
Version is MTR 5.0
CPLD Version
is CPLD 1.0
Press Ctrl-B
to enter Boot Menu
Press <Ctrl+B> to enter Boot Menu. Otherwise, the system starts
decompressing software and the following system information appears on the
terminal screen:
System is
self-decompressing.........................
....................OK!
System is
starting...
Starting at
0x10000...
Press
<Enter>. The system displays (if login authentication is not enabled):
<H3C>
This prompt
indicates that the router enters system view, and is ready for configuration.
Start the router. When the information “Press Ctrl-B to enter
Boot Menu” appears on the terminal screen, press <Ctrl+B>.
The system displays:
Please input
Boot Rom password :
Caution:
l
Press <Ctrl+B>
within three seconds after the prompt “Press Ctrl-B to Enter Boot
Menu...?” appears to enter the Boot Menu. Otherwise, the system starts
decompressing the program.
l
If you want to enter the Boot
menu after the system starts decompressing the program, you need to reboot the
router.
Type the correct
password and press <Enter>. (If no Boot Rom password is configured, just
press <Enter>.) The system accesses the Boot Menu:
Boot Menu:
1: Download application program with XMODEM
2: Download application program with NET
3: Start up and ignore configuration
4: Enter debugging environment
5: Boot Rom Operation Menu
6: Do not check the version of the software
7: Exit and reboot
Enter your
choice(1-7):
1)
Download an application program
through XModem. For more information, refer to the
section “3.2.2 Upgrading
Programs through XModem”.
2)
Download an application through
Ethernet. After you select this option, the screen displays this menu:
Net Port
Download Menu:
1: Change Net Parameter
2: Download From Net
3: Exit to Main Menu
Enter your choice(1-3):1
l
Select <1> to change the
parameters for downloading. The following information is displayed:
Change Boot
Parameter:
'.' = clear
field; '-' = go to previous field; ^D = quit
boot
device : fei0
processor
number : 0
host name : 8040
file
name : M8240ram.arj
inet on ethernet (e) : 169.254.10.10
inet on backplane
(b):
host inet (h) : 169.254.10.11
gateway inet (g) :
user (u) : 8040
ftp password
(pw) (blank = use rsh):
flags
(f) : 0x0
target name (tn) :
startup
script (s) :
other
(o) :
You can change the parameter settings
behind the colons (:).
The AR 18-3X allows
you to download programs through both TFTP and FTP. For the procedures, see the
section 3.2.4 "Upgrading
Boot ROM at CLI".
l
After you set the parameters,
select <2> to start downloading.
l
Select <3> to return to
the main menu.
3)
Start up the router with the
initial configuration, ignoring the configuration file.
In case the
password is lost, you can use this option to ignore the existing configuration
and access the router with the initial configuration. Then you can change the
password. To have the router start up with the new configuration file at next
boot, however, you must save the configuration after you change the password.
4)
Enter the debugging environment
Caution:
Upgrade software
only when necessary and with help of engineers. When doing that, make sure that
the Boot Rom software version can work with the version of the adopted
application program.
5)
Enter the Boot Rom submenu
The Boot Rom
submenu is displayed:
Boot Rom Download Menu:
1:
Download Boot Rom with XModem
2:
Download Extended Segment of Boot Rom with XModem
3:
Restore Extended Segment of Boot Rom from FLASH
4:
Backup Extended Segment of Boot Rom to FLASH
5:
Exit to Main Menu
Enter your choice(1-5):
The menu provides
approaches to Boot Rom upgrade, backup, and recovery. See the sections “3.2.2 Upgrading
Programs through XModem” and “3.2.3 Backing
up and Restoring the Extended Segment of the Boot Rom Program” for the procedures.
6)
Ignore the software version of
the extended Boot Rom program segment for backward compatibility. If you fail
to upgrade the software because the system considers that you are using an
“invalid version” even when the correct version is used, you can
use this option to ignore version check. This is a one-time operation, however;
the router checks version again at reboot.
7)
Exit and reboot
When you upgrade
software through XModem, you can do that using the
console port without having to set up another configuration environment.
Step 1: Enter the
Boot menu and press <1> to download an application program using XModem. The following download speeds are available for the
router:
Downloading
application program from serial ...
Please choose
your download speed:
1: 9600 bps
2: 19200 bps
3: 38400 bps
4: 57600 bps
5: 115200 bps
6: Exit and
reboot
Enter your
choice(1-6):
Step 2: Select an
appropriate download speed (for example, 115200 bps by entering <5>). The
following message appears:
Download
speed is 115200 bps. Change the terminal's speed to 115200 bps, and select XModem protocol. Press ENTER key when ready.
Step 3: Change your
terminal’s baud rate to the same baud rate for software downloading
(115200 bps in this example). After that, disconnect the terminal
([Dial-in/Disconnect]), reconnect it ([Dial-in/Dialing]), and press
<Enter> to start downloading. The system displays:
Downloading
... CCCCC
The new baud rate takes effect only after
you reconnect the terminal emulation program.
Step 4: Select
[Transmit/send file] in the terminal window. The following dialog box pops up:

Figure 3-6 Send File dialog box
Step 5: Click
<Browse>. Select the application file to be downloaded and set protocol
to XModem. Click <Send>. The following
interface pops up:

Figure 3-7 Sending file interface
Step 6: After
completing downloading, the system begins writing data to the Flash, and then
displays the following information in the terminal interface, indicating the
completion of the downloading:
Download
completed.
Writing to flash memory...
Please wait,it
needs a long time .Please wait...
####################################################### Writing FLASH Success.
Please use 9600 bps.Press
<ENTER> key to reboot the system.
Restore the speed
of the console terminal to 9600 bps as prompted, disconnect and reconnect the
terminal. The system starts up normally.
II. Upgrading the Boot Rom program
Step 1: Enter the
Boot Menu, and then select <7> to enter the Boot Rom operation sub-menu.
Step 2: Enter
<1> in the Boot Rom operation sub-menu to upgrade the Boot Rom program
using XModem. Several speed options are available for
you. The subsequent steps are the same as those described in “I.
Upgrading
an application program” of this section.
Caution:
You cannot restore the Boot Rom program on
site if you fail to upgrade the entire Boot Rom program. Therefore, you must
not upgrade the entire Boot Rom program unless necessary and with guide of
support engineers.
III. Upgrading the extended segment of the Boot Rom program
Step 1: Enter the
Boot Menu, and then select <7> to enter the Boot Rom operation sub-menu.
Step 2: Select
<2> in the operation sub-menu to upgrade the extended segment of the Boot
Rom program using XModem. Several speed options are
available for you. The subsequent steps are the same as those described in
"I.
Upgrading
an application program” of this section.
Caution:
This upgrade approach is only used to
upgrade a portion of the Boot Rom program, so you can make a second attempt
once errors occur.
I. Backing up the extended segment of the Boot Rom program to the Flash
Follow these steps
to back up the extended segment of the Boot Rom:
Step 1: Enter the
Boot menu, and then select <7> to enter the Boot Rom operation sub-menu.
Step 2: Select
<4> in the sub-menu to copy the current extended segment of the Boot Rom
program to the Flash.
If the backup
attempt is successful, the following message appears:
Writing to FLASH.Please
wait...####
Backuping Boot Rom program to FLASH successed!
Step 3: When the
sub-menu appears again, select <5> to exit and reboot the router.
II. Restoring the extended segment of the Boot Rom program from the
Flash
If faults occur to
the extended segment of the Boot Rom or you upgrade it mistakenly, you can
restore the extended segment of the Boot Rom from the Flash to the Boot Rom by
taking these steps:
Step 1: Enter the
Boot Menu, and then select <7> to enter the Boot Rom operation sub-menu.
Step 2: Select
<3> in the operation sub-menu to restore the extended segment of the Boot
Rom from the Flash.
If the operation is
successful, the system displays:
Writing to Boot Rom.Please wait...######
Restoring Boot Rom program successed!
Step 3: When the
sub-menu appears again, select <5> to exit and reboot the router.
After the router starts normally, you can upgrade and back up
application programs, and backup and restore the configuration at the command
line interface (CLI)
I.
Upgrading Boot ROM Through TFTP
1)
Connect the TFTP server to the
router on which Boot ROM is to be upgraded so that they can communicate with
each other. A TFTP server is a device running the TFTP server program.
2)
Specify the path on the TFTP
server to the folder that contains the Boot ROM upgrade file. That is, ensure
the Boot ROM upgrade file are available in the Base Directory folder, as shown
in Figure
3-8 (For different TFTP server software packages, the
interfaces differ).

Figure 3-8 TFTP server program interface
3)
Configure the router to
download the Boot ROM upgrade file from the TFTP server.
<H3C> tftp
1.1.1.1 get bootromfull
As shown in the above display, 1.1.1.1 is the IP address of the TFTP
server, and bootromfull is the Boot ROM upgrade file.
4)
Execute the following command
on the router to upgrade Boot ROM.
<H3C> system-view
[H3C] upgrade bootrom
full
WARNING: This operation will update the Boot ROM.
It may result in booting failure.
Caution!!! upgrade bootrom [Y/N]?y
Please
wait, it may take a long time
The
upgrade succeeds!
5)
After the upgrade operation is
complete, restart the router so that the upgrade made to the Boot ROM takes
effect. After the router is restarted, you can use the display version command
to display the current Boot ROM version, or directly enter the Boot ROM menu,
so as to verify the upgrade operation.
II.
Upgrading Boot ROM Through FTP
1)
Connect the FTP server to the
router on which Boot ROM is to be upgraded so that they can communicate with
each other. An FTP server is a device running the FTP server program.
2)
Specify the path on the FTP
server to the folder that contains the Boot ROM upgrade file, and set the
username and password. As shown in Figure
3-9, configure the username in the Profile text box and
set a password. Make sure the currently configured path contains the Boot ROM
upgrade file. (For different FTP server software packages, the interfaces
differ).

Figure 3-9 FTP server program interface
3)
Configure the router to
download the Boot ROM upgrade file from the FTP server.
<H3C> ftp 1.1.1.1
Trying 1.1.1.1 ...
Press CTRL+K to abort
Connected to 1.1.1.1.
220 3Com 3CDaemon FTP Server Version 2.0
User(1.1.1.1:(none)):guest
//Enter the username configured on
the FTP server.
331 User name ok, need password
Password:
// Enter the corresponding
password.
230 User logged in//The connection is established successfully.
[ftp] get bootromfull
4)
Execute the following command
on the router to upgrade Boot ROM.
<H3C> system-view
[H3C] upgrade bootrom full
WARNING: This operation will
update the Boot ROM.
It may result in
booting failure.
Caution!!!
upgrade bootrom [Y/N]?y
Please wait, it may take a long time
The upgrade succeeds!
5)
After the upgrade operation is
complete, restart the router so that the upgrade made to the Boot ROM takes
effect. After the router is restarted, you can use the display version command
to display the current Boot ROM version, or directly enter the Boot ROM menu,
so as to verify the upgrade operation.
Upgrading an
application program with net is to download the application program through an
Ethernet interface. In this approach, the router is a client that needs to be
connected to a TFTP or FTP server through one of its fixed Ethernet interfaces.
Caution:
The AR18-3X
series does not provide any TFTP or FTP server program. You need to purchase
and install one by yourself.
Follow these steps to
upgrade an application program through TFTP or FTP:
1)
Start the TFTP or FTP server
Start the TFTP or
FTP server on the PC connected to the Ethernet interface on the router and set
the path to the file that is to be downloaded. For the FTP server, you must
also set username and password.
2)
Enter the Boot Menu and select
<2> to download with NET
3)
In the NET download menu,
select <1> to enter the parameter configuration interface.
l
To upgrade through TFTP, you
need to provide values for these parameters:
file name: name of
the file to be loaded.
inet on ethernet (e): IP address of the
interface used for downloading on the router
host inet (h): IP address of the TFTP server
flags (f): set to 0x80
l
To upgrade through FTP, you
need to provide values for these parameters:
file name: name of
the file to be loaded.
inet on ethernet (e): IP address of the
interface used for downloading on the router
host inet (h): IP address of the FTP server
user (u): username,
same as the one configured on the FTP server
ftp password (pw) (blank = use rsh): password,
same as the one configured on the FTP server
flags (f): set to 0x0
These values are
automatically saved after you configure them.
4)
Press <Enter>. In the NET
downloading menu, select <2>. The following message appears:
boot device : fei
unit
number : 0
processor
number : 0
host
name : 8040
file
name : Q8040.BIN
inet on ethernet (e) : 10.110.27.235
host inet (h) :
10.110.27.231
user (u) : 8040
ftp password
(pw) : 8040
flags
(f) : 0x80
Attached
TCP/IP interface to fei0.
Subnet Mask:
0xfffff800
Attaching network interface lo0... done.
Loading...
NET download completed...
read len =
[04378489]
Please wait,it
needs a long time
##################################################################################
Writing CMWsoftware File Succeeds!
Press <Enter> key to reboot the system
.
Press <Enter>
as prompted to have the router reboot.