Networking Forums

Networking Forums > Computer Networking > Linux Networking > LAN with DHCP in a Linksys router, can't ping local machines

Reply
Thread Tools Display Modes

LAN with DHCP in a Linksys router, can't ping local machines

 
 
Al Schapira
Guest
Posts: n/a

 
      07-30-2007, 12:58 AM
I have a LAN with DHCP in a linksys WRT54GL router, and three clients,
(say ADS1, ADS2, ADS3) each of which has full internet access, none of
which can see the others.

Each has hostname set properly in both /etc/hosts and
/etc/sysconfig/network, e.g.

[ads@ADS1 etc]$ cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost ADS1

[ads@ADS1 etc]$ cd sysconfig
[ads@ADS1 sysconfig]$ cat network
NETWORKING=yes
HOSTNAME=ADS1
[ads@ADS1 sysconfig]$

Same for the others. But the names ADS1, ADS2, and ADS3 are not
recognized by ping or anything else.

[ads@ADS1 $ ping ADS2
ping: unknown host ADS2
[ads@ADS1 sysconfig]$

What am I missing?

Thanks.

-Al


 
Reply With Quote
 
 
 
 
Dave Uhring
Guest
Posts: n/a

 
      07-30-2007, 01:43 AM
On Mon, 30 Jul 2007 00:58:54 +0000, Al Schapira wrote:

> I have a LAN with DHCP in a linksys WRT54GL router, and three clients,
> (say ADS1, ADS2, ADS3) each of which has full internet access, none of
> which can see the others.


Why are you using DHCP for what I presume are fixed, non-portable
machines?

> What am I missing?


Proper entries in /etc/hosts files or a dynamic DNS server.

 
Reply With Quote
 
Axel Werner
Guest
Posts: n/a

 
      07-30-2007, 07:40 AM
Al Schapira schrieb:
> I have a LAN with DHCP in a linksys WRT54GL router, and three clients,


You got WHAT?! a LAN WITHIN YOUR ROUTER ? lol

> Each has hostname set properly in both /etc/hosts and
> /etc/sysconfig/network, e.g.
>
> [ads@ADS1 etc]$ cat hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost ADS1

....
> [ads@ADS1 $ ping ADS2
> ping: unknown host ADS2
> [ads@ADS1 sysconfig]$
>
> What am I missing?



nearly anything that have something to do with HOSTNAME-RESOLUTION. this
is linux. not windows. as far i can understand your configuration now..
u got 3 hosts.. and EVERY HOST KNOWS HIMSELF. well done! but wouldnt it
be nice if one host also knows the other one ?

in linux for name resolution you will need either /etc/hosts file, DNS
or similar Services to resolv hostnames into ip adresses. there is no
"master browser" thingy like in simple windows peer 2 peer networks that
run by default.

so the easiest way for you would be to enter ALL HOSTS you wanna hit by
a NAME than an IP Adress into your /etc/hosts ON ANY OF YOUR HOSTS.

example /etc/hosts

x.x.x.x ads1
y.y.y.y ads2
z.z.z.z ads3

then if u ping ads2 at the host ads1 it will find it.


the better and more sofisticated version of name resolution would be to
install an DNS Server. but this means some RTFM and work to do. for
small "on desk" networks the version 1 might be good enough. for larger
networks and more hosts you should think about DNS. read more about DNS
and name resolution at any WIKI web. its worth a lot!

greets
Axel
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
local DNS service behind a Linksys wired router? BCage Wireless Internet 2 01-04-2007 01:32 AM
DNS problem on local machines matt Linux Networking 2 04-04-2006 04:09 PM
Help: Mandriva drops DHCP IP address nor can't ping to local host Michael Badt Linux Networking 6 07-19-2005 02:35 AM
Cannot ping machines behind a wireless AP Brad Pears Wireless Networks 2 07-15-2005 06:27 PM
WinME won't network w Win2000 or Apple X local machines Chris H Windows Networking 1 04-10-2004 03:26 PM



1 2 3 4 5 6 7 8 9 10 11