Command:

configure (CLI)


Mode:

Switch> (enable)

Syntax:

configure host file [rcp]

Syntax Description:

host

Variable that specifies the IP address or IP alias of the host.

file

Variable that specifies the name of the configuration file.

rcp

(Optional) Keyword that specifies rcp as file transfer method.

 

Command Description:

Use the configure command to download a configuration file from a host and execute each command in that file.

 

Example:

Refer to the Software Configuration Guide-Catalyst 4000 Family, 2948G, and 2980G Switches for information on how to construct a configuration file to download using the configure command.

The following is a sample configuration file. Each line contains a command, except for the lines that begin with ! or #. On some servers (NT), the TFTP directory might not be /tftpboot.

begin
show time
set ip alias conc7 198.133.219.207
set ip alias montreux 198.133.119.42
set ip alias cres 192.122.174.42
set prompt system5>
set password
# empty string old password

pingpong
pingpong
end
#
 

This example shows how to configure the switch using a configuration file downloaded from a TFTP server:

Console> (enable) configure 192.122.174.42 system5.cfg

Configure using system5.cfg from 192.122.174.42 (y/n) [n]? y

/
Done.  Finished Network Download.  (446 bytes)
>> show time
Wed Nov 11 1998, 17:42:50
>> set ip alias conc7 198.133.219.207
IP alias added.
>> set ip alias montreux 198.133.219.40
IP alias added.
>> set ip alias cres 192.122.174.42
IP alias added.
>> set prompt system5>
>> set password
Enter old password:
Enter new password: pingpong

Retype new password: pingpong

Password changed.


Misconceptions:

None

Related Commands:
show config

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)