How to make Cisco Router as HTTP server

While I was testing MQC with GNS3(Dynamips), I need to HTTP traffic from the router.  Here is simple way to make Cisco router as HTTP server.

[ Cisco-R1 ] <———–> [ Cisco-R2 ]

Cisco-R2#conf t
Cisco-R2(config)#ip http server Cisco-R2(config)#no ip http secure-server Cisco-R2(config)#ip http path flash:
 Cisco-R2#dir
Directory of flash:/

1 -rw- 167 test-pic.gif
2 -rw- 561 test-pic.jpg
3 -rw- 233 index.html

8283015 bytes total (8357617 bytes free)
Cisco-R1#copy http://10.10.10.2/index.html null:
Loading http://10.10.10.2/index.html
233 bytes copied in 0.623 secs (373 bytes/sec)
Cisco-R1#copy http://10.10.10.2/test-pic.gif null:
Loading http://10.10.10.2/test-pic.gif
167 bytes copied in 0.373 secs (447 bytes/sec)

 

 

Leave a Reply