Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2005
    Location
    UK
    Posts
    11

    Default IP Aliases,SSL and add New IP Address

    Can someone explain to me what "Add New IP Address" is supposed to do in the "IP Functions" section of WHM?

    I think it should setup ip aliases, i.e. eth0:0, the reason I ask is because I set one up and both my primary IP address and the new ip address where accessible from the internet, but after a reboot the new ip address was gone and I could not see it when issuing the ifconfig command from ssh. I manually recreated /etc/sysconfig/network-scripts/eth0:0 and all was ok again, should cPanel create this script for me?

    The other part of my question relates to SSL, do I need an IP address for every domain that requires an SSL certificate or if I am using shared ip address within cPanel can I just use the primary ip address?

    thanks

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You should not create the virtual interface manually and you'll need to delete it to get things working again.

    When you add a new IP address it should create it in /etc/ips on reboot the /etc/init.d/ipaliases script reads that file and create the virtual interfaces. If that's not happening, then you could add the running of that script to /etc/rc.d/rc.local for good measure.

    Yes, you must have a unique IP address for every domain that wants an SSL certificate.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2005
    Location
    UK
    Posts
    11

    Default

    Hi, thanks for getting back, I found errors during boot referering to trying to setup my secondary ip address, I traced this back to the /etc/init.d/ipaliases script. The start) part of the script was starting the alias at eth0:1 and Centos 4 expects it to start at eth0:0, therefore I had to alter the script as below:


    # See how we were called.
    case "$1" in
    start)
    defaultmask="255.255.255.0"
    #dev=1 - get errors if start dev at 1, i.e. eth0:1, needs to start at eth0:0
    dev=0
    for ip in `cat /etc/ips`; do
    broadcast=`echo $ip | awk -F: '{ print $3 }'`
    netmask=`echo $ip | awk -F: '{ print $2 }'`
    ip=`echo $ip | awk -F: '{ print $1 }'`
    if [ "$netmask" = "" ]; then


    was this the correct thing to do? Also I had to add the call to ipaliases to the /etc/rc.d/rc.local file as you suggested. Something else in the boot sequence must be disabling it.

    regards

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Odd, I've seen plenty of CentOS 4 servers that haven't had that problem. Are you running CentOS v4.1 with all the latest updates?

    If it works for you that is great, but a cPanel update is likely to overwrite your change to /etc/init.d/ipaliases, so you might want to consider logging the problem with cPanel in a ticket.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Jun 2005
    Location
    UK
    Posts
    11

    Default

    yes, i'm running CentOS 4.1 i686, I think i'll raise a support ticket and see what they say.

    thanks

Similar Threads & Tags
Similar threads

  1. SSL Certificate issues on Add-on Domain with Separate Dedicated IP address
    By jonathanD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-10-2011, 06:23 PM
  2. Can we add SSL certificate to an add-on domain?
    By mambovince in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 08-09-2009, 02:19 PM
  3. Add IP address
    By hcoltrain in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-30-2004, 05:44 PM
  4. Why cant cPanel users add their own domain aliases?
    By thecomplainer in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-29-2004, 01:23 AM
  5. Add new ip address
    By drmuey in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-15-2003, 10:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube