cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19626
Views
10
Helpful
7
Replies

configuring host table

shadowman724
Level 1
Level 1

hi,

i have two routers:

rome, with 2 interfaces:

-fast ethernet0: 192.168.1.129

-serial 0: 192.168.15.1

and berlin, with 2 interfaces too:

-fast ethernet0: 192.168.0.1

-serial0: 192.168.15.2

what are the command lines to configure the host tables on each router?

thanks

1 Accepted Solution

Accepted Solutions

Its a Good practise to write down list of all routers name and corresponding ip address on a notepad text document and then paste it in all the routers or switches global config mode.

This way all the host tables will be same for your entire network.

in your case:

ip host rome 192.168.1.129 192.168.15.1

ip host berlin 192.168.0.1 192.168.15.2

Any doubts free to ask.

View solution in original post

7 Replies 7

m-haddad
Level 5
Level 5

The command is:

ip host HSOTNAME IPADDRESS

Let me know if this is what you mean,

devang_etcom
Level 7
Level 7

hi you can use it like this:

ip host rome 192.168.1.129 192.168.15.1

ip host berlin 192/168.0.1 192.168.15.2

ip host command allow you to define an ip address for a host name and you can have eight ip address associated with it.

rate this post if it helps

regards

Devang

ok, but which command line on which router?

enter the configurations in the global configuration mode on the respective routers

router(config)#ip host rome ip address1>

HTH

Narayan

you mean for example on berlin router: (config)#ip host rome 192.168.1.129 192.168.15.1 ?

is that correct?

Its a Good practise to write down list of all routers name and corresponding ip address on a notepad text document and then paste it in all the routers or switches global config mode.

This way all the host tables will be same for your entire network.

in your case:

ip host rome 192.168.1.129 192.168.15.1

ip host berlin 192.168.0.1 192.168.15.2

Any doubts free to ask.

mdantasjr
Level 1
Level 1

Wel... i think you want is..

rome(config)#interface fastethernet 0

rome(config-if)#ip addres 192.168.1.129 a.b.c.d

rome(config-if)#exit

rome(config)#interface serial 0

rome(config-if)#ip addres 192.168.15.1 a.b.c.d

berlin(config)#interface fastethernet 0

berlin(config-if)#ip addres 192.168.0.1 a.b.c.d

berlin(config-if)#exit

berlin(config)#interface serial 0

berlin(config-if)#ip addres 192.168.15.2 a.b.c.d

where a.b.c.d is your subnet mask.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: