Skip to main content

Brand new WHM 11.44.1 VPS, additional IPs don't stay

Comments

6 comments

  • kernow
    This might work, from a shell, find out which eth the IP is bound to then run ( example) ip link set eth1 up
    0
  • Ark
    [quote="kernow, post: 1698872">This might work, from a shell, find out which eth the IP is bound to then run ( example) ip link set eth1 up
    That command does nothing. I know 'ifconfig' will show the current devices and virtual devices, and the extra IPs should be on eth0:cpX but ifconfig only shows eth0 (main shared IP) and "lo" for localhost IPs. I've Googled around and people having similar issues are all told in other thread that "/etc/init.d/ipaliases restart" will help, and for other people, it seems to. But for me, "/etc/init.d/ipaliases restart" actually will specifically *remove* the extra IPs.
    0
  • Ark
    A little bit of digging shows that /var/cpanel/mainip is 0 bytes and last modified March 26 (long before this VPS even was started) -- this causes /etc/init.d/ipaliases to grep against "\b\b" in the start) section, thus basically ignoring everything in /etc/ips ... How is mainip supposed to be populated?
    0
  • cPanelMichael
    Hello :) What method did you use to add the IP address? Did you modify files within /etc/sysconfig/network-scripts or did you simply use Web Host Manager? Thank you.
    0
  • Ark
    [quote="cPanelMichael, post: 1699231">Hello :) What method did you use to add the IP address? Did you modify files within /etc/sysconfig/network-scripts or did you simply use Web Host Manager? Thank you.
    It was added via WHM at IP Functions " Add a New IP Address with a 255.255.255.255 subnet. In fact, nobody SSHed into the VPS with any account, root or otherwise, until I noticed the 4th site dropped off the Internet. As a work-around, I did find that /var/cpanel/mainip would be regenerated by /scripts/mainipcheck but *only* if I deleted it first. /scripts/mainipcheck wouldn't do anything to fix the 0-byte file that came out of the box from GoDaddy's setup. The VPS was purchased yesterday, and although I'm the guy with root putting everything in place, I didn't pick GoDaddy as the hosting choice, so don't laugh at me for that..
    0
  • cPanelMichael
    I suggest consulting with GoDaddy's support team to have them check why their VPS templates are not populating the /var/cpanel/mainip file. Thank you.
    0

Please sign in to leave a comment.