Hosting Talk | Web Hosting talk India

Web Hosting   Add Host and Hosting News 

 

Go Back   Hosting Talk | Web Hosting talk India > Web Hosting Main Forums > Web Hosting > Web Hosting Tutorials

Ads

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2012, 10:17 AM
bullten bullten is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Wink Add More or Additional ip's To Linux Box

Many Web Hosting Company providing UnManaged Server counts adding additional Ip in linux distro as managed service and can charge you dollars for it. To rest that aside we have come up with a tutorial so that anyone can easily add N number of ip in linux Dedicated Server or VPS Server

How to Ad Ip Address

First, Login as root through ssh and change the current working directory to /etc/sysconfig/network-scripts

Code:
cd /etc/sysconfig/network-scripts
Second, find what network adapter is currently been used in your server using ls ifcfg-*

Code:
ls ifcfg-*


Third, In the above figure you can see ifcfg-eth0 ifcfg-lo ifcfg-venet0 are shown but one must be your working adapter. To find that out use the command below

Code:
ifconfig


In above figure your can see your Ethernet eth0 is having your server main ip address. So we will configure using that.

Fourth, you have to make a clone of etho and name it as eth0:0 using the command below

Quote:
cp ifcfg-eth0 ifcfg-eth0:0
Fifth, edit ifcfg-eth0:0 and change DEVICE to eth0:0 and change IPADDR to new ip address you want to add. See the picture below:



Sixth, Now everything is done and you just need to take the ip address live using the command below

Code:
ifup eth0:0


Just follow step fourth to sixth to add N numbers of ip’s by adding n number of interface to your server.

If you hang somewhere feel free to contact our support.

Source: How to Add Ip Address in Linux Server
Reply With Quote
  #2  
Old 06-22-2012, 10:45 AM
jitender jitender is offline
Administrator
 
Join Date: May 2012
Posts: 104
Default

hi

it's good tutorial, well brief too.

jitender
Reply With Quote
  #3  
Old 12-14-2017, 12:14 PM
Sameerpatan Sameerpatan is offline
Junior Member
 
Join Date: Nov 2017
Posts: 0
Default

Very effective information shared.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2018, SEO by YABBSEO 1.0 2012, YABSoft.com.