IP Host Names
If you use a hostname instead of an IP address you may not be able to gain connectivity because the host name that you are trying to connect with is not mapped to an ip address correctly.
To determine what addresses to names are mapped on your router, check the host name table using the show hosts command.
To add a host name to ip address mapping for a router named newyork with interface ip addresses of 192.168.5.1 and 204.207.6.13 you would type:
- router(config)# ip host newyork 192.168.5.1 204.207.6.13
If you wanted to later remove that entry, you would type:
- router(config)# no ip host 192.168.5.1 204.207.6.13