[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

Multiple Public IP for Gateway, EMail, And Others


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 :)


  • 2
1 Solution
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...
marvelsoftAuthor Commented:
Where do I execute this command, is this on the my gateway or another server?
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...


Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now