On Tue, 6 Feb 2001, John Helly wrote:
> Hi.
> I am using DHCP behind a Linksys router to obtain local IP addresses and
> have discovered that even though I can assign a name to my RH6.2 Intel
> machine somehow the system is not realizing its name. I confirmed this by
> determining the IP address using 'pump -i eth0 --status' and then putting
> this IP address in the /etc/hosts file. However, this seems to defeat some
> of the benefits of using DHCP since you potentially have to do it every
> re-boot. I must be missing something simple. Samba won't work unless the
> system can resolve its name and it works with this kluge. However, even
> with this kluge I don't get any response from ping using the hostname even
> though it works fine with the explicit IP address. Whazzup?
> cheers.
>
DHCP doesn't work well for servers, unless you configure it to assign a
specific IP address based on the MAC address of the NIC. I do not
believe you can do this with the Linksys router's DHCP setup. You have
a couple of options - you could configure the router so that the IP of
the server is not part of the DHCP pool, and configure the Samba server
with a static IP. You could also turn off the DHCP server on the
router, and make the Samba server a DHCP server as well. That way you
can run a local name server, and have the DHCP server give that
information out as well. They you can ether set up your name server so
the DHCP server updates its tables, or set up the DHCP server so that it
gives out the hostname at the same time it gives out the IP address.
Right now, the tools for giving a machine a dynamic IP address while
still giving it a fixed name are a bit primitive...
Now, when if comes to pinging a machine by name, the machine you are
pinging from has to know the IP address that goes with the name. It
doesn't matter if the machine you are trying to ping know itself by that
name or a different one. This is because when you ping a machine by
name, the first thing that is done is to translate the name to an IP
address. Then the routing code desides how to send it so that it gets
to the correct machine.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list