Enabling HTTP Access to a Router

Problem

You want to configure and monitor your router using a browser interface.

Solution

Cisco includes an HTTP server in the IOS. You can enable this feature on a router, and then use any standard web browser to access the router instead of Telnet:

Router1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#access-list 75 permit 172.25.1.1
Router1(config)#access-list 75 deny any
Router1(config)#ip http server
Router1(config)#ip http access-class 75
Router1(config)#end
Router1#

Discussion

After configuring this feature on a router, you can then connect to the router from a standard web browser. For example, using the Lynx text-based web browser, the router’s home page looks like this:

                                                          Router1 Home Page

                                 Cisco Systems

Accessing Cisco 2621 "Router1"

        Telnet - to the router.

        Show interfaces - display the status of the interfaces.
        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

        Connectivity test - ping the nameserver.

        Show tech-support - display information commonly needed by tech
                support.

        QoS Device Manager - Configure and monitor QoS through the web
                interface.
     _________________________________________________________________

  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 ...

Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.