The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
This an Ubuntu or Dell issue? salmobytes Ubuntu 3 05-04-2009 09:49 AM
SSH broke and network traffic / talking issue between hosts and server tedeansiii Red Hat 0 02-12-2009 10:27 AM
/etc/hosts on Ubuntu behaving strangely Zarnick UNIX for Advanced & Expert Users 5 11-04-2008 02:42 PM
FTP file to different hosts coolkid Shell Programming and Scripting 4 08-06-2008 06:41 PM
HOSTS File cymerman UNIX for Dummies Questions & Answers 4 01-19-2007 12:26 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-05-2009
nekkro-kvlt nekkro-kvlt is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
[solved]Issue with /etc/hosts file under ubuntu

I think terminal outpu is better than long words so:

Quote:
bastien@bastien-laptop:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 bastien-laptop
10.192.5.200 3560
10.192.5.11 4507
10.192.5.250 7603_bas
10.192.5.28 7603_haut
10.192.5.253 7609
10.192.5.245 7609_2



# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
bastien@bastien-laptop:~$ ping 4507
connect: Invalid argument
bastien@bastien-laptop:~$ ping 10.192.5.11
PING 10.192.5.11 (10.192.5.11) 56(84) bytes of data.
64 bytes from 10.192.5.11: icmp_seq=1 ttl=255 time=1.71 ms
64 bytes from 10.192.5.11: icmp_seq=2 ttl=255 time=1.36 ms
^C
--- 10.192.5.11 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.368/1.540/1.713/0.176 ms
bastien@bastien-laptop:~$
I rebooted my laptop but no success... It's the same for all entry i added... Any ideas ?
PS: I'm under ubuntu 9.0.4


edit: hostnames can't start with a number, using c4507 for example works.

Last edited by nekkro-kvlt; 06-05-2009 at 07:14 AM..
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0