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.

Add multiple IP

Discussion in 'Bind / DNS / Nameserver Issues' started by Nicu Vl, Sep 4, 2015.

  1. Nicu Vl

    Nicu Vl Registered

    Joined:
    Sep 3, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    Hi,

    I installed cpanel on CentOS 7.1. I have a primary ip and other ip class like that

    Primary IP is 82.208.2.22 other class 213.34.34.192/28 and it is routed via 82.208.2.22

    so

    When I add a class 213.34.34.192/28 in WHM work fine but I see just 9 IP. I try with rebuild but without success. In /etc/ips is like this 213.34.34.193:255.255.255.240:213.34.34.207 with all 14 ip's.


    When I try to /usr/local/cpanel/etc/init/scripts/centos/ipaliases restart I have this error

    Bringing up eno16780032:cp10 RTNETLINK answers: Numerical result out of range
    [FAILED]
    Routing 213.34.34.202 RTNETLINK answers: Invalid argument
    [FAILED]


    The first 8 ip's working fine just last 6 ip's not working.


    Thank you in advance for any help


    Best Regards,
     
  2. Nicu Vl

    Nicu Vl Registered

    Joined:
    Sep 3, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    Ree

    I make a test and I installed cpanel on centos 6.7 and works fine.
     
  3. Nicu Vl

    Nicu Vl Registered

    Joined:
    Sep 3, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    I found what the cause !

    It's a big problem to resolve that. It's a limitation of ip route at maximum number character

    It is not cpanel problem but must to solve that. so....

    If you have an interface like eno659345 when you add other IP cpanel make eno659345:cp1. If you have more than 9 IP's the interface is eno659345:cp10 and the maximum number of char name is big for ip route.

    THAT THE BIG PROBLEM.

    The name of network it is from BIOS eno.......
    To resolve that in simple way you must install CentOS and at the boot put that in a grub par. net.ifnames=0 biosdevname=0 like that

    GRUB_CMDLINE_LINUX="rd.lvm.lv=rootvg/usrlv rd.lvm.lv=rootvg/swaplv crashkernel=auto
    vconsole.keymap=usrd.lvm.lv=rootvg/rootlv vconsole.font=latarcyrheb-sun16 rhgb
    quiet net.ifnames=0 biosdevname=0"


    If you install that you have eth0 or eth1 .....

    P.S.
    If you don't want to reinstall you must to reconfigure grub and /etc/......network scripts name


    Best Regards,
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page