TFTP服務器端-------------------Router
192.168.1.1 192.168.1.2 F0/0
(1)首先設置TFTP服務器端的IP地址喂192.168.1.1
(2)路由配置
Router〉enable
Router #
Router #configure terminal
Router (config)#
Router (config)#interface f0/0
Router (config-if)#ip address 192.168.1.2 255.255.255.0 !設置該接口IP地址
Router (config-if)#no shutdown !開啓接口
Router (config-if)#
00:01:54: %LINK-3-UPDOWN: Interface FastEthernet0/0,changed state to up
00:01:56: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/
0,chang
ed state to up
Router (config-if)#^Z !使用Ctrl+Z鍵退出到特權模式
Router #write memory
Router #ping 192.168.1.1 !ping計算機的IP地址進行單段測試
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max =1/1/4 ms! 如果Ping測試
正常,就可以在特權下輸入命令進行配置文件的下載。
Router #copy running-config tftp
Address or name of remote host []?192.168.1.1
Destination filename [router-confg]? !敲回車保持默認的文件名
!!
536 bytes copied in 1.138 secs (536 bytes/sec)
查看TFTP的界面,如果有信息顯示出來,說明配置文件傳輸成功。