Re: [LUNI] Multiple servers, 1 IP

From: Dan Yocum (yocum@linuxcare.com)
Date: Tue Mar 27 2001 - 09:08:30 CST

  • Next message: C.J. Herr: "Re: [LUNI] Ameritech SpeedPath aDSL"

    You want to set up port forwarding per Martin's suggestion, but I have
    some comments/clarifications:

    Martin Maney wrote:
    >
    > On Mon, Mar 26, 2001 at 01:05:04PM -0600, Erich Kolb wrote:
    > > I have been assigned 1 static ip address from my DSL provider. I have
    > > sucessfully setup my personal website on a Linux server using apache. I have
    > > another server on my LAN that I would like to be assigned as something like
    > > ftp.mydomain.com. How do I do this with only 1 IP address? Should I add a
    > > CNAME in my DNS records? If so, what is the proper syntax?
    >
    > You can overload as many different names as you like on that single IP
    > address, but you can have only one machine with that address assigned to a
    > network interface. Splitting separate functions at one IP address off to

    Actually, that's not entirely correct. You can have as many IP's
    assigned to one physical NIC as you want, however, you'll need to set up
    different interfaces files (e.g.,
    /etc/sysconfig/network-scripts/ifcfg-eth0-range0). You just need to put
    the right info in there. The file (above) on Red Hat machines should
    look like this:

    IPADDR_START=192.168.0.100
    IPADDR_END=192.168.0.104
    CLONENUM_START=0

    Then restart your network and look at the output from ifconfig. You'll
    notice that you'll have a total of 6 interfaces listening on the same
    NIC: the original address of the machine and 5 others from 192.168.0.100
    -> 192.168.0.104, and each address can have it's own FQDN.

    Cheers,
    Dan

    -- 
    Dan Yocum, Sr. Linux Consultant
    Linuxcare, Inc.  630.697.8066 tel
    yocum@linuxcare.com, http://www.linuxcare.com
    Linuxcare. Putting open source to work.
    -=-
    Linux Users Of Northern Illinois: General Discussion Mailing list.
    For unsubscription, archives, and announcements only see http://luni.org
    



    This archive was generated by hypermail 2b29 : Tue Mar 27 2001 - 09:11:17 CST

  •