India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

Build Something Beautiful

With a .Co.ke Domain

Just KES 399 (Back to 999 in 7 days)

How to Add an Additional IP to a Server

Last updated on February 1st, 2025 at 09:33 am

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

Read More Posts

50 cool domain name ideas

Examples of Cool Domain Names

Last updated on February 1st, 2025 at 09:33 amComing up with cool domain names can be frustrating.You want…

Truehost Reseller Hosting Kenya mockup webhosting reseller business. realistic of a young african entreprneur mana 406577

Managed vs Self-managed Servers: Which One Fits Your Needs?

Last updated on February 1st, 2025 at 09:33 amIf you’re building a website, app, or platform that demands…

Obodo.shop businesses using .shop domain

Top Businesses Using .Shop Domain

Last updated on February 1st, 2025 at 09:33 amYou’ve probably seen websites ending in .com or .co.ke. But…

Benefits of Having a Website in 2025

Is It Worth Having a Website in 2025? Factors to Consider for Your Business

Last updated on February 1st, 2025 at 09:33 amHave you ever asked yourself if it’s really worth having…