Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 4 File Management Commands
3Com Corporation
4-3
Description
Use the bootfile main command to specify the main boot file.
On a router supporting the dual image function (a Flash larger than 8 MB must be
available), three boot files are defined in the system by default: main boot file, backup
boot file, and secure boot file. The system uses them in the following order:
z Main boot file, with the default name being main.bin and file type being M, is the
default file for system boot;
z Backup boot file, with the default name being backup.bin and file type being B, is
the boot file used in case of the boot failure using the main boot file;
z Secure boot file, with the default name being secure.bin and file type being S, is
the boot file used in case of the boot failure using the backup boot file. If the boot
attempts using all these files fail, the system prompts the boot failure.
This command is only available with the routers that support the dual image function.
Related command: dir, bootfile dir, bootfile backup.
Example
# Specify a main boot file.
[3com] bootfile main router.bin
Set main boot file successfully!
# View information on the boot files in the Flash to verify that the main boot file has been
successfully specified.
[3com]bootfile dir
Aviliable boot file(s):
'M' = MAIN, 'B' = BACKUP, 'S' = SECURE
-------------------------------------------------------------
[No.] [Type] [Date] [Time] [Size] [Name]
-------------------------------------------------------------
1 N/A Mar/15/2004 18:09:00 5556068 Main.bin
1 B Mar/15/2004 18:09:00 5556068 Backup.bin
1 S Mar/15/2004 18:09:00 5556068 Secure.bin
1 M Mar/15/2004 18:09:00 5556068 Router.bin
-------------------------------------------------------------
# Specify a main boot file.
[3com] bootfile main cflash:/d020
Set main boot file successfully!
# Display all boot files.
[3com] bootfile dir
Available boot file(s):