Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: ip hostname

ip hostname 14 years 7 months ago #2596

  • indebluez
  • indebluez's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 114
  • Thank you received: 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...

Re: ip hostname 14 years 7 months ago #2598

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

Re: ip hostname 14 years 7 months ago #2600

  • indebluez
  • indebluez's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 114
  • Thank you received: 0
okye cool!got it

Re: ip hostname 14 years 7 months ago #2601

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1447
  • Karma: 8
  • Thank you received: 13
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

Re: ip hostname 14 years 7 months ago #2603

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

IP host 14 years 7 months ago #2761

  • mew
  • mew's Avatar
  • Offline
  • Frequent Member
  • Frequent Member
  • Posts: 77
  • Thank you received: 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
  • Page:
  • 1
Time to create page: 0.160 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