<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The cPanel Admin &#187; networking</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Changing the Shared IP Address of a Live Server</title>
		<link>http://www.thecpaneladmin.com/changing-shared-ip-address-live-server/</link>
		<comments>http://www.thecpaneladmin.com/changing-shared-ip-address-live-server/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 18:38:21 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=500</guid>
		<description><![CDATA[There may come a point in time where you need to change the shared IP address of a server, with little to no interruption in service for your users. This guide will show you how to change the shared IP of your cPanel server with the method I&#8217;ve used in the past. This is intended [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/changing-sites-ip-address/' rel='bookmark' title='Changing a Site&#8217;s IP Address'>Changing a Site&#8217;s IP Address</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-on-shared-ip/' rel='bookmark' title='Installing an SSL Certificate on a Shared IP'>Installing an SSL Certificate on a Shared IP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There may come a point in time where you need to change the shared IP address of a server, with little to no interruption in service for your users.</p>
<p>This guide will show you how to change the shared IP of your cPanel server with the method I&#8217;ve used in the past. This is intended for intermediate to advanced administrators that have some basic knowledge of cPanel and networking.  This will only update the main IP of your server, and will not affect accounts that have dedicated IPs or SSL certificates.</p>
<h3><span id="more-500"></span>Update your TTLs</h3>
<p>The first thing you need to set your zone TTL&#8217;s on the server to a lower value a day or two prior to changing the IP, so the caching period is lower.  Caching DNS servers should be configured to use the TTL value, and while all may not be configured to work this way, you should prevent inconvenience to most of your users by configuring the value as low as possible &#8211; usually to 3200.</p>
<p>There may be some methodical science behind this that you can come up with, but I found that the easiest way to do change the TTL&#8217;s for everyone on one server is with a simple replace:</p>
<blockquote><p>replace 86400 3200 &#8212; /var/named/*.db</p></blockquote>
<p>You can change the first value to whatever you have your default TTL set to, which is indicated in /etc/wwwacct.conf. After this, use the following script to increment up the serial numbers:</p>
<p><a href="http://www.ndchost.com/cpanel-whm/scripts/updateserial/" target="_blank">http://www.ndchost.com/cpanel-whm/scripts/updateserial/</a></p>
<p>Now sync the zones out to the cluster to update your nameservers:</p>
<blockquote><p>/scripts/dnscluster synczone all</p></blockquote>
<h3>Add the new IP</h3>
<p>A couple days after you make this change, add the new IP to your server. You can edit<strong> /etc/wwwacct.conf</strong> to indicate the interface and IP that should be shared, but I find that having the main IP also be the shared IP works best. The reason for this is that if you, for example, have the eth0:1 interface as the shared IP, each IP added after that as an alias will have an interface of eth0:1:x and won&#8217;t work properly.</p>
<p>To change the main IP of the server:</p>
<ol>
<li>Edit <strong>/etc/sysconfig/network-scripts/ifcfg-ethx</strong> (ethx = adapter your public IP is on)</li>
<li>Modify IPADDR, NETMASK, GATEWAY and NETWORK to match your IP parameters (some may not be present)</li>
<li>Edit <strong>/etc/sysconfig/network</strong> to change additional parameters not preset in the previous file</li>
<li> Restart the network service</li>
</ol>
<p>NOTE: This example refers to a Redhat-type system.  Actual file names you need to edit would differ depending on what flavor of Linux you&#8217;re on.</p>
<h3>Update configurations</h3>
<p>Now, all you need to do is run a few more replace commands:</p>
<ul>
<li>replace $oldip $newip &#8212; /var/cpanel/mainip</li>
<li>replace $oldip $newip &#8212; /var/cpanel/userdata/*/*</li>
<li>replace $oldip $newip &#8212; /var/named/*.db</li>
<li>replace $oldip $newip &#8212; /etc/*</li>
<li>service named restart</li>
<li>/scripts/rebuildhttpconf</li>
</ul>
<p>You also need to run the same script as before to update the zone serials again (now that they have new IPs) and sync the domains back up to the clusters. Then use the same replace command (only opposite) to change the TTL&#8217;s back to the original values.</p>
<p>To complete the change, I would advise running a cPanel update in case any internal cPanel files are using the previous IP.</p>
<p><map name='google_ad_map_500_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/500?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_500_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=500&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fchanging-shared-ip-address-live-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=500&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/changing-sites-ip-address/' rel='bookmark' title='Changing a Site&#8217;s IP Address'>Changing a Site&#8217;s IP Address</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-on-shared-ip/' rel='bookmark' title='Installing an SSL Certificate on a Shared IP'>Installing an SSL Certificate on a Shared IP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/changing-shared-ip-address-live-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Assign Multiple IP Addresses on One Account</title>
		<link>http://www.thecpaneladmin.com/assign-multiple-ip-addresses-one-account/</link>
		<comments>http://www.thecpaneladmin.com/assign-multiple-ip-addresses-one-account/#comments</comments>
		<pubDate>Fri, 14 May 2010 19:10:25 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=450</guid>
		<description><![CDATA[By default, cPanel supports the usage of one dedicated IP per account. However, you can get around this by editing just a few files on the server. Here are the steps: 1. Edit /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN for each subdomain (for addon/parked domains you&#8217;ll usually edit the file for the subdomain associated with the addon/parked domain) and change [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
<li><a href='http://www.thecpaneladmin.com/setting-up-wildcard-dns-with-cpanel/' rel='bookmark' title='Setting Up Wildcard DNS with cPanel'>Setting Up Wildcard DNS with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default, cPanel supports the usage of one dedicated IP per account. However, you can get around this by editing just a few files on the server. Here are the steps:</p>
<p>1. Edit /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN for each subdomain (for addon/parked domains you&#8217;ll usually edit the file for the subdomain associated with the addon/parked domain) and change the <strong>ip</strong> value to a &#8216;dedicated&#8217; ip.</p>
<p>2. Run <strong>/scripts/rebuildhttpdconf</strong></p>
<p>3. Edit the dns zone for the subdomain (which will likely be attached to the parent domain) and update the a-record to point to that IP as well. Then syncronize the zone out to the DNS cluster, if one exists:</p>
<blockquote><p>/scripts/dnscluster synczone &lt;parentdomain&gt;</p></blockquote>
<p>4. Edit <strong>/etc/domainips</strong> and add an entry for that sudomain to point to the IP and run <strong>/scripts/rebuildippool</strong> to make sure the IP is marked as taken.<strong><br />
</strong></p>
<p><map name='google_ad_map_450_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/450?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_450_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=450&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fassign-multiple-ip-addresses-one-account%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=450&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
<li><a href='http://www.thecpaneladmin.com/setting-up-wildcard-dns-with-cpanel/' rel='bookmark' title='Setting Up Wildcard DNS with cPanel'>Setting Up Wildcard DNS with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/assign-multiple-ip-addresses-one-account/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Changing a Site&#8217;s IP Address</title>
		<link>http://www.thecpaneladmin.com/changing-sites-ip-address/</link>
		<comments>http://www.thecpaneladmin.com/changing-sites-ip-address/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 14:22:26 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=288</guid>
		<description><![CDATA[There are three ways to change a site&#8217;s IP address on a cPanel server: Via WHM: Go to WHM  &#62; Change site&#8217;s IP Address , select the account, then select the IP Via Command Line: /usr/local/cpanel/bin/setsiteip -u $user $ip Manually: -Edit /var/named/domain.com.db and increment the serial number. For help in changing DNS, see this post [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/changing-shared-ip-address-live-server/' rel='bookmark' title='Changing the Shared IP Address of a Live Server'>Changing the Shared IP Address of a Live Server</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are three ways to change a site&#8217;s IP address on a cPanel server:</p>
<h3>Via WHM:</h3>
<p>Go to <strong>WHM  &gt; Change site&#8217;s IP Address </strong> , select the account, then select the IP</p>
<h3>Via Command Line:</h3>
<blockquote><p>/usr/local/cpanel/bin/setsiteip -u $user $ip</p></blockquote>
<h3>Manually:</h3>
<p>-Edit /var/named/domain.com.db and increment the serial number. For help in changing DNS, see <a href="http://www.thecpaneladmin.com/cpanel-command-line-dns-cluster-management/" target="_blank">this post </a></p>
<p>-Replace instances of the old IP with the new IP in /var/cpanel/userdata and /var/cpanel/users</p>
<blockquote><p>replace 123.123.123.123 222.222.222.222 &#8212; /var/cpanel/userdata/user/*</p>
<p>replace 123.123.123.123 222.222.222.222 &#8212; /var/cpanel/users/user</p></blockquote>
<p>-If the new IP is shared, remove the user&#8217;s main domain entry from /etc/domainips. If it&#8217;s a dedicated IP, add/change the IP in /etc/domainips and /etc/ssldomains (if the site has an SSL)</p>
<p>-Run /scripts/rebuildhttpconf and /scripts/rebuildippool</p>
<p><map name='google_ad_map_288_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/288?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_288_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=288&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fchanging-sites-ip-address%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=288&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/changing-shared-ip-address-live-server/' rel='bookmark' title='Changing the Shared IP Address of a Live Server'>Changing the Shared IP Address of a Live Server</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/changing-sites-ip-address/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Adding IP Addresses to a Server</title>
		<link>http://www.thecpaneladmin.com/adding-ip-addresses-server/</link>
		<comments>http://www.thecpaneladmin.com/adding-ip-addresses-server/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 03:41:25 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=30</guid>
		<description><![CDATA[In a hosted multi-site environment you may find yourself needing to add multiple IP addresses to a server. Luckily, cPanel makes it very easy to add IP addresses. This article will go over adding IP addresses to standalone servers, both through WHM and from command line on a cPanel server. Why? You probably already know [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/mass-change-default-ddresses/' rel='bookmark' title='Mass Change Default (Catch All) Addresses'>Mass Change Default (Catch All) Addresses</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-sites-ip-address/' rel='bookmark' title='Changing a Site&#8217;s IP Address'>Changing a Site&#8217;s IP Address</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a hosted multi-site environment you may find yourself needing to add multiple IP addresses to a server. Luckily, cPanel makes it very easy to add IP addresses. This article will go over adding IP addresses to standalone servers, both through WHM and from command line on a cPanel server.</p>
<p><span id="more-30"></span><strong>Why?</strong></p>
<p>You probably already know why you need more IPs on your server if you&#8217;re reading this, but humor me for a second. Here are a few reasons why you might need to add some more IPs:</p>
<ul>
<li>You are hosting multiple accounts/sites, some of which utilize SSL certificates. Apache requires each SSL certificate to have its own IP, and cPanel (currently) limits each account to one IP address&#8230;</li>
<li>&#8230;So, you need to be able to assign sites to different IP addresses. Or  you host one of the idiots out there that thinks having each site on a separate IP is actually going to up their search engine rankings.</li>
<li>You need more IP addresses to send email from, because your mail server&#8217;s IP is blacklisted</li>
<li>You need to resolve routing or bandwidth problems between your server and other networks</li>
</ul>
<p>cPanel utilizes the ipaliases service to process additional IP&#8217;s as virtual interfaces. Those of you already familiar with Linux IP aliasing using the ifcfg command probably already know that you can add an IP alias to, say, eth0, with the following command:</p>
<blockquote><p>ifconfig eth0:0 123.456.789.123  netmask 255.255.255.0 up</p></blockquote>
<p>While this would technically work, it&#8217;s not how cPanel wants you to do it. When it comes to safely adding IPs to a standalone server, you have two options:</p>
<ul>
<li>Add the IP in WHM</li>
<li>Add the IP directly to the ipaliases configuration</li>
</ul>
<p><strong>Understanding the Process</strong></p>
<p>When you add an IP to a cPanel server using a supported method, cPanel performs the following process:</p>
<ol>
<li>Adds the IP as a alias to the main interface (usually eth0)</li>
<li>Rebuilds the IP Address pool (/scripts/rebuildippool ~&gt; /etc/ipaddrpool)</li>
</ol>
<p><strong>The WHM Method</strong></p>
<p>To add an IP address via WHM, you can simply log in as a root user and go to &#8220;Add a New IP Address&#8221;, enter the IP and its subnet mask, and hit &#8220;Submit.&#8221;</p>
<p><strong>The Command Line Method</strong></p>
<p>You can also add IPs via command line in a way that cPanel understands, which is mainly useful when doing automated server setups, or adding multiple IPs across multiple servers. To do this, you&#8217;d edit the ipaliases load file, which is <strong>/etc/ips</strong> . If you already have additional IP addresses on your server added as aliases you may already see how this file is formatted, but here&#8217;s an example:</p>
<blockquote><p>123.456.789.123:255.255.255.0:123.456.789.255</p></blockquote>
<p>This is a colon-delimited file with each IP address on its own line. The first field is the IP itself, the second is its subnet mask, and the third is its broadcast. You can add as many IPs as you need, putting each on its own line.  When you&#8217;re done, run the following commands:</p>
<blockquote><p>service ipaliases reload (or service ipaliases restart)</p></blockquote>
<blockquote><p>/scripts/rebuildippool</p></blockquote>
<p>To check whether the IPs have been added successfully, you can perform any of the following tests:</p>
<blockquote><p>/scripts/ipusage  &lt;~ will show the IP usage of the server</p></blockquote>
<blockquote><p>ifconfig &lt;~ will show all IPs on the server</p></blockquote>
<blockquote><p>ping $ip &lt;~ will ping the IP ($ip) you added to make sure it&#8217;s routing</p></blockquote>
<p>Note that for many VPS/Virtualized platforms (like Virtuozzo, OpenVZ, etc), you have to add the IP through the parent node in order for it to work. For OpenVZ/Virtuozzo, you would do:</p>
<blockquote><p>vzctl set $VEID &#8211;ipadd 123.456.678.123 &#8211;save  (pass &#8211;ipdel to remove an IP)</p></blockquote>
<p>Then enter into the VPS and run /scripts/rebuildippool . In some cases you may also need to refresh the cPanel license:</p>
<blockquote><p>/usr/local/cpanel/cpkeyclt</p></blockquote>
<p><strong>Removing an IP Address</strong></p>
<p>Removing IP is exactly the opposite, where you can remove the IP from WHM ~&gt; &#8220;Show or Delete Current IP Addresses&#8221; or by removing the IP lines from /etc/ips and reloading ipaliases.</p>
<p>Once you&#8217;ve added and assigned an IP to the server, cPanel will not let you remove it unless you change the IP address of the account using it to something else. If you want to override this, you can manually add the IP to /etc/ipaddrpool  and safely remove the IP via WHM. However, this in some cases has been known to unroute the other IPs on the server, so you&#8217;ll likely need to reload ipaliases again.</p>
<p><map name='google_ad_map_30_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/30?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_30_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=30&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fadding-ip-addresses-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=30&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/mass-change-default-ddresses/' rel='bookmark' title='Mass Change Default (Catch All) Addresses'>Mass Change Default (Catch All) Addresses</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-sites-ip-address/' rel='bookmark' title='Changing a Site&#8217;s IP Address'>Changing a Site&#8217;s IP Address</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/adding-ip-addresses-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

