cisco router http server IOS configuration
here are the commands that worked on a 3620 IOS, in order:
Would you like to enter the initial configuration dialog? [yes/no]: n
(RETURN)
// enable mode
Router>en
// configure the console to stop those annoying messages while you're typing
Router#conf t
Router(config)#line vty 0 4
Router(config-line)#logging synchronous
Router(config-line)#end
Router#
// configure an ethernet interface
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip address 192.168.1.118 255.255.255.0
Router(config-if)#no shut
Router(config-if)#end
Router#
// launch the http server
Router#conf t
Router(config)#ip http server
Router(config)#end
Router#
// and now a little sip of coffee, while we admire our handiwork:
// check our work
Router#sh ip http server all
// view connections as they occur
Router#debug ip http all
// view current config
Router#sh ip int br
// we should perhaps end with a copy running-config startup-config ?
NEED MORE?
In case this doesn't work for you, and you want to see what was happening in the IOS, I will paste the actual transcript - with all the system messages and responses included - in the comments, to avoid littering the post.
Would you like to enter the initial configuration dialog? [yes/no]: n
(RETURN)
// enable mode
Router>en
// configure the console to stop those annoying messages while you're typing
Router#conf t
Router(config)#line vty 0 4
Router(config-line)#logging synchronous
Router(config-line)#end
Router#
// configure an ethernet interface
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip address 192.168.1.118 255.255.255.0
Router(config-if)#no shut
Router(config-if)#end
Router#
// launch the http server
Router#conf t
Router(config)#ip http server
Router(config)#end
Router#
// and now a little sip of coffee, while we admire our handiwork:
// check our work
Router#sh ip http server all
// view connections as they occur
Router#debug ip http all
// view current config
Router#sh ip int br
// we should perhaps end with a copy running-config startup-config ?
NEED MORE?
In case this doesn't work for you, and you want to see what was happening in the IOS, I will paste the actual transcript - with all the system messages and responses included - in the comments, to avoid littering the post.
Labels: 3620, cisco, configuration, http, ios, ip, router, server



2 Comments:
Connected to Dynamips VM "R0" (ID 0, type c3600) - Console port
{
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: n
Press RETURN to get started!
*Mar 1 00:00:10.703: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0, changed state to up
*Mar 1 00:00:10.707: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:00:11.707: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar 1 00:01:46.727: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 3600 Software (C3620-IK9O3S7-M), Version 12.3(15), RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 25-May-05 01:37 by ssearch
*Mar 1 00:01:46.735: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
*Mar 1 00:01:46.755: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
*Mar 1 00:01:47.755: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
Router>
Router>
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line vty 0 4
Router(config-line)#logging sy
Router(config-line)#logging synchronous
Router(config-line)#end
Router#
*Mar 1 00:05:25.655: %SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.1.118 255.255.255.0
Router(config-if)#no shut
Router(config-if)#end
Router#
*Mar 1 00:06:28.343: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:06:29.343: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Mar 1 00:06:29.511: %SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip http server
Router(config)#end
Router#
*Mar 1 00:07:39.899: %SYS-5-CONFIG_I: Configured from console by console
Router#sh ip http server all
HTTP server status: Enabled
HTTP server port: 80
HTTP server authentication method: enable
HTTP server access class: 0
HTTP server base path:
Maximum number of concurrent server connections allowed: 5
Server idle time-out: 180 seconds
Server life time-out: 180 seconds
Maximum number of requests allowed on a connection: 1
HTTP secure server capability: Present
HTTP secure server status: Disabled
HTTP secure server port: 443
HTTP secure server ciphersuite: 3des-ede-cbc-sha des-cbc-sha rc4-128-md5 rc4-128-sha
HTTP secure server client authentication: Disabled
HTTP secure server trustpoint:
HTTP server application session modules:
Session module Name Handle Description
HTTP IFS Server 1 HTTP based IOS File Server
http_ezsetup 2 HTTP EZSETUP Server
WEB_EXEC 3 HTTP based IOS EXEC Server
Homepage_Server 4 IOS Homepage Server
HTTP server current connections:
local-ipaddress:port remote-ipaddress:port in-bytes out-bytes
HTTP server statistics:
Accepted connections total: 0
HTTP server history:
local-ipaddress:port remote-ipaddress:port in-bytes out-bytes end-time
Router#debug ip http all
Router#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.118 YES manual up up
Router#
*Mar 1 00:09:47.347: Mon, 01 Mar 1993 00:09:47 GMT 192.168.1.119 ok
Protocol = HTTP/1.1 Method = GET
*Mar 1 00:09:47.351:
*Mar 1 00:10:36.855: Mon, 01 Mar 1993 00:10:36 GMT 192.168.1.119 /level/15/exec/- ok
Protocol = HTTP/1.1 Method = GET
*Mar 1 00:10:36.859:
*Mar 1 00:10:42.235: Mon, 01 Mar 1993 00:10:42 GMT 192.168.1.119 ok
Protocol = HTTP/1.1 Method = GET
*Mar 1 00:10:42.235:
Router#
ps, the webserver publishes a page with the following
Cisco Systems
Accessing Cisco 3620 "Router"
Show diagnostic log - display the diagnostic log.
Monitor the router - HTML access to the command line interface at level 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
Show tech-support - display information commonly needed by tech support.
Extended Ping - Send extended ping commands.
Help resources
1. CCO at www.cisco.com - Cisco Connection Online, including the Technical Assistance Center (TAC).
2. tac@cisco.com - e-mail the TAC.
3. 1-800-553-2447 or +1-408-526-7209 - phone the TAC.
4. cs-html@cisco.com - e-mail the HTML interface development group.
Post a Comment
<< Home