How to configure http/tftp server on cisco router?
Suppose, you want to transfer files between cisco routers. You can choose either tftp or http/https or scp/rcp or ftp. lets say you want to transfer files on disk0: directory on one cisco router to another cisco router. Here are the ways to configure http/tftp server for both IPV6 & IPV4.
Configuring http server on cisco router
==========================
Configuring http server on cisco router
==========================
- R1(config)#ip http server
- R1(config)#ip http port 8080
- R1(config)#ip http path disk0:
- R1(config)#username cisco privilege 15 password 0 cisco
Now, you can transfer files from the above configured router to another router say R2
using following commands.
1. If you want to copy files using ipv4 address then:
R2#copy http://[usr]:[passwd]@[ip address]:8080/
Example:
R2#copy http://cisco:cisco@10.10.10.10:8080/xyz.gz disk0:
*2. If you want to copy files using ipv6 address then:
R2#copy http://[usr]:[passwd]@[ipv6 address]:8080/[filename] [destination path]
Example:
R2#copy http://cisco:cisco@[2003:db:a::]:8080/xyz.gz disk0:
*Note: ip http server command enables http server for IPV4 as well as IPV6.
Configuring tftp server on cisco router
==========================
We can simulate tftp server in cisco router, but we have to specify the filename which is being shared among the network. Following command accomplish turning on the tftp server:
R1(config)#tftp-server disk0:
==========================
We can simulate tftp server in cisco router, but we have to specify the filename which is being shared among the network. Following command accomplish turning on the tftp server:
Now, you can transfer files from the above configured router to another router say R2 using following command:
R2#copy tftp: [destination directory]
Example: copy tftp: disk0:
Comments
reflective fabric