Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Change / Update Subnet Mask

Discussion in 'General Discussion' started by ianmarie, Oct 7, 2008.

  1. ianmarie

    ianmarie Well-Known Member

    Joined:
    Mar 27, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    156
    I have several extra ip's on a machine, which have all been added with what I think is the wrong subnet mask. Even though everything appears to be functioning properly (over 18 months or more); I'm trying to figure out how to adjust these without disrupting services.

    I think the way I do this is by adjusting the entries in /etc/ips
    and then...
    service ipaliases restart

    ifconfig shows me all the entries eg
    eth0:1 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
    inet addr:xx.xx.xx.10 Bcast:xx.xx.xx.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Base address:0xa400 Memory:f2000000-f2020000

    The network mask for this machine (from when I first got it) is xx.xx.xx.224

    /etc/ips
    has entries like
    xx.xx.xx.11:255.255.255.0:xx.xx.xx.255
    xx.xx.xx.12:255.255.255.0:xx.xx.xx.255

    I think I need to adjust this to be
    xx.xx.xx.11:255.255.255.224:xx.xx.xx.255
    xx.xx.xx.12:255.255.255.224:xx.xx.xx.255

    I have xx'd out the actual ips here

    I think the 255.255.255.0 (rather than 255.255.255.224) was allocated by default when setting up the ips in whm.

    Thanks anyone...
    :)
    Ian
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice