Adding IP addresses to the server

Issues related to configuring your network
Post Reply
deqaxwer
Posts: 6
Joined: 2015/07/23 04:29:35

Adding IP addresses to the server

Post by deqaxwer » 2015/07/23 04:34:25

Hi guys. I have some questions.

I'v bought from provider 5 white ips.

One of them I'm configured on my centos server.

How to add another 4 ips to the server. Let's say i have ip from provider 109.22.15.20. I'm accessing to my server and sites through this ip. now i want to add another ip which i bought 109.22.15.21 to this server. What should i do. My server local ip is 192.168.1.111.

Sorry for bad english

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Adding IP addresses to the server

Post by aks » 2015/07/23 17:00:39

Do you mean you wish to add a sub-interface, so eth0.0 has 109.22.15.20 and eth0.1 has 109.22.15.21?

User avatar
TrevorH
Site Admin
Posts: 33236
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding IP addresses to the server

Post by TrevorH » 2015/07/23 17:18:13

Read /usr/share/doc/initscripts-9.49.24/sysconfig.txt and look for IPADDRn=
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

deqaxwer
Posts: 6
Joined: 2015/07/23 04:29:35

Re: Adding IP addresses to the server

Post by deqaxwer » 2015/07/24 03:53:19

No.

I'm accessing to my server and sites from internet with 109.22.15.20 ip.

Now i want to access to my sites and server through other ips which i bought from provider. Lets say 109.22.15.21 or 109.22.15.22.

I was bought a vps server, there i had 1 ip, but there i could pay and bought another ip for 2 $, i want something like that.

Now i configured my own web-server with centos and ispconfig. I want to add white ips there. but i'm accessing to my sites and server from only 1 ip. I want assign my other ips to my sites,

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Adding IP addresses to the server

Post by gerald_clark » 2015/07/24 04:37:14

Better ask your provider.
We don't know how they are doing that.

User avatar
TrevorH
Site Admin
Posts: 33236
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding IP addresses to the server

Post by TrevorH » 2015/07/24 10:26:56

It is unclear from your comments whether you want to add another IP address to the server so that it can listen for requests addressed to that ip or if you want to _access_ the server from a different IP address. All comments so far have been about adding IP addresses to the server so that it can listen on them and the information about that is still correct.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply