New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Additional IP addresses / CentOS - Solved Please close
Freelancenerds
Member
We have just bought a dedicated server off Delimiter and we also purchased 4 extra IP's.
My question is how do we point the extra IP's to our new server? The IP's just time out. We used a dedicated server last year and installed SolusVM and that seemed to pick up our extra IP's automatically. We did ask for a cancel of the extra IP's but have had no reply, we have paid for them for 3 months so I guess we would try again. This is a collage project and we would appreciate any help from the community. We have posted this in the help category of this site, please note that we are leaning and can do without rude or sarcastic comments.
This discussion has been closed.
Comments
Add the IP addresses to your VLAN.
You most likely need to add the i addresses to your server.
Look at the file /etc/networking/interfaces.
Presuming a standard setup (BE SURE TO CHECK!!).
add something like:
eth0 may be em0 (if you are using the new naming scheme).
There are other ways to do this (this is actually a slightly outdated way).
Ask your host for the values of $NETMASK and $GATWAY, or you may be able to get them from eth0 if the subnets are the same.
repeat this (eth0:1) for each IP address.
We have /etc/NetworkManger and inside this folder is folder VPN and folder dispatcher.d with no files in them.
If you want assistance, please provide a full description of your setup (i.e distribution)
Note, the correct path was /etc/network/interfaces
Sorry.
If you have /etc/NetworkManager, you're probably using RHEL/Fedora based distributions.
In CentOS, it is something in the /etc/network/network-scripts.
In the "/etc/sysconfig/network-scripts" directory
Make a new file "ifcfg-eth0:0"
add the following
DEVICE=eth0:0
BOOTPROTO=static
ONBOOT=yes
IPADDR="2nd IP address"
GATEWAY="same GATEWAY IP as in file "ifcfg-eth0"
NETMASK="same NETMASK as in file "ifcfg-eth0"
Make a new file "ifcfg-eth0:1"
add the following
DEVICE=eth0:1
BOOTPROTO=static
ONBOOT=yes
IPADDR="3rd IP address"
GATEWAY="same GATEWAY IP as in file "ifcfg-eth0"
NETMASK="same NETMASK as in file "ifcfg-eth0"
Make a new file "ifcfg-eth0:2"
add the following
DEVICE=eth0:2
BOOTPROTO=static
ONBOOT=yes
IPADDR="4th IP address"
GATEWAY="same GATEWAY IP as in file "ifcfg-eth0"
NETMASK="same NETMASK as in file "ifcfg-eth0"
reboot server
We where using CentOS 5 and had no network folder only NetworkManager. Ive reinstalled to Centos 6 and still no network folder only NetworkManger.
@Freelancenerds read @FrankZ post, it should be correct.
Sorry I made my post just before you made yours. Ive found that path and will try.
Good hunting. If you have any further questions just let us know
Yes this worked. Thank you very much and also thanks to the other guys.
One more question.
Would this also apply to IPV6?
@Freelancenerds - All of your IPv6 addresses go in the "ifcfg-eth0" file and should look something like this...
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFAULTGW="2604:bb60:badb:bb01:0000:0000:0000:0001"
IPV6ADDR_SECONDARIES="2604:bb60:badb:bb01:dead:beef:0000:100a/64"
multiple IPv6 addresses can go in the "IPV6ADDR_SECONDARIES=" with a space in between each address.
OK, thanks again.