Configuring IP Addresses


Configuring IP Addresses
 
An IP address must be assigned to a switch if you plan to use SNMP or connect to the switch through a Web browser or Telnet. If the switch needs to send traffic to a different IP network, the traffic is routed to a default gateway. Here’s the procedure for configuring a switch IP address:
SwitchA>enable
SwitchA#config term
SwitchA(config)#ip address 10.2.5.10 255.255.255.0
SwitchA(config)#ip default-gateway 10.2.5.2
SwitchA(config)#exit
SwitchA#show ip
 
The no ip address command resets the address to the default (0.0.0.0). Each unique IP address can have a host name associated with it. A maximum of six IP addresses can be specified as named servers. Domain Name System (DNS) is a system used to translate names into addresses. If a system sees an address it does not recognize, it refers to DNS, which is enabled by default with a server address of 255.255.255.255. The ip domain-lookup and the no ip domain-lookup commands turn DNS on and off, respectively.
 
Router IP Host Names
 
When names are used to route traffic, they must be translated into addresses. Routers must be able to associate host names with IP addresses to communicate with other IP devices. The ip host command manually assigns host names to addresses.
 
Configuring IP Addresses Summary
  •  
  • The ip address command sets the IP address and subnet mask.
  •  
  • The ip name-server command defines which hosts can provide the name service.
  •  
  • DNS translates node names into addresses.
  •  
  • The show hosts command displays host names and addresses.
     

    Specials more
    Cisco CCNA Lab Workbook
    Cisco CCNA Lab Workbook
    $39.99
    $29.99
    Specials more
    Cisco CCNA CRAM Sheet
    Cisco CCNA CRAM Sheet
    $17.99
    $14.99
    Specials more
    Cisco CCNA/CCNP Training CD
    Cisco CCNA/CCNP Training CD
    $39.99
    $29.99
    Shopping Cart more
    0 items
    Bestsellers
    01.1900/2900/3500 Rack Mount Kit
    02.Back to Back Cable
    03.2500 Rack Mount Kits
    04.2600/3620/PIX 515 Rack Mount Kits
    05.12U Home Rack Stand
    06.Transceiver
    07.Cisco CCNA Lab Workbook
    08.3640/AS5300 Rack Mount Kit
    09.WIC-1T
    10.Advanced CCNA/Starter CCNP Kit III