The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with the second IP after Clon VM instance

Discussion in 'General Discussion' started by ITGabs, Oct 13, 2014.

  1. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    I recently cloned a Cpanel instance, and now I am having problem with the second IP

    I guess the only thing that I need is to reset the second IP or rebuild (cpanel have some script to do that?)

    Some Info:
    • I exported the cpanel virtual machine into a OVA (with vmware sphere)
    • Imported the cpanel virtual machine (into another datastore) from the OVA resulting in some troubles related to peripheral virtual hardware and losing the network configuration (network adapter MAC change)
    • Updated the network configuration to use the same IPs than before
    • Added the second IP
    • Run the script /usr/local/cpanel/cpkeyclt (since WHM was blocked)
    • Deleted a file /etc/udev/rules.d/70-persistent-net.rules (was creating networks conflicts after reboots)
    • I checked and rechecked WHM configuration to try to fix the second IP problem

    The problem is quite strange the domains assigned in the second IP are resolving ok but the email of some accounts are producing "time out"

    I checked with some online dns tools and there is a problem with the nameserver assigned to the second ip, is not resolving.
     
  2. ITGabs

    ITGabs Well-Known Member

    Joined:
    Jul 30, 2013
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    well finally was cpanel forcing eth0:cp1 instead of my default eth0:0 in that way after reboot I was losing the gateway for the second ip

    I fixed the problem creating ifcfg-eth0:cp1
    cat /etc/sysconfig/network-scripts/ifcfg-eth0:cp1
    Code:
    # Configuration for eth0:cp1
    DEVICE=eth0:cp1
    BOOTPROTO=static
    
    ONBOOT=yes
    
    # eth0:cp1
    IPADDR=108.170.13.5
    NETMASK=255.255.255.248
    to avoid reboot

    Code:
    ifup eth0:cp1
    service network restart
    This tools was quite helpful DNS check tool
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page