This command has no additional arguments or keyWords.
Default
HTTP server functions are enabled.
Command Mode
Global configuration
Example
This example shows how to disable HTTP server functions.
hostname(config)# no ip http server
Related Command
ip (address)
ip (default-gateway)
ip (http port)
ip (mgmt-vlan)
ip (name-server)
show (ip)
ip (mgmt-vlan)
Use the ip mgmt-vlan global configuration command to configure a particular VLAN as the management VLAN (the VLAN from which IP packets are accepted and processed). Use the no ip mgmt-vlan command to set the default value as the management VLAN.
ip mgmt-vlan vlan-number
no ip mgmt-vlan
Syntax Description
vlan-number VLAN number between 1 and 1005.
Default
VLAN 1 is the management VLAN.
Command Mode
Global configuration
Usage Guidelines
This command is only available when VLANs are enabled. IP traffic is received and processed only from the management VLAN.
Example
This example shows how to set VLAN 2 as the management VLAN.
hostname(config)# ip mgmt-vlan 2
Related Commands
ip (address)
ip (default-gateway)
ip (domain-name)
ip (http port)
ip (http server)
ip (name-server)
show (ip)
ip (name-server)
Use the ip name-server global configuration command to configure a domain name system (DNS) server. Use the no ip name-server command to delete any configured DNS server.
ip name-server name-server
no ip name-server name-server
Syntax Description
name-server The IP address of the DNS server.
Default
No name server address is configured.
Command Mode
Global configuration
Usage Guidelines
No more than two name-server addresses at a time can be specified for the switch. If two name servers are already specified and the user tries to specify a third, an error message appears. To add a new name server when two are already specified, delete one by using the no form of the command before adding the new server information.
Example
This example shows how to configure a server at IP address 172.20.128.126 as a name server for the switch.
hostname(config)# ip name-server 172.20.128.126
Related Commands
ip (address)
ip (default-gateway)
ip (domain-name)
ip (http port)
ip (http server)
ip (mgmt-vlan)
show (ip)
line console
Use the line console global configuration command to change to line-configuration mode.
line console
Syntax Description
This command has no additional arguments or keywords.
Command Mode
Global configuration
Example
This example shows how to change the command mode from global configuration to line configuration.
hostname(config)# line console
hostname(config-line)#
Related Commands
configure
disable
enable
end
exit
interface
login (tacacs)
Use the login tacacs global configuration command to enable the Cisco Terminal Access Controller Access Control System Plus (TACACS ) for authenticating user logins. If login TACACSis enabled, the switch uses TACACSto authenticate all user logins through a console or Telnet interface. Use the no login tacacs command to disable TACACSauthentication.
login tacacs
no login tacacs
Syntax Description
This command has no additional arguments or keywords.
Default
Disabled
Command Mode
Global configuration
Usage Guidelines
Access to the web interface cannot be authenticated through TACACS . When using the web interface, the authentication process defaults to the local switch password.
Example
This command shows how to enable TACACSfor login authentication.
hostname(config)# login tacacs
Related Commands
enable (use-tacacs)
show (tacacs)
tacacs-server (attempts)
tacacs-server (directed-request)
tacacs-server (host)
tacacs-server (key)
tacacs-server (last-resort)
tacacs-server (timeout)
mac-address-table (aging-time)
Use the mac-address-table aging-time global configuration command to configure the length of time the switch keeps dynamic MAC addresses in memory before discarding. Use the no mac-address-table aging-time command to set the aging time to the default value.
推荐阅读
- 交换机故障类型及分析方法
- CISCO交换机命令全集加说明4
- 配置cisco交换机三层交换的综合范例1
- CISCO交换机命令全集加说明
- 配置cisco交换机三层交换的综合范例2
- 多层交换笔记2
- 常见的CatcOs错误消息在Cisco交换机2
- 常见的CatcOs错误消息在Cisco交换机1
- 交换机命令大全2
- 1 交换机命令大全