LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   having 8 or more IP addresses? (https://www.linuxquestions.org/questions/linux-server-73/having-8-or-more-ip-addresses-4175467278/)

khronosschoty 06-25-2013 02:59 AM

having 8 or more IP addresses?
 
Forgive if this is not the right place to ask this. But is it possible to set up 8 more IP addresses?

If so how would I begin to go about this?

acid_kewpie 06-25-2013 03:22 AM

you need to define what you're actually asking here. you can use IP addresses in all manner of ways.

khronosschoty 06-25-2013 11:17 AM

I want 8 or more IP's that can access my web server that can all have their own Domain name assigned to them as well. I am trying to run a znc server and I need more IP's for it. I am using a VPS. Any tips? Thanks already!

Michael Wynne 06-25-2013 05:51 PM

ZNC is an IRC network bouncer, right? It is possible to use as many as 256 aliases per network interface. Without fully understanding what you are trying to do, I can offer this basic advice that I think may at least get you started.

First you need to contact your VPS host to get the IP's. These will probably require a periodic fee. Assuming your VPS's kernel has IP aliasing support, you can simply assign them to your VPS's interface using something like this to create an alias for each IP:

Code:

      vps# ifconfig eth0:0 192.168.6.1 up
      vps# ifconfig eth0:1 192.168.6.2 up
      ...

Of course, you will need to substitute your interface name for eth0 as it may be something else and include other parameters. If in doubt check the ifconfig man page.

You will probably want to make this permanent in your init scripts. On CentOS/RHEL, for example, create some ifcfg- files in /etc/sysconfig/network-scripts directory that include all your parameters for the interfaces. Use the existing files for reference, you should probably RTFM for your distro here.

Then you will need to update your DNS to associate the IP's with a domain.

You might also be able to add "physical" interfaces to the VPS if you didn't want to use aliases, but that's a lot more trouble, is less scaleable, and depends on how the VPS is setup on your host's end.

Good Luck,

--michael


All times are GMT -5. The time now is 12:12 PM.