IP Host Command on CISCO Router/Switch

Command

IP Host

Use

Allows you to set DNS names for devices on your network.

Syntax

Router(config)#ip host <name> <ip address>

Example

IP Host Command on CISCO Router/Switch 1

In the below example R1 is configured to be able to ping R2 and R3

R1(config)#ip host R2 2.2.2.2
R1(config)#ip host R3 3.3.3.3

R1(config)#do ping R2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/47/108 ms
R1(config)#do ping R3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/52/104 ms
Subscribe
Notify of
guest

1 Comment
Inline Feedbacks
View all comments
Leonard Boone
Leonard Boone
1 year ago

thanks. I wanted to be sure I had it right.

1
0
Would love your thoughts, please comment.x
()
x