Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    95

    Default IP addresses

    Hello,

    I have following problem: I have 5 IP addresses. First one is main one and used to host shared IP accounts. Two are free, and two are used for single IP account. When I reboot my server all addresses except main one are gone. Right now it\'s not problem since I don\'t have many accounts. But when I have 50 or more it woule be problem to add addresses manually every time. Until I add addresses again my single IP accounts do not work. When I add them after reboot this is what I get:

    SIOCSIFFLAGS: Cannot assign requested address
    eth0:4 is now up, 66.96.228.84 has been added
    Please wait while I rebuild your ipaddrpool
    [66.96.228.80] [66.96.228.80] [66.96.228.80] [66.96.228.82] [66.96.228.80] [66.96.228.80] [66.96.228.80] [66.96.228.80] [66.96.228.80] [66.96.228.80] [66.96.228.83] [66.96.228.80]
    Found 2 free ips. /etc/ipaddrpool has been updated

    Does anyone know how to keep IP addresses after reboot?


    Thanks,

    Dzevad Durakovic

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    105

    Default

    you can add the following line to

    /etc/rc.d/rc.local

    /etc/rc.d/init.d/ipaliases start

    there are other ways but this is the simplest to explain :O)

    Mike
    mshanks@ultraspeed.co.uk
    Http://www.ultraspeed.co.uk
    ICQ: 86889848

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    95

    Default

    It worked thanks


    Dzevad Durakovic

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    160

    Default

    where do you add that line to exactly?

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    [quote:e7c3cde611][i:e7c3cde611]Originally posted by totalufo[/i:e7c3cde611]

    where do you add that line to exactly?[/quote:e7c3cde611]

    Try this:

    echo &/etc/rc.d/init.d/ipaliases start& && /etc/rc.d/rc.local

    This will append the line to the bottom of /etc/rc.d/rc.local and you're done.

    Or, edit /etc/rc.d/rc.local and add this on a new line after the line that says fi:

    /etc/rc.d/init.d/ipaliases start

    You may want to backup /etc/rc.d/rc.local first to be on the safe side.

Similar Threads & Tags
Similar threads

  1. IP addresses
    By RasterMan in forum New User Questions
    Replies: 2
    Last Post: 04-19-2009, 09:55 AM
  2. What's going on with my IP addresses!?
    By xWho in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-15-2004, 05:13 AM
  3. IP Addresses
    By shar in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-15-2003, 12:05 PM
  4. IP addresses
    By welsh-wizard in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-17-2003, 09:57 AM
  5. IP Addresses
    By newera in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-13-2002, 08:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube