This document describes the Boot CONFIG process. It includes the following sections:
What is Boot CONFIG?
How BOOTP Forwarding Works
Using the Trivial File Transfer Protocol (TFTP)
Validating a Configuration Load
Configuring Dumping
Boot CONFIG Commands
What is Boot CONFIG?
The router's memory contains the information that tells the router how to boot and dump. The Boot CONFIG commands allow you to modify this information.
Using Boot CONFIG commands, you can do the following:
Add, modify, or remove entries from the boot and dump configuration database so that you can do an automatic boot without prompts.
Disable or enable network memory dumping and assign a unique name to the dump files so that you can do an automatic dump without prompts.
Transfer configuration information between router memory and remote hosts.
View the current boot and dump configuration database to verify the proper load and gateway information.
Store file images on the Integrated Boot Device (IBD) or the disk.
List the contents of the IBD or disk.
Erase files from the IBD or disk.
Copy files to and from the local router memory and another local router memory or host file system.
Leave the Boot CONFIG command environment and return to the CONFIG process.
* config
Config>
Config> prompt, enter boot.
Config>boot
TFTP Boot/dump configuration
Boot config>
Boot config>add address
Which interface is this address for [0]?1
New address [0.0.0.0]?128.185.123.51
Boot config>add boot-entry
remote host or IBD load name [0.0.0.0]test.ldc
* prompt, Boot config> prompt.
Boot config>exit
Config>
*
Note: If multiple hops are required before reaching the BOOTP server, a BOOTP relay agent receives the packet. See The Router as a BOOTP Relay Agent.
All the BOOTP clients that this server is responsible for
Their associated IP addresses
The location and name of their boot files
IP config> prompt:You can configure multiple servers. Also, if you only know the network number of the server, or if multiple servers reside on the same network segment, you can configure a broadcast address for the server. To configure a broadcast address for the server, enter enable directed-broadcast at theConfig>protocol ip
IP config>add bootp-server 128.185.123.56
IP config> prompt. IP config>enable directed-broadcast
IP config> prompt. IP config>enable bootp
Maximum number of forwarding hops [4]?
Minimum seconds before forwarding [0]?
After accepting a BOOTP request, the router forwards the BOOTP request to each BOOTP server. If there are multiple servers configured for BOOTP, the transmitting server replicates the packet.
To disable BOOTP forwarding, enter disable bootp at the IP config> prompt.
IP config>disable bootp
Store a configuration file from a router to a server
Copy a configuration file from a server to a router
Copy a configuration or load file to an IBD
Boot config> prompt.Note:
The tftp command and the copy command have the same functionality, but the syntax is different.
The client can transfer a copy of the configuration file stored in configuration memory to a TFTP server. Flash is a non-volatile memory storage location for boot PROM updates.
The server is any device, that is a PC, router, or workstation that receives and services TFTP requests. When the router acts as a server, transfers are transparent. Use the ELS subsystem TFTP message log to view the transfer in progress.
A file server or a router is not allowed to copy any file into another router's configuration memory.
To write to the router, use the copy command at the destination local Boot config> prompt.
Boot config> prompt:Boot config>copy
Enter source filename?128.185.210.125:loads/configs/vl-28.cfg
Enter destination filename? CONFIG
COPYing from "128.185.210.125:loads/configs/vl-28.cfg" to "CONFIG"
COPY succeeded
Names for IBD Files
Each file stored on the IBD must have a unique filename. The filename for the IBD can contain the complete pathname in addition to the filename. For example:
The router accepts any printable ASCII character as part of the filename, with two exceptions:test.cfg
or
/usr/loads/test.ldc
The filename cannot begin with a numeric character.
The filename cannot contain an Enter or LF (line feed) character.
| Types of Files | Filename Extensions |
|---|---|
| Configuration | .cfg |
| Load | .exc |
| Load | .ldc |
Boot config> prompt.
For example:Boot config>copy 128.185.210.125:/usr/config/test.cfg ibd/test.cfg
A full load may not fit into one bank of the IBD.
Any load that needs more than one bank for storage writes only to empty, numerically adjacent banks. For example, when storing a load too large for bank 2, the load is continued into bank 3, as long as bank 3 is empty.
If an adjacent bank is unavailable to store a large load, a TFTP Disk Full message appears on the console, the load is not stored, and the IBD remains unchanged. Any portion of the load that was stored in a bank is removed.
In the first method, the router assigns an identifier, called a Magic Number, to each platform type for the image that is archived and the image that is being restored. If the numbers do not match, the transfer is aborted and the message Bad Magic Number appears.
Each type of router has a unique identifier that does not let you load an image from one type of router to another.
In the second method, the hostname for the router that originally archived the image is compared to the hostname for the router that is restoring the image. If the hostnames do not match, the transfer is aborted and the console displays the message:
COPY error -
Got hostname "<hostname>" - is this okay? (Yes or [No]): no
This allows you to bring in the configuration from another router even if the hostname does not match. The configuration needs to be the correct type for your router model.
These directories must reside on a host server.
The boot directories must be globally readable.
The dump directories must be globally writable.
Boot config> prompt:Boot config>add address
Which interface is this address for [0]?1
New address [0.0.0.0]?128.185.123.51
Boot config>add dump-entry
remote host [0.0.0.0]10.1.153.73
via gateway (0.0.0.0 if none) [0.0.0.0]? 128.185.160.3
timeout in seconds [10]?
file name []? c:\dump\techpubs.dmp
Note: You should leave the timeout parameter at its default value of 10. Large values (such as 120 seconds) can prevent dumps from completing.
Boot config>enable dumping
Add
Adds boot/dump parameters to the router's configuration database.
Syntax: add
Interface number of the network interface
IP address
Subnet mask
Config> prompt.
CAUTION:
You must add an address if you want the router to boot or dump over the network.
When you add boot entries, you indicate the local network you wish to use; that is, either the host is directly connected or you specify a gateway. The add address command specifies which interface is attached to that local network for the purposes of booting or dumping. This association may be different from when the router is operational.
Multiple boot entries can use the same IP address (interface).
You must enter the add address command if you are using the add boot-entry, add dump-entry, and load remote commands. If you do not configure the local interface first using add address, when you use load remote, the router tells you the first hop is unreachable.
add address
Which interface is this address for [0]?
New address [0.0.0.0] ? 128.185.1.2
Net mask for this interface [255.255.255.0]?
If the router is booting using software stored in its IBD, then you must specify the IBD loadname as the first boot entry in the configuration. You can configure more than one boot device.
Obtain the loadname using the list ibd command. The loadname is case-sensitive.
If the router is booting using software stored on a TFTP server, you must specify the IP address of the remote TFTP host server.
Note: The TFTP host server can be another router with an IBD.
If the TFTP host server is on a remote network (not directly connected to the booting router), you must specify the IP address of the next hop (router) towards the host server.
add boot-entry
remote host or IBD loadname [0.0.0.0]? 128.185.30.0
via gateway (0.0.0.0 if none) [0.0.0.0]? 0.0.0.0
timeout in seconds [3]?
file name [ ]? /tftpboot/loads/gt.ldc
To see a list of the current boot configuration, enter list boot-entries.
Example:
list boot-entries
1: "loads/test.ldc" on 128.185.210.125 via 10.1.153.29 for 3 secs
2: IBD load "latest-test1.ldc"
If the router has never been configured or is missing its automatic booting configuration information, the router automatically tries to use BOOTP on all LAN interfaces to retrieve its booting information.
During an autoboot, the router tries to use the information provided in the boot entries to retrieve its load file first. If the router cannot retrieve its load file with the information in the boot entries, it then tries to boot using BOOTP.
The interface(s) selected with the add bp-device command depends on the location(s) of the BOOTP server(s) on your network system.
You cannot use BOOTP to boot over directly connected serial interfaces.
add bp-device
Which interface number [0]? 1
add dump-entry
remote host [0.0.0.0]? 128.185.162.30
via gateway (0.0.0.0 if none) [0.0.0.0]? 128.185.160.3
timeout in seconds [10]?
file name []? c:\dump\techpubs.dmp
Change
Modifies entries in the existing address, boot-entry, BOOTP devices, and dump-entry information.
Syntax: change
Address entry number
Interface number of the network interface
IP address
Net mask
Boot config> prompt. To obtain the interface number (Ifc#), enter list interfaces at the Config> prompt.
Example: change address
Change which entry [1]? 1
Which interface is this address for [0]? 1
New address [192.9.1.1]? 128.185.162.1
Net mask for this interface [255.255.255.0]?
Boot entry number
IP address of the remote host
IP address of the first hop router, if any
TFTP retransmission timer value
Boot filename, if different from the current filename
Boot config> prompt.
Example: change boot-entry
change which entry [1]? 1
remote host [18.123.0.16]?
via gateway (0.0.0.0 if none) [0.0.0.0]?
timeout in seconds [3]?
file name [user/lib/gw/gwimage.ldb]?
change bp-device
Change which entry [1]? 2
Which interface is this entry for [1]?
Dump entry number
IP address of the remote host
IP address of the first hop router, if any
TFTP retransmission timer value
Base boot filename, if different from the current filename
Boot config> prompt to see this information.
Example: change dump-entry
change which entry [1]? 1
remote host [18.123.0.16]?
via gateway (0.0.0.0 if none) [0.0.0.0]?
timeout in seconds [3]?
file name [user/lib/gw/gwimage.ldb]? c:\dump\Ollie.dmp
* prompt. copy
Enter source filename?CONFIG
Enter destination filename?IBD/my_gt70.cfg
COPYing from "CONFIG" to "IBD/my_gt70.cfg"
COPY succeeded
|
config
| Configuration memory. |
|
ibd/filename
| Filename on IBD. Include complete pathname. |
|
IPaddressremote path and filename
| Remote file on TFTP host. Include the complete pathname. |
When copying a file to the IBD, the router puts the file into the largest set of contiguous free banks. If no banks are available, the message
COPY error - TFTP Disk Full or IBD full appears on the console.
Copying From a Remote Host
Example: copy
Enter source filename?128.185.110.15:/router/loads/cgt70.cfg
Enter destination filename? ibd/gt70.cfg
copy
Enter source filename? config
Enter destination filename? ibd/gt70.cfg
copy config
destination filename [IBD/VL_1-71(p28).cfg]?
copy ibd/vl-28.cfg
destination filename [CONFIG]?
copy 128.185.110.30:/loads/test.ldc
destination filename [CONFIG]? ibd/test.ldc
Boot config> prompt.
To verify the deletion, enter list addresses.
Example: delete address
delete which entry [1]? 2
Boot config> prompt. The boot-entry number is the first number that appears on each line.
Example: delete boot-entry
delete which entry [1]? 2
delete bp-device
delete which entry [1]? 1
Boot config> prompt.
To verify the deletion, enter list all.
Example: delete dump-entry
delete which entry [1]? 1
Copyright
Supported protocols, features, and data-link types
describe gt70.ldc
Copyright Notice: Copyright 1985, 1986, 1987, 1989 by J. Noel Chiappa
Proprietary Rights Notice: All Right Reserved. This file contains
the valuable properties and trade secrets of J. Noel Chiappa,
embodying substantial creative efforts and confidential information,
ideas, and expressions, no part of which may be reproduced or
transmitted in any form or by any means, electronic, mechanical or
otherwise, including photocopying and recording or in connection with
any information storage and retrieval system without the permission
in writing of J. Noel Chiappa.
Copyright 1986-1996, by PROTEON, Inc.GlobeTrotter 70/72 Bridging Router OpenROUTE(tm) 2.3
Fri Mar 15 16:01:30 1996Packages:
p5730-g GlobeTrotter 70 Internet Connectivity
Internet Protocol - IP
PPP with Multilink, PAP, CHAP
ISDN Line
disable dumping
Boot config> prompt to verify the unique-naming setting. Unique naming is disabled as the default.
Example: disable unique-naming
enable dumping
enable unique-naming
erase test
Erasing bank 5 ...
Banks 1-4 contain ...
Banks 5-7 have been erased
erase 2
Are you sure you want to erase bank 2? (Yes or [No]): yes
Erasing bank 2 ...
Banks 5-7 have been erased
Boot config> prompt and enter exit, you go back to the Config> prompt.
Syntax: exit
Example: exit
Config>
list addresses
Interface addresses:
1: 192.9.1.1 on interface 0, mask 255.255.255.252
2: 192.9.223.39 on interface 5, mask 255.255.255.0
list all
Interface Addresses:
1: 128.185.227.23 on interface 0, mask 255.255.255.0Boot files:
1: "loads/latest-gen.gt70.ldc" on 128.185.210.125 via 128.185.227.15
for 10 ses
2: IBD load "gt70.ldc"BOOTP over interface(s):
Dumping disabled
Unique-naming disabled
Dump to:Banks 1-9 contain load "gt70.ldc" which uses 545421 bytes
Loaded using TFTP over IP
Filename gt70.ldc
Host 128.185.1.11
Banks 10-14 have been erased
list boot-entries
1: /usr/lib/gw/this-dn.ldb on 192.9.1.2 via 0.0.0.0 for 3 secs
2: /usr/lib/gw/this.ldb on 192.9.2.2 via 192.9.1.4 for 3 scs
3: IBD load "test"
list bp-device
BOOTP over interface(s): 0 1
list disk
list dump-entries
1: "dumps/rbx-51.dmp" on 128.185.210.125 via 128.185.123.28 for 3 secs
+ prompt. It displays Loadname of the file
Host server from which the file was loaded
Erased and faulty banks of the IBD appear along with the faulty chips, if necessary
list ibd
Banks 1-9 contain load "gt70.ldc" which uses 545421 bytes
Loaded using TFTP over IP
Filename gt70.ldc
Host 128.185.1.11
Banks 10-14 have been erased
Boot config> prompt is an alternative to typing reload at the * prompt.
Syntax: load
load local
Loadname: gt70.ldc
Are you sure you want to reload the gateway (Yes or No): yes
PROM Load/Dump Program *Revision: 1.20*
Copyright 1985 - 1993 Proteon, Inc. All rights reserved
Host CNX5-29 loading
Loading using IBD Load Image "rbx2-multisna.ldc"
___________________________
Starting at 1040000
Copyright Notices:
Copyright 1984-1996 Proteon, Inc.
Copyright 1984 - 1987, 1989 by J. Noel Chiappa
MOS Operator Control
*
Boot config> prompt and enter the remote host address, remote pathname, first hop address, and TFTP timeout value after the prompts.
load remote
Remote Host Address[0.0.0.0]? 128.185.210.125
Remote Pathname[ ]? /loads/gt70.ldc
First Hop Address[0.0.0.0]? 128.185.208.38
TFTP Timeout Value[3]?
Are you sure you want to reload the gateway(Yes or No): yes
TFTP
Initiates TFTP file transfers between a remote host and the router's non-volatile configuration memory or IBD. Lets you store a file in or retrieve it from a TFTP server or a router with an IBD. This command works like copy but the syntax is different.
The router acts as a TFTP client. The remote host is any device (for example, router, workstation, PC) running IP and acting as a TFTP server node. The router cannot be in Config-only mode.
Typing tftp get and tftp put locks the CONFIG process for the duration of the operation. You can do the following:
Ctrl P Display the * prompt.
Ctrl C Cancel the TFTP operation. Note:
Do not press the reset switch or power off the router while it is performing tftp get. Doing this leaves the destination memory in an inconsistent and invalid state. That is, you get a portion of a configuration or load and it looks like it is valid.
If the TFTP transfer is unsuccessful, a detailed error message appears on the screen. While transferring a file to CONFIG, the following message appears on the screen:TFTP transfer complete, Status: OK
If you are attempting to transfer a file to an IBD and there is no room on the IBD, the following message appears:Updating CONFIG: Do Not Interrupt!
Erase one or more banks to make room.No Free IBD Bank
CAUTION:
Do not reset or power off the router while the updating of the configuration memory is in progress. This can corrupt the data in the configuration memory, forcing you to reconfigure the router.
Syntax: tftp get local filename remote host address path/filename Example:
tftp get
Enter local filename [CONFIG]?
Enter remote host's IP address or name in host table? 128.185.227.58
Enter path/filename of file on remote host []? configs/v1-28.cfg
TFTP transfer complete, status: OK
put
Transfers a file to the server from the router. The server acknowledges the request and the client transfers the file. This cycle continues until the transfer is complete and the following message appears:
To transfer a file into another router's configuration memory or IBD, log into the destination router and enter tftp get. To transfer a router's configuration file into the router's configuration memory, enter tftp get or copy commands at theTFTP transfer complete, Status: OK
Boot config> prompt.
Syntax: tftp put local filename remote host address path/filename
Example: tftp put
Enter local filename [CONFIG]? IBD/GT70.ldc
Enter remote host's IP address or name in host table? 128.185.227.58
Enter path/filename of file on remote host []? gt70.ldc
TFTP transfer complete, status: OK
If you try to put a configuration file on another router's IBD, the result is an access violation.
To cancel a TFTP transaction, press Ctrl C. Enter yes.
Are you sure (Yes or No):yes
The tftp command generates the following error messages: