how to enable the web interface on a cisco router

or switch, or…

to enable access via http and https:

ip http server
ip http authentication local
ip http secure-server

to restrict access to particular ip addresses

access-list 1 permit 10.1.2.3
ip http access-class 1
  • ip http access-class + access-list-number

change the port for https:

  • ip http secure-port