User Guidelines
A static IP address must be configured using the ip address command before setting the default
gateway. The default gateway should reside on the subnet defined by the ip address command.
NOTE: For management traffic forwarding decisions, a default-route configured on the switch (CLI, Web,
SNMP, or learned via routing protocol such as OSPF), takes precedence over the ip default-gateway
setting.
Example
The following example defines ip default-gateway as 10.240.4.1.
console(config)#ip default-gateway 10.240.4.1
ip domain-lookup
Use the ip domain-lookup command in Global Configuration mode to enable IP Domain
Naming System (DNS)-based host name-to-address translation. To disable the DNS, use the no
form of this command.
Syntax
ip domain-lookup
no ip domain-lookup
Default Configuration
The DNS is enabled.
Command Mode
Global Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example enables the IP Domain Naming System (DNS)-based host name-to-
address translation.
console(config)#ip domain-lookup
298