Come Copiare File da un Server TFTP a un Dispositivo Cisco IOS
Il Comando
copy tftp flash: (o copy tftp startup-config, copy tftp running-config, ecc., a seconda della destinazione)
Prompt Interattivi
Dopo aver inserito il comando, la CLI richiede:
- Indirizzo o nome host remoto [ ]: Indirizzo IP o nome host del server TFTP.
- Nome file sorgente [ ]: Nome del file sul server TFTP (es.
c2900-universalk9-mz.SPA.152-4.M5.bin). - Nome file destinazione [ ]: Nome con cui memorizzare sul dispositivo (spesso uguale all'origine, o
flash:filename).
Esempio di Sessione
Router# copy tftp flash: Address or name of remote host []? 192.168.1.100 Source filename []? cat3k_caa-universalk9.16.12.03.SPA.bin Destination filename [cat3k_caa-universalk9.16.12.03.SPA.bin]? Accessing tftp://192.168.1.100/cat3k_caa-universalk9.16.12.03.SPA.bin... Loading cat3k_caa-universalk9.16.12.03.SPA.bin from 192.168.1.100 (via GigabitEthernet0/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 423112704 bytes] 423112704 bytes copied in 45.216 secs (9357655 bytes/sec) Router# Prerequisiti
- Server TFTP in esecuzione e accessibile (porta UDP 69).
- Connettività di rete (fai ping al server dal dispositivo).
- Il file esiste nella directory root del TFTP.
- Spazio flash sufficiente sul dispositivo.
Varianti Comuni
copy tftp startup-config– Carica configurazione in NVRAM (prossimo avvio).copy tftp running-config– Unisce configurazione nella RAM attiva (immediato).copy tftp flash:– La più comune per immagini IOS.