Results 1 to 4 of 4
Thread: How to add & assign IP ?
-
08-30-2007, 11:16 PM #1Web Hosting Evangelist
- 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
-
08-31-2007, 01:00 AM #2Newbie
- 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
-
08-31-2007, 04:47 AM #3Web Hosting Master
- 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 restartDavid | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
08-31-2007, 01:56 PM #4Newbie
- Join Date
- Aug 2007
- Posts
- 22
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.