Copiare IOS su uno switch Cisco senza server TFTP: Xmodem, FTP, SCP, USB
Quando TFTP non è disponibile, hai quattro alternative pratiche. Tutte richiedono accesso console (seriale/USB).
Opzione 1: Xmodem (Lento ma universale)
switch# copy xmodem: flash:.bin
- Usa PuTTY / Tera Term / SecureCRT → Trasferimento → Xmodem → Invia.
- Imposta baud a 115200 (o 9600 su apparecchiature vecchie). Prevedi 10–20 min per immagine 30 MB.
Opzione 2: FTP / SFTP (Se switch esegue IOS 12.4+ / IOS-XE)
switch# copy ftp://user:pass@server/flash:/.bin flash: switch# copy scp://user@server/flash:/ .bin flash: (IOS-XE)
- Esegui FileZilla Server (FTP) o OpenSSH (SFTP) sul tuo laptop.
- Collega laptop alla porta di gestione dello switch o VLAN con raggiungibilità IP.
Opzione 3: Chiavetta USB (Catalyst 2960/3560/3850/9000 + IOS-XE)
- Formatta USB come FAT32; copia
.binnella radice. - Inserisci nella porta USB dello switch.
dir usbflash0:→ verifica file.copy usbflash0:.bin flash:
Opzione 4: HTTP/HTTPS (IOS-XE 16.9+)
switch# copy https://server/.bin flash:
- Esegui
python3 -m http.server 80sul laptop.
Post-copia
verify /md5 flash:(confronta con hash Cisco)..bin boot system flash:→.bin write memory→reload.
Xmodem è il fallback che funziona su qualsiasi switch Cisco con una porta console.