Add multiple IP
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,
-
Ree I make a test and I installed cpanel on centos 6.7 and works fine. 0 -
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, 0 -
Hello :) I am happy to see you were able to address the issue. Thank you for reporting the outcome. 0
Please sign in to leave a comment.
Comments
3 comments