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

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

Multiple Public IP for Gateway, EMail, And Others

Experts,

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

MRV


0
marvelsoft
Asked:
marvelsoft
  • 2
1 Solution
 
kblack05Commented:
You can always alias the IP's to the different ethernet cards with 'ifconfig' for example

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

Let me know if you need more...
0
 
marvelsoftAuthor Commented:
Where do I execute this command, is this on the my gateway or another server?
0
 
kblack05Commented:
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 255.255.255.0

root#:

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

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

0

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