<Jeremy's IT Lab> Day 43: FTP & TFTP

2025. 6. 20. 13:44CS/CCNA

728x90

//copy ios image via TFTP

R1>en

R1#copy tftp: flash:

Address or name of remote host []? 10.0.0.1

Source filename []? c2900-universalk9-mz.SPA.155-3.M4a.bin

R1#show flash

 

System flash directory:

File Length Name/status

3 33591768 c2900-universalk9-mz.SPA.151-4.M4.bin

4 33591768 c2900-universalk9-mz.SPA.155-3.M4a.bin

2 28282 sigdef-category.xml

1 227537 sigdef-default.xml

[67439355 bytes used, 188304645 available, 255744000 total]

249856K bytes of processor board System flash (Read/Write)

 

//set the ios image into new version

R1#conf t

R1(config)#boot sys flash c2900-universalk9-mz.SPA.155-3.M4a.bin

R1(config)#exit

R1#

%SYS-5-CONFIG_I: Configured from console by console

R1# write //save current configuration into NVRAM (non-volatile mem)

Building configuration...

[OK]

R1#reload

Proceed with reload? [confirm]

 

R1>en

R1#show version

Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.5(3)M4a, RELEASE SOFTWARE (fc1)

...

//delete the previous version

R1#delet flash:c2900-universalk9-mz.SPA.151-4.M4.bin

Delete filename [c2900-universalk9-mz.SPA.151-4.M4.bin]?

Delete flash:/c2900-universalk9-mz.SPA.151-4.M4.bin? [confirm]

 

R1#show flash

 

System flash directory:

File Length Name/status

4 33591768 c2900-universalk9-mz.SPA.155-3.M4a.bin

2 28282 sigdef-category.xml

1 227537 sigdef-default.xml

[33847587 bytes used, 221896413 available, 255744000 total]

249856K bytes of processor board System flash (Read/Write)

 

 

//r2 config

// config default route to 10.0.0.0

R2(config)#ip route 10.0.0.0 255.255.255.0 192.168.12.1

R2(config)#do show ip route

Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

 

Gateway of last resort is not set

 

10.0.0.0/24 is subnetted, 1 subnets

S 10.0.0.0/24 [1/0] via 192.168.12.1

192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.12.0/30 is directly connected, GigabitEthernet0/0

L 192.168.12.2/32 is directly connected, GigabitEthernet0/0

 

//FTP way (set username, pw)

R2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#ip ftp username jeremy

R2(config)#ip ftp passw ccna

R2(config)#exit

R2#en

R2#copy ftp: flash:

Address or name of remote host []? 10.0.0.1

Source filename []? c2900-universalk9-mz.SPA.155-3.M4a.bin

Destination filename [c2900-universalk9-mz.SPA.155-3.M4a.bin]?

 

Accessing ftp://10.0.0.1/c2900-universalk9-mz.SPA.155-3.M4a.bin...

[OK - 33591768 bytes]

 

33591768 bytes copied in 68.595 secs (51417 bytes/sec)

 

R2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#boot system flash c2900-universalk9-mz.SPA.155-3.M4a.bin

R2(config)#exit

R2#

%SYS-5-CONFIG_I: Configured from console by console

 

R2#write

Building configuration...

[OK]

 

R2#show flash

 

System flash directory:

File Length Name/status

3 33591768 c2900-universalk9-mz.SPA.151-4.M4.bin

4 33591768 c2900-universalk9-mz.SPA.155-3.M4a.bin

2 28282 sigdef-category.xml

1 227537 sigdef-default.xml

[67439355 bytes used, 188304645 available, 255744000 total]

249856K bytes of processor board System flash (Read/Write)

 

 

R2#delete flash:c2900-universalk9-mz.SPA.151-4.M4.bin

Delete filename [c2900-universalk9-mz.SPA.151-4.M4.bin]?

Delete flash:/c2900-universalk9-mz.SPA.151-4.M4.bin? [confirm]

 

R2#show flash

 

System flash directory:

File Length Name/status

4 33591768 c2900-universalk9-mz.SPA.155-3.M4a.bin

2 28282 sigdef-category.xml

1 227537 sigdef-default.xml

[33847587 bytes used, 221896413 available, 255744000 total]

249856K bytes of processor board System flash (Read/Write)

반응형