-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard TU wrote:
> Thanks a lot for your replies.
> I understand that one NIC can be configured to have multiple IP addresses.
> Here is my problem:
> I have two linux boxes, each with its own IP and hostname. Now I want to
> combine these two into one linux box, but still keep the two sets of IP
> addresses and hostnames. For example, when I go to the web page both
> hostnames should lead me to the linux box. Is this doable?
Yes, this is doable. And you have some choices as to how you do it.
For IP addresses, you can either have a couple of NICs in the one box,
with each NIC assigned one of the IP addresses in question, or you can
have one NIC in the box, with multiple IP addresses assigned to it.
For the hostnames (actually, DNS names), you can assign seperate names
for each IP address, or you can assign multiple names to one IP address.
For your web server, you can configure it with 'virtual server' IDs, so
that it answers from a different document root for each unique IP
address or DNS name it is responsible for. For instance, you can
configure the /one/ server to listen on all IP addresses, and answer
from /var/web/foo.com/ for any reference to an
http://foo.com/ page, or
from /var/web/bar.com/ for any reference to an
http://bar.com/ page
(assuming that foo.com and bar.com both resolve to the one system,
either through seperate IP addresses or the same IP address).
- --
Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFBXanAagVFX4UWr64RAjbDAJ4xppZtUzEyZDmt2Y59YN LMLRxUMQCeIl2+
Bz3lqe4hb1QZpC61yMwkAx0=
=hH0K
-----END PGP SIGNATURE-----