cPanel Tutorial: How To Add An IP Address to Your ServerSeptember 20th, 2008 · No Comments
The following tutorial will show you how to add an IP address to a CentOS server with cPanel / WHM. The first thing you need to do when adding an IP address to a cPanel server is to make the necessary configuration changes at the operating system level. Start by logging in your server through SSH as root and change directory to /etc/sysconfig/network-scripts
# cd /etc/sysconfig/network-scripts In this directory, you will find some files that begin with “ifcfg-”. There will be one file for each of your physical network adapters and one file for each of your virtual adapters. In my case, the existing script files are:
So now what you need to do is to either copy an existing configuration file (if you have one of course) or create a new one. The new configuration file name must include the number of the virtual adapter. So supposing you want to add a fifth IP address from an existing script, you would issue: # cp ifcfg-venet0:3 ifcfg-venet0:4 Next you will need to edit this file so that it contains your new IP address. You can use “vi” to do so. DEVICE=venet0:4 ONBOOT=yes IPADDR=192.168.0.4 NETMASK=255.255.255.255 Of course you’ll have to change 192.168.0.4 for your new IP. Save the file when you’re done. To activate the new virtual adapter, issue this command: # /etc/init.d/network restart To make sure your new virtual adapter has been activated, use the “ifconfig” command. You should see the new adapter configuration details at the end. At this point, the new IP address should be working but now cPanel will be deactivated. To re-activate it, simply issue this command: /usr/local/cpanel/cpkeyclt Now you’ve got a new IP address and cPanel is running fine but there’s one more step to go. Although you’ve added a new IP address at the operating system level, you now have to make it available for cPanel. Log in WHM as root (http://www.yourserver.com:2086) and click on Add a new IP address from the IP Functions menu. Now simply enter the new IP address with the subnet mask 255.255.255.255 and hit the “Submit” button. So that’s it! You’ve now got an additionnal IP address available for your web server. Want to receive more tutorials like this? Click here to subscribe Related PostsPosted in Control Panels · Tutorials | No Comments |
Popular PostsLatest PostsLatest Deals & CouponsRecent Comments
Hosting ReviewsRecent WebmastersTag Cloud
1and1
apache
bluehost
centos
cheap web hosting
control panel
coupon
coupon code
cpanel
dedicated servers
dreamhost
godaddy
green web hosting
hostdime
hostgator
hostpapa
iis
inmotion hosting
knownhost
linux
lunarpages
mysql
openx
php
reseller hosting
shared hosting
system administration
vps
web hosting
web hosting comparison
Web Hosting Comparisons
whm
windows
windows 2008
wordpress
|
|||||||||
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment