Rank #1 on Google Maps

How to Add an Additional IP to a Server

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in Kenya

Get your .Co.ke or .Com domain now for just KSh 999 (Back to 1200 in 7 days)

.CO.KE for KSh 999 | .COM for KSh 999

To add an additional IP to a server, follow these steps:

  1. Login to your Server via SSH Terminal
  2. Make sure you are logged in as the root user
  3. Run the following command: cd/etc/sysconfig/network-scripts/
  4. View current Network Adapters by running ls ifcfg*
  5. Note that the servers’ primary IP displays as “ifcfg-eth0” and “ifcfg-lo”
  6. Additional IPs on the server displays as “ifcfg-eth0:0”, “ifcfg-eth0:1”,
  7. To add an additional IP please run the command cp ifcfg-eth0 ifcfg-eth0:0
  8. Edit the ifcfg-eth0:0 configuration file by running vi ifcfg-eth0:0
  9. On the configuration file edit to change the “IPADDR” value to the new IP address and the “DEVICE” value to eth0:0
  10. Save the changes and exit the editor
  11. For changes to take effect and the IP to be recognized within the network run the following command
  12. /etc/init.d/network restart

Adding a Second and a Subsquent Additional Ip

– Just repeat the Processs

  1. Run the command cp ifcfg-eth0 ifcfg-eth0:0
  2. To open and edit the configuration file
  3. Run the command vi ifcfg-eth0:0
  4. On the configuration file edit to change the “IPADDR” value to the new IP address and the “DEVICE” value to eth0:0
  5. Save the changes and exit the editor
  6. For changes to take effect and the IP to be recognized within the network run the following command
  7. /etc/init.d/network restart

Well done You Have now added additional IP to the Server

Truehost website builder home cta

infocmsbased
Author

infocmsbased

View All Posts