Knowledgebase

How to add & assign IP ?

Posted by hbhb, 08-30-2007, 11:16 PM
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

Posted by ADS | Ryan, 08-31-2007, 01:00 AM
This should work for you, might have to adjust it for your *nix version though: http://www.usefulutilities.com/support/technote/2l.html

Posted by david510, 08-31-2007, 04:47 AM
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

Posted by kgs_namboothiri, 08-31-2007, 01:56 PM
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 <> Last edited by anon-e-mouse; 08-31-2007 at 05:34 PM.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Sago Networks Down (Views: 597)
Nas server (Views: 645)


Language:

Client Login

Email

Password

Remember Me

Search