- Posts: 114
- Thank you received: 0
ip hostname
21 years 2 months ago #2596
by indebluez
ip hostname was created by indebluez
hey guys...i noe this is very basic..
1)but wats ip hostname? i have not come across it...
2)and also should it be in global config mode...so it should be
like this...?
router(config) ip hostname bob 1.1.1.1
or like this
router#
coz in the exam test engine it says it needs to be in global config mode and yet the answer is the 2nd one...
1)but wats ip hostname? i have not come across it...
2)and also should it be in global config mode...so it should be
like this...?
router(config) ip hostname bob 1.1.1.1
or like this
router#
coz in the exam test engine it says it needs to be in global config mode and yet the answer is the 2nd one...
21 years 2 months ago #2598
by sahirh
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Replied by sahirh on topic Re: ip hostname
ip hostname ? I think the command you're talking about is 'ip host'.. it doesnt allow you to use 'hostname'. The command just adds a static name to IP mapping.. kinda like DNS, so that you can give names to various IPs. This is useful so you don't have to remember different routers names.
The command has to be used in global configuration mode ie Router(config)#
Heres an example
[code:1]
Router> en
password:
Router# conf t
Router(config)# ip host lara 10.0.0.2
Router(config)# ^Z
%SYS-5-CONFIG_I: Configured from console by console
Router# ping lara
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#
[/code:1]
In other words it maps 10.0.0.2 to 'lara' so I can access it using a name rather than an IP.
The command has to be used in global configuration mode ie Router(config)#
Heres an example
[code:1]
Router> en
password:
Router# conf t
Router(config)# ip host lara 10.0.0.2
Router(config)# ^Z
%SYS-5-CONFIG_I: Configured from console by console
Router# ping lara
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#
[/code:1]
In other words it maps 10.0.0.2 to 'lara' so I can access it using a name rather than an IP.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
21 years 2 months ago #2600
by indebluez
Replied by indebluez on topic Re: ip hostname
okye cool!got it
21 years 2 months ago #2601
by Chris
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
Replied by Chris on topic Re: ip hostname
Doh ... Sahir beat me to it :lol:
I've only needed to use the ip host command a few times .. it certainly is not a common command - at least in my world!
I've only needed to use the ip host command a few times .. it certainly is not a common command - at least in my world!
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
21 years 2 months ago #2603
by sahirh
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Replied by sahirh on topic Re: ip hostname
lol the first time I used it was to make the post above.. but I did learn about it a while ago. Frankly if you've got the time to sit and name all your routers, you're either damn efficient or don't have much of a networking job. What say ?
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
21 years 1 month ago #2761
by mew
Cisco curriculum and certification tests consider ip host as part of the basic configuration of a router. Known as creating a host table. The name you use does not have to be the actual name of the router but the ip address do have to be exact and you can have up to 8 ip addresses associated with the name. Check out this URL.
www.cisco.com/en/US/products/sw/iosswrel...088057.html#xtocid23
www.cisco.com/en/US/products/sw/iosswrel...088057.html#xtocid23
Time to create page: 0.209 seconds