Configuring Http Services - Cisco Catalyst 2000 Configuration Handbook

Catalyst series lan switching
Table of Contents

Advertisement

Tip If you are not going to use DNS, it is recommended that you disable DNS lookups
with the global configuration command no ip domain-lookup. This command prevents the
switch from trying to resolve mistyped commands.
(Optional) Define the address of the DNS server:
2.
(global) ip name-server serveraddress1 [serveraddress2. . . serveraddress6]
Use this command to specify the addresses of one or more DNS servers. You can
specify up to six addresses on a single command-line entry. In IOS switches, the first
address configured is the first address DNS queries are sent for resolution.
Subsequent addresses are used only if the first address times out or returns a nega-
tive acknowledgment.
-or-
(Optional) Specify host entries for name resolution:
(global) ip host name address
By specifying the name and address of the device on the switch, the name is
resolved in the local table. DNS can be enabled or disabled when using local host-
names; locally configured hosts are searched before a request is sent to DNS.

Configuring HTTP Services

You can enable an HTTP server so that the switch can be managed using a web browser.
The web-based GUI is a straightforward management option that gives users another con-
figuration option.
(Optional) Configure HTTP service for switch configuration:
1.
(global) [no] ip http server
The command ip http server is enabled by default. You can choose to disable it with the
no command.
Feature Example
This example shows a typical configuration for setting the IP address, gateway, and DNS
servers for a switch in an administrative VLAN 986. This example disables the HTTP
server service:
Switch(config)# interface vlan 986
Switch(config-subif)# ip address 10.1.1.5 255.255.255.0
Switch(config-subif)# management
Switch(config-subif)# ip default-gateway 10.1.1.1
Switch(config)# ip name-server 10.1.1.254
Switch(config)# no ip http server
Switch(config)# end
Switch# copy running-config startup-config
Chapter 3: Supervisor Engine Configuration 29
www.allitebooks.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents