The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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