Re: Configuring hostname, domainname, and IP address

linuxquestion_at_yahoo.com
Date: 01/02/04


Date: 2 Jan 2004 13:20:44 -0800

Thanks for the responses. Ok, I tried this:

change /etc/hosts to:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 red.testrac.com red localhost.localdomain localhost
10.0.0.1 red.testrac.com red

reboot

ping -c 1 red
PING red.testrac.com (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from red.testrac.com (127.0.0.1): icmp_seq=0 ttl=255 time=302 usec

# ping -c 1 red.testrac.com
PING red.testrac.com (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from red.testrac.com (127.0.0.1): icmp_seq=0 ttl=255 time=17 usec

- it's still looking at 127.0.0.1

hostname --long
red.testrac.com

hostname --short
red

But, it still can't see the IP address that I want to assign
to this machine:

ping -c 1 10.0.0.1
connect: Network is unreachable

dnsdomainname
testrac.com

How do I assign the IP address to the machine?

Thanks

---------------

BTW, I notice that your domain is: philippines-island.org Two of
my girlfriends were Phillipina (not at the same time). They
picked me. They had long hair past their waist.

---------------

Baho Utot <baho-utot@philippnies-island.org> wrote in message news:<e04fc1-6k4.ln1@mindanao.philippines-island.org>...
> linuxquestion@yahoo.com wrote:
>
> > HI,
> >
> > Sorry to ask another dumb question.
> >
> > I want to configure my Redhat Advanced server 2.1 to
> > into a local network. I plan to have only two nodes.
> >
> > hostname: red
> > ip address: 10.0.0.1
> > domainname: testrac.com
> >
> > hostname: white
> > ip address: 10.0.0.2
> > domainname: testrac.com
> >
> > So far, I am only working with the first machine, red.
> > I'm trying to get the machine to recognize itself as
> > red.testrac.com, at IP 10.0.0.1. On domain: testrac.com
> >
> >
> > I have modified these files:
> >
> > cat /etc/hosts
> > # Do not remove the following line, or various programs
> > # that require network functionality will fail.
> > 127.0.0.1 red red.testrac.com localhost.localdomain localhost
> > 10.0.0.1 red red.testrac.com
> >
>
> The format is FQDN followed by aliases
>
> This is what it should read instead
> 127.0.0.1 red.testrac.com red localhost.localdomain localhost
> --------------- +++ +++++++++++++++++++++ +++++++++
> where ---- is the fully qualified domainname
> and ++++ are aliases
>
> >
> > cat /etc/sysconfig/network
> > NETWORKING=yes
> > HOSTNAME=red.testrac.com
>
> Ok
>
> > hostname --long
> > red
> > (odd. Why not the whole name?)
>
> Because the hosts file is barfed
>
> >
> >
> > domainname
> > (none)
>
> Ok
>
> >
> > dnsdomainname
> > - nothing
>
> Should read
> dnsdomainname
> testrac.com red
>
>
> Later Dude



Relevant Pages