Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: ip hostname

ip hostname 12 years 10 months ago #2596

  • indebluez
  • indebluez's Avatar
  • Offline
  • Distinguished Member
  • Posts: 114
  • Karma: 0
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...
The administrator has disabled public write access.

Re: ip hostname 12 years 10 months ago #2598

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
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.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
The administrator has disabled public write access.

Re: ip hostname 12 years 10 months ago #2600

  • indebluez
  • indebluez's Avatar
  • Offline
  • Distinguished Member
  • Posts: 114
  • Karma: 0
okye cool!got it
The administrator has disabled public write access.

Re: ip hostname 12 years 10 months ago #2601

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
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!
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
The administrator has disabled public write access.

Re: ip hostname 12 years 10 months ago #2603

  • sahirh
  • sahirh's Avatar
  • Offline
  • Honored Member
  • Posts: 1700
  • Karma: 0
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
The administrator has disabled public write access.

IP host 12 years 9 months ago #2761

  • mew
  • mew's Avatar
  • Offline
  • Frequent Member
  • Posts: 77
  • Karma: 0
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
The administrator has disabled public write access.
Time to create page: 0.088 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup