Section 6

Configuring DNS


The IP Host tables are used to bind hostnames to multiple ip addresses for easier troubleshooting using ping and telnet command.

What you need to have:

  1. Hostnames (set by the hostname command on their respective routers.)
  2. IP Addresses of all the interfaces of each router

Configuring IP hosts

  1. Enter Global Configuration Mode
  2. Use the ip host hostname xxx yyy zzz command, where xxx is an ip address of an interface and yyy is the address of a different interface. hostname is the hostname that you configured to the router to which the interfaces belong using the hostname command.
  3. Repeat Step 2 for all routers on the network.
  4. Insert the IP addresses into the ip host command in this order always: ethernet interfaces (e0 and/or e1), s0, and s1.

A Little Hint!

If you configure multiple routers you can "catch" the configuration into a text file, clean it up in Notepad, and send it into all of the other router configurations when you configure them. Rather than do all of the ip host entries again and again, when you are more likely to make a mistake when typing the ip addresses.

Saving Your Configuration

You MUST use the copy running-config startup-config command to save the configuration to NVRAM, or your configuration will be lost if when you restart.

Testing Your Configuration

Now, you are done with a basic configuration of a Cisco 2500 router. Your next step would be to configure the other routers and ping and telnet each one to make sure it works. Restart the router manually (a.k.a. Power Cycle.) Use the ping hostname and telnet hostname commands, respectively.


Previous Home