How to configure a Cisco router as a TFTP server ?

author
  • Total 1 Answer
  • 7015
Can You answer this question?
author

The router is not a fully functional TFTP server. It can only serve files for download. You cannot use this feature to upload files into the serving router's local flash. However, the router is not limited to just serving IOS images. You can use your router's flash to store configuration files and make them available for download via TFTP as well. 

Note: The tftp-server command has been available since at least 12.2 version of IOS

 

R1#configure terminal

R1(config)#tftp-server flash:c7200p-adventerprisek9-mz.151-3.S4.bin (IOS Image Exact File Name)

R1(config)#int f0/0

R1(config-if)#ip address 10.0.0.1 255.0.0.0

R1(config-if)#no shutdown

(Now you can perform basic recovery options for TFTP server)

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH): failed to open stream: No space left on device

  1. in Filesystem.php line 111
  2. at HandleExceptions->handleError(2, 'file_put_contents(/var/www/html/storage/framework/sessions/9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH): failed to open stream: No space left on device', '/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 111, array('path' => '/var/www/html/storage/framework/sessions/9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH', 'contents' => 'a:4:{s:6:"_token";s:40:"uMSh3JGfPzlHYUl6A2fwYLMAS8lJXQUK1c0RBsbs";s:11:"viewed_urls";a:1:{i:0;s:48:"how-to-configure-a-cisco-router-as-a-tftp-server";}s:9:"_previous";a:1:{s:3:"url";s:76:"http://www.networkbulls.com/how-to-configure-a-cisco-router-as-a-tftp-server";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/var/www/html/storage/framework/sessions/9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH', 'a:4:{s:6:"_token";s:40:"uMSh3JGfPzlHYUl6A2fwYLMAS8lJXQUK1c0RBsbs";s:11:"viewed_urls";a:1:{i:0;s:48:"how-to-configure-a-cisco-router-as-a-tftp-server";}s:9:"_previous";a:1:{s:3:"url";s:76:"http://www.networkbulls.com/how-to-configure-a-cisco-router-as-a-tftp-server";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2) in Filesystem.php line 111
  4. at Filesystem->put('/var/www/html/storage/framework/sessions/9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH', 'a:4:{s:6:"_token";s:40:"uMSh3JGfPzlHYUl6A2fwYLMAS8lJXQUK1c0RBsbs";s:11:"viewed_urls";a:1:{i:0;s:48:"how-to-configure-a-cisco-router-as-a-tftp-server";}s:9:"_previous";a:1:{s:3:"url";s:76:"http://www.networkbulls.com/how-to-configure-a-cisco-router-as-a-tftp-server";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('9O2Ez3BJBJYClWCuOia5z1uJeLriF8o8hzeqb4mH', 'a:4:{s:6:"_token";s:40:"uMSh3JGfPzlHYUl6A2fwYLMAS8lJXQUK1c0RBsbs";s:11:"viewed_urls";a:1:{i:0;s:48:"how-to-configure-a-cisco-router-as-a-tftp-server";}s:9:"_previous";a:1:{s:3:"url";s:76:"http://www.networkbulls.com/how-to-configure-a-cisco-router-as-a-tftp-server";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 128
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 216
  8. at Kernel->terminateMiddleware(object(Request), object(Response)) in Kernel.php line 187
  9. at Kernel->terminate(object(Request), object(Response)) in index.php line 59
  10. at require_once('/var/www/html/public/index.php') in index.php line 20