Skip to main content

IP Address adding issue due to RTNETLINK error

Comments

7 comments

  • Andrew
    Translate

    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 Services

    0
  • Rabijit Khuntia

    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
  • Andrew
    Translate

    This is the issue and the solution:

    https://support.cpanel.net/hc/en-us/articles/1500007799001-Cannot-add-IP-in-WHM-due-to-RTNETLINK-error

    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 Services

    0
  • Rabijit Khuntia

    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
  • Andrew
    Translate

    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 Services

    1
  • J0hnny00

    How can i change the interface name ?

    0
  • cPRex Jurassic Moderator

    Changing the interface name may vary depending on your server's configuration, but it isn't something that can be done inside cPanel.  You may want to speak with your specific provider to see about the safest way to change this without disrupting the service.

    0

Please sign in to leave a comment.