Gracias, no sé si lo miro bien. En realidad lo que intento es guardar el que está funcionando ahora.
En el enlace que me facilitas veo como restaurar o como cargar el firm. Está muy bien y te agradezco tu respuesta, pero ¿cómo hago copia del que tengo ahora?
ss5660 Invitado
Publicado:
Domingo 11 Noviembre 2007, 10:29
Saving and Loading The Configuration
The router provides the capability to store the current configuration in a binary file on disk. All of the parameters shown in the table in the previous section are stored in the configuration file. The configuration file can then be downloaded to a router to instantly configure it. This allows you to create a specific configuration or "service profile" for one or more end users that can be used to quickly and easily configure their equipment.
There are two ways to save and download a configuration: using the router commands putconfig and getconfig or using standard FTP client put and get commands from a remote system.
When downloading a configuration file to the router, data integrity is verified before programming flash memory. Any non-readable, non-identifiable, or corrupt parameters are ignored and the router will continue to read any further parameters without halting the operation. If a parameter is not successfully parsed, the corresponding parameter value is not modified in the router.
NOTE: During the programming of flash, the router must not be turned off.
If the flash programming is interrupted, the configuration file will be corrupted and it will have to be downloaded again.
Saving/Loading using
Console Commands
The putconfig and getconfig router commands can be executed from a terminal connected directly through the serial port, or from a remote system using TELNET to log into the router. To transfer the configuration file on a serial port terminal, the terminal must be configured with an Xmodem software package. FTP file transfer (over TELNET) requires that you specify the IP address of an FTP server that is reachable over the network. You will have to have a valid user account and password on the FTP server.
NOTE: Do not turn off the unit while the configuration file is being downloaded.
If the unit is turned off during download, it can cause the configuration file to be corrupted and the unit may become inaccessible except through the serial port. To recover from this situation, log in through the serial interface and download a new configuration file.
To save the configuration to a file using the command line interface:
1. From the command line, test to see if the FTP server can be reached by issuing a ping command to the server:
Command-> ping 192.168.2.66
192.168.2.66 is alive
2. Issue the putconfig command specifying the IP address of the FTP server, your username and your password. To ensure the location where the file is stored, enter the entire path name for the file.
Command-> putconfig
Upload method [ ftp xmode ]: FTP
Server IP: 192.168.2.66
User Name: joeuser
Password: ******
Filename: /home/joeuser/system.cfg
When the command prompt returns, it indicates that the file was successfully stored.
To download a configuration file using the command line interface:
1. From the 5600 series router/bridge command line, test to see if the FTP server can be reached by issuing a ping command to the server:
Command-> ping 192.168.2.66
192.168.2.66 is alive
2. Issue the getconfig command specifying the IP address of the FTP server, your username and your password. Enter the entire path name for the file.
Command-> getconfig
Upload method [ ftp xmode ]: FTP
Server IP: 192.168.2.66
User Name: joeuser
Password: ******
Filename: /home/joeuser/system.cfg
3. When the command prompt returns, it indicates that the file was successfully downloaded.
NOTE: Do not power off the unit while the configuration file is being downloaded.
4. Issue the reboot command to use the new configuration.
Saving/Loading from
a Remote FTP Client
The router/bridge provides an FTP server so that files can be stored to and retrieved from the unit using standard FTP client commands on a remote host.
When a configuration file is downloaded using FTP put command, the unit will automatically reboot when the configuration download is complete.
The router/bridge only supports one FTP session. If an attempt is made to establish a second FTP session, the following message is displayed:
441 Local resource failure: too many FTP sessions
To log in to the router/bridge from a remote FTP client:
1. On the remote host system, start an FTP session (the following example is from a UNIX command shell):
ftp 192.168.1.8
Connected to 192.168.1.8
2. Enter the username "ftp" or "anonymous":
Name (192.168.1.8:joeuser): ftp
3. Enter the login password if there is one
Password: public
230 User logged in
4. IMPORTANT: Set the data transfer mode to binary:
ftp> bin
200 Type set to I, binary mode
To save a configuration file using a remote FTP client:
1. Issue an ls command to see the file names currently on the router/bridge.
ftp> ls
200 Port set okay
150 Opening ASCII mode data connection
system.cfg
exec.img
226 Transfer complete
22 bytes received in 0.2 seconds (0.1 Kbytes/s)
2. Two file names are shown: system.cfg (the configuration file) and exec.img (the firmware image). Use the get command to retrieve the system.cfg file.
ftp> get system.cfg
200 Port set okay
150 Opening BINARY mode data connection
226 Transfer complete
local: system.cfg remote: system.cfg
9144 bytes received in 0.1 seconds (87 Kbytes/s)
ftp> quit
221 Good day
To download a configuration file using a remote FTP client:
1. Download the configuration file to the unit using the put command.
ftp> put system.cfg
200 Port set okay
150 Opening BINARY mode data connection
226 Transfer complete
local: system.cfg remote: system.cfg
9144 bytes sent in 0.023 seconds (3.9e+02 Kbytes/s)
ftp> quit
NOTE: Do not power off the unit while the configuration file is being downloaded. This can cause the file to be corrupted and the unit may become inaccessible except through the serial port.
When the file is successfully downloaded, the unit will automatically reboot and the new configuration will be in effect.
Ver tema siguiente Ver tema anterior Puede publicar nuevos temas en este foro Puede responder a temas en este foro No puede editar sus mensajes en este foro No puede borrar sus mensajes en este foro No puede votar en encuestas en este foro