Resolving Hostnames
If you want to use a hostname rather than an IP address to connect to a remote device, the device you are using to make the connection must be able to translate the hostname to an IP address.
There are two ways to resolve hostnames to IP addresses: building a host table on each router or building a Domain Name System (DNS) server, which is similar to a dynamic host table (assuming dynamic DNS).
Building a Host Table
A host table provides name resolution only on the router that it was built upon. The command to build a host table on a router is as follows:
ip host host_name [tcp_port_number] ip_address
The default is TCP port number 23, but you can create a session using Telnet with a different TCP port number if you want. ...
Get CCENT Cisco Certified Entry Networking Technician Study Guide: (ICND1 Exam 640-822), 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.