Networking question

Networking question

am 01.04.2004 19:15:51 von Tony Gogoi

Hello,

Is it possible to configure a host to have 2 different IP addresses each
associated with its own unique fully qualified domain name.

To be a little more precise,
let's say I have
/etc/sysconfig/network-scripts/ifc-eth0
configured for IP address 192.168.111.4 (say)

and I also have

/etc/sysconfig/network-scripts/ifc-eth0:0
configured for IP address 192.168.111.5 (say)

However, /etc/sysconfig/network allows (or seems to allow) only a common
hostname associated with the IP addresses defined in
/etc/sysconfig/network-scripts/ifc*

But what if I want 192.168.111.4 associated with hostname "buzz" and
192.168.111.5 associated with "bumble" on a host with a single ethernet
card eth0 ???

Thanks,
Tony


Tony Gogoi
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Networking question

am 01.04.2004 20:09:17 von Adam Lang

Your question and example don't seem to match. You are asking to have two
different ip addresses with the same host name, but your example is two ip
addresses with two different host names (buzz and bumble).

Which are you trying to do?

----- Original Message -----
From: "Tony Gogoi"
To:
Sent: Thursday, April 01, 2004 12:15 PM
Subject: Networking question


>
> Hello,
>
> Is it possible to configure a host to have 2 different IP addresses each
> associated with its own unique fully qualified domain name.
>
> To be a little more precise,
> let's say I have
> /etc/sysconfig/network-scripts/ifc-eth0
> configured for IP address 192.168.111.4 (say)
>
> and I also have
>
> /etc/sysconfig/network-scripts/ifc-eth0:0
> configured for IP address 192.168.111.5 (say)
>
> However, /etc/sysconfig/network allows (or seems to allow) only a common
> hostname associated with the IP addresses defined in
> /etc/sysconfig/network-scripts/ifc*
>
> But what if I want 192.168.111.4 associated with hostname "buzz" and
> 192.168.111.5 associated with "bumble" on a host with a single ethernet
> card eth0 ???
>
> Thanks,
> Tony

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Networking question

am 01.04.2004 20:24:13 von Tony Gogoi

Hi Adam,

Sorry for any confusion.
Its: 1 host with 2 hostnames. Each hostname has its own ipaddress.

Tony


On Thu, 1 Apr 2004, Adam Lang wrote:

> Your question and example don't seem to match. You are asking to have two
> different ip addresses with the same host name, but your example is two ip
> addresses with two different host names (buzz and bumble).
>
> Which are you trying to do?
>
> ----- Original Message -----
> From: "Tony Gogoi"
> To:
> Sent: Thursday, April 01, 2004 12:15 PM
> Subject: Networking question
>
>
> >
> > Hello,
> >
> > Is it possible to configure a host to have 2 different IP addresses each
> > associated with its own unique fully qualified domain name.
> >
> > To be a little more precise,
> > let's say I have
> > /etc/sysconfig/network-scripts/ifc-eth0
> > configured for IP address 192.168.111.4 (say)
> >
> > and I also have
> >
> > /etc/sysconfig/network-scripts/ifc-eth0:0
> > configured for IP address 192.168.111.5 (say)
> >
> > However, /etc/sysconfig/network allows (or seems to allow) only a common
> > hostname associated with the IP addresses defined in
> > /etc/sysconfig/network-scripts/ifc*
> >
> > But what if I want 192.168.111.4 associated with hostname "buzz" and
> > 192.168.111.5 associated with "bumble" on a host with a single ethernet
> > card eth0 ???
> >
> > Thanks,
> > Tony
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>



Tony Gogoi
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Networking question

am 01.04.2004 20:39:17 von Adam Lang

Ok, the other question then is, do you just need the hostname to work
locally for the computer?

Cause if it needs to work externally as well, you can add it to DNS.

name1 A 10.10.10.28
name2 A 10.10.10.29

Also, for local, you can add two entries to the /etc/hosts file.

This will allow you to resolve the name.

----- Original Message -----
From: "Tony Gogoi"
To: "Adam Lang"
Cc:
Sent: Thursday, April 01, 2004 1:24 PM
Subject: Re: Networking question


>
> Hi Adam,
>
> Sorry for any confusion.
> Its: 1 host with 2 hostnames. Each hostname has its own ipaddress.
>
> Tony
>
>
> On Thu, 1 Apr 2004, Adam Lang wrote:
>
> > Your question and example don't seem to match. You are asking to have
two
> > different ip addresses with the same host name, but your example is two
ip
> > addresses with two different host names (buzz and bumble).
> >
> > Which are you trying to do?
> >
> > ----- Original Message -----
> > From: "Tony Gogoi"
> > To:
> > Sent: Thursday, April 01, 2004 12:15 PM
> > Subject: Networking question
> >
> >
> > >
> > > Hello,
> > >
> > > Is it possible to configure a host to have 2 different IP addresses
each
> > > associated with its own unique fully qualified domain name.
> > >
> > > To be a little more precise,
> > > let's say I have
> > > /etc/sysconfig/network-scripts/ifc-eth0
> > > configured for IP address 192.168.111.4 (say)
> > >
> > > and I also have
> > >
> > > /etc/sysconfig/network-scripts/ifc-eth0:0
> > > configured for IP address 192.168.111.5 (say)
> > >
> > > However, /etc/sysconfig/network allows (or seems to allow) only a
common
> > > hostname associated with the IP addresses defined in
> > > /etc/sysconfig/network-scripts/ifc*
> > >
> > > But what if I want 192.168.111.4 associated with hostname "buzz" and
> > > 192.168.111.5 associated with "bumble" on a host with a single
ethernet
> > > card eth0 ???
> > >
> > > Thanks,
> > > Tony
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-admin"
in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
>
>
> Tony Gogoi

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Networking question

am 02.04.2004 00:50:24 von Glynn Clements

Tony Gogoi wrote:

> Is it possible to configure a host to have 2 different IP addresses each
> associated with its own unique fully qualified domain name.

Yes.

> To be a little more precise,
> let's say I have
> /etc/sysconfig/network-scripts/ifc-eth0
> configured for IP address 192.168.111.4 (say)
>
> and I also have
>
> /etc/sysconfig/network-scripts/ifc-eth0:0
> configured for IP address 192.168.111.5 (say)
>
> However, /etc/sysconfig/network allows (or seems to allow) only a common
> hostname associated with the IP addresses defined in
> /etc/sysconfig/network-scripts/ifc*

A system can only have one *host name* (sometimes referred to as a
node name). However, the host name is distinct from any DNS (or
similar) domain names which refer to IP addresses on that host.

The host name is the value returned by gethostname(), and also in the
nodename field in the result of uname(). This doesn't necessarily have
anything to do with networking; a system still has a host name even if
it doesn't have any networking capabilities.

> But what if I want 192.168.111.4 associated with hostname "buzz" and
> 192.168.111.5 associated with "bumble" on a host with a single ethernet
> card eth0 ???

If the association only needs to apply to the local host, you can just
add the necessary entries to /etc/hosts. If it needs to be visible
externally, you need to add entries to the DNS zone file.

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html