WEB Configuration Command I Table of Contents Table of Contents 1.1 ip http language.................................................................................................................................1 1.2 ip http port.......................................................................................................................................... 1 1.3 ip http secure-port............................................................................................................................. 2 1.4 ip http server...................................................................................................................................... 2 1.5 ip http http-access enable................................................................................................................3 1.6 ip http ssl-access enable................................................................................................................. 3 1.7 ip http web use-footer.......................................................................................................................4 1.8 ip http web max-vlan.........................................................................................................................4 1.9 ip http web max-macaddr-table...................................................................................................... 5 1.10 ip http web igmp-groups................................................................................................................ 5 1.11 ip http web portpanel update-interval.......................................................................................... 6 1.12 ip http web portpanel visible..........................................................................................................7 1.13 ip http web max-syslogs................................................................................................................ 7 1.14 show ip http......................................................................................................................................8 II Web Configuration Commands Chapter 1 HTTP Configuration Commands 1.1 ip http language Syntax To set the prompt language when a command is configured, run the following command. [no] ip http language { english} Parameters Parameters Description english Sets the language to English. Default Value None Usage Guidelines This command is configured in global configuration mode. Example The following example shows how to set the language to English. Switch_config#ip http language english 1.2 ip http port Syntax To set the HTTP port, run the following command. To return to the default setting, use the no form of this command. ip http port { portNumber } no ip http port Parameters Parameters Description portNumber Means the HTTP port’s valid range is from 1 to 65535. 1 Web Configuration Commands Default Value 80 Usage Guidelines This command is configured in global configuration mode. Example The following example shows how to set the HTTP port to 1234. Switch_config#ip http port 1234 1.3 ip http secure-port Syntax To set the HTTPS port, run this command. To return to the default setting, use the no form of this command. ip http secure-port {portNumber} no ip http secure-port Parameters Parameters Description portNumber Means the HTTPS port’s valid range is from 1 to 65535. Default Value 443 Usage Guidelines This command is configured in global configuration mode. Example The following example shows how to set the HTTPS port to 1234. Switch_config# ip http secure-port 1234 1.4 ip http server Syntax To set the HTTP service, run this command. 2 Web Configuration Commands [no] ip http server Usage Guidelines This command is set in global configuration mode. Example The following example shows how to set the HTTP service. Switch_config# ip http server 1.5 ip http http-access enable Syntax [no] ip http http-access enable To set the HTTP access mode, run this command. Usage Guidelines This command is set in global configuration mode and used to access the website, which starts with http://. Example The following example shows how to set the HTTP access mode. Switch_config# ip http http-access enable 1.6 ip http ssl-access enable Syntax [no] ip http ssl-access enable To set the HTTPS access mode, run this command. Usage Guidelines This command is set in global configuration mode and used to access the website, which starts with https://. Example The following example shows how to set the HTTPS access mode. Switch_config# ip http ssl-access enable 3 Web Configuration Commands 1.7 ip http web use-footer Syntax ip http web use-footer To configure “About” option on the Web page, run the command. no ip http web use-footer To remove “About” option on the Web page, run the command. Usage Guidelines This command is set in global configuration mode. Example The following example shows how to hide “About” option on the Web page. Switch_config# no ip http web use-footer 1.8 ip http web max-vlan Syntax ip http web max-vlan { max-vlan } To set the maximum number of VLAN entries displayed in a web page, run this command. no ip http web max-vlan To resume the default maximum number of VLAN entries to 100, run this command. Parameters Parameters Notes: max-vlan Means the maximum number of vlan entries in the web page, which ranges from 1 to 4094. Default Value 100 Usage Guidelines This command is configured in global configuration mode. Example The following example shows how to set the maximum number of VLAN entries displayed in a web page to 123. 4 Web Configuration Commands Switch_config# ip http web max-vlan 123 1.9 ip http web max-macaddr-table Syntax ip http web max-macaddr-table { max-macaddr-table } To configure the max number of MAC address item shown on the Web page, run the command. no ip http web max-macaddr-table To return the max number of MAC address item shown on the Web page to 100, run the command. Parameters Parameters Description max-macaddr-table The max number of MAC address items shown on the Web page, the valid range is 1 to 500. Default Value 100 Usage Guidelines This command is set in global configuration mode. Example The following example shows how to set the max number of MAC address items on the Web page. Switch_config# ip http web max-macaddr-table 123 1.10 ip http web igmp-groups Syntax ip http web igmp-groups { igmp-groups } To set the maximum number of multicast entries displayed in a web page, run this command. no ip http web igmp-groups To resume the default maximum number of multicast entries to 15, run this command. 5 Web Configuration Commands Parameters Parameters Notes: igmp-groups Means the maximum number of multicast entries in the web page, which ranges from 1 to 100. Default Value 15 Usage Guidelines This command is configured in global configuration mode. Example The following example shows how to set the maximum number of multicast entries displayed in a web page to 12. Switch_config#ip http web igmp-groups 12 1.11 ip http web portpanel update-interval Syntax ip http web portpanel update-interval { update-interval } To configure the update interval of the web port panel, run the command. no ip http web portpanel update-interval To return the update interval of the web port panel to 1 minute, run the command. Parameters Parameters Description update-interval The update interval of the web port panel. The valid range is 1 to 5. Default Value 1 Usage Guidelines This command is set in global configuration mode. Example The following example shows how to set the update interval of the web port panel to 3 minutes. 6 Web Configuration Commands Switch_config#ip http web portpanel update-interval 3 1.12 ip http web portpanel visible Syntax ip http web portpanel visible To enable the port panel of the web page visible, run the command. no ip http web portpanel visible To disable the port panel of the web page visible, run the command. Usage Guidelines This command is set in global configuration mode. Example The following example shows how to disable the port panel of the web page. Switch_config#no ip http web portpanel visible 1.13 ip http web max-syslogs Syntax ip http web max-syslogs { max-syslogs } To configure the max number of system logs shown on the Web page, run the command. no ip http web max-syslogs To return the max number of system logs shown on the Web page to 128, run the command. Parameters Parameters Description max-syslogs The max number of system logs. The valid range is 100 to 500. Default Value 128 Usage Guidelines This command is set in global configuration mode. Example The following example shows how to set the max number of system logs to 200. 7 Web Configuration Commands Switch_config#ip http web max-syslogs 200 1.14 show ip http Syntax show ip http Usage Guidelines The command is used to browse whether the HTTP server is enabled. Example Switch_config#show ip http Http server is running 8