IP Address adding issue due to RTNETLINK error
Hello, When I try to add IP to my WHM server I get the following error
Error warning The “/sbin/ip -family inet addr add xx.xx.xx.xx/29 broadcast xx.xx.xx.yyy dev enp10s0f1np1 label enp10s0f1np1:cp1” command (process 146609) reported error number 2 when it ended.: Error: Attribute failed policy validation.
The “/sbin/ip -family inet route add xx.xx.xx.xx dev enp10s0f1np1” command (process 146610) reported error number 2 when it ended.: RTNETLINK answers: File exists.
Please give me a solution.
Thanks
-
It seems the IP is already added. You can check it using "ip a" command from command line.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
When I try to add IP via Add a New IP Address in WHM it gives the error, I can see the IP address entry in /etc/ips. However not in "ip a" in command line.
0 -
This is the issue and the solution:
The kernel has a hard limit of 15 characters for the name of an interface. If your network interface has a long name, adding additional IPs will try to add 4+ characters to the name of the base interface, starting with ":cp1" and incrementing for each IP. If the name of your interface + the additional label exceeds 15 characters, the system will be unable to add the interface.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
I saw that link and tried to fix the issue by using the following command
ip a add xx.xx.xx.xx/xx.xx.xx.xx(subnet mask) dev enp10s0f1np1
the IP is added, can be seen in the whm but I don't know if it is the correct procedure or not.
0 -
You need to change the interface name "enp10s0f1np1" to something shorter to fix this.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services1
Please sign in to leave a comment.
Comments
5 comments