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



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
.



Relevant Pages

  • Re: Slow rlogin after upgrade to 5.2.
    ... :)> Hemant Shah writes: ... :)>>:)Sounds like a name resolution problem. ... :)> As far as that goes, an nslookup "over there" of your AIX box's DNS ... :)posts its on the hosts defined locally. ...
    (comp.unix.aix)
  • Re: Stopping all invalid domains from resolving to server IP
    ... > before DNS. ... Could you try the nisplus from the hosts entry in your ... > you will have to look there for your odd name resolution issues. ... I do not need NIS+, ...
    (linux.redhat)
  • Re: How is DNS resolution working?
    ... >> I know that we don't have anything in the hosts or lmhosts files on ... >> the settings for the DNS in network properties. ... > machine A to point to a WINS server for NetBIOS name resolution to be ... > lmhosts files, and I'm pretty sure that we didn't configure any IP ...
    (microsoft.public.win2000.dns)
  • Re: How is DNS resolution working?
    ... >> I know that we don't have anything in the hosts or lmhosts files on ... >> the settings for the DNS in network properties. ... > machine A to point to a WINS server for NetBIOS name resolution to be ... > lmhosts files, and I'm pretty sure that we didn't configure any IP ...
    (microsoft.public.win2000.networking)
  • R: remapping IP addresses for inbound and outbound traffic
    ... I guess you can't do this, since a believe there is a single linux arp table. ... If you had hosts with unique IPs on both nets, that would be another story: you could use some sort of VPN or Bridge functionality. ... You could also be able to avoid packets passing through the bridged/VPNed interfaces thanks to iptables. ... Let one Linux box have two interfaces to IPv4 networks, ...
    (Linux-Kernel)