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
ip http access-class 1
  • ip http access-class + access-list-number

change the port for https:

  • ip http secure-port