Multiple Public IP for Gateway, EMail, And Others

Posted on 2006-05-24
Last Modified: 2013-12-15

I am a small linux administrator. In my dsl account I've provided 5 public IP addresses and I want them to assigned into diffirent services such as gateway, email server, ftp and others. In my gateway I've installed 2 LAN Cards with MASQ NAT/FIREWALL. The eth0 as internal LAN ( and eth1 is my 1st public ip where the dsl cable is connected. With this setup it works fine as simple as it was.

I want to assigned the 4 remaining public ip address in diffirent servers. Just to cater my ftp, email and other services to access them remotely. Is my idea or setup possible? What is the configurations to do just to access every services/servers remotely?

Thanks in advance :)


Question by:marvelsoft
    LVL 11

    Expert Comment

    You can always alias the IP's to the different ethernet cards with 'ifconfig' for example

    ifconfig eth0:1 would alias the second IP as a new interface served off of eth0.

    Let me know if you need more...

    Author Comment

    Where do I execute this command, is this on the my gateway or another server?
    LVL 11

    Accepted Solution

    You would do this from the linux shell on the Gateway system. From what you have posted, you'll have eth1:1 and so forth since eth1 is your external interface. Note that you will need to modify the /etc/init.d/rc.inet (depending on distro) to make this a permanent change.

    root#: ifconfig eth1:1 123.456.789.12


    Note that you will need to use the format of
    interface ipaddress netmask

    From the linux box type 'man ifconfig' to get more info...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now