Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    516

    How to add & assign IP ?

    I want to know how do I add new IP to my server via SSH command?

    I am using cPanel and I am aware I can do that inside WHM but the problem now is I have just changed my server IP and my cPanel license IP is not updated yet. It shows me "Invalid License" when I login.

    I also want to know how can I assign the new IP manually via SSH?

    Please help. THanks

  2. #2
    Join Date
    Aug 2007
    Location
    Chicago, IL
    Posts
    24
    This should work for you, might have to adjust it for your *nix version though:

    http://www.usefulutilities.com/support/technote/2l.html

  3. #3
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    Make sure the IP is allocated to your server

    Add the IP address in the file /etc/ips. It should look like given below. Net mask (255.255.255.248) should be given as it is given for the existing IP.

    111.111.111.111:255.255.255.248

    Run the following command.

    service ipaliases restart
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  4. #4
    after login to the system you can assign new IP By using
    # netconfig
    Then Give the IP address ,Mask,Gateway,etc
    [COLOR=Red][B]If you want to give Virtual IP this also posible by giving
    #netconfig eth0:0 or netconfig eth1:0 since you NIC is eth0 or eth1

    <<Signature to be setup in your profile>>
    Last edited by anon-e-mouse; 08-31-2007 at 05:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •