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.

Better way to add IPs

Discussion in 'General Discussion' started by Daniel, Dec 4, 2001.

  1. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    There has to be a better way to add IPs than one at a time in WHM. Anyone know what file/files need to be edited. It would be great if you could put in a range of IPs in WHM but...
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    /etc/sysconfig/network-scripts

    ifcfg-eth0 is your primary IP config.
    Secondary addresses can be bound with files such as
    \"ifcfg-eth0:0\" , \"ifcfg-eth0:1\"

    In each of those files you can bind whole ranges like:

    \"IPADDR=123.123.123.12-88\"

    That would be in one particular file, such as ifcfg-eth0:0, for example, and would bind that entire range provided they are available routable through the gateway(s) configured on the machine.

    peace as always
    ;)
     
  3. Daniel

    Daniel Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the info! :D
     
Loading...

Share This Page