How to Configure an Additional IP Address

How to Configure an Additional IP Address

Applies to: AlmaLinux 8 & 9, Rocky Linux 8 & 9

For Digitalberg VPS & Dedicated Server Clients


To configure an additional IP address on your Digitalberg server, follow the steps below carefully. This guide assumes you are using NetworkManager.

Step 1: Identify Your Main Network Interface

Run the following command:

ip a

Note the name of the main network interface. This is usually something like eth0.


Step 2: Create a New Configuration File

Each additional IP requires a separate configuration file in the /etc/sysconfig/network-scripts/ directory.

Use this format for the file name:

ifcfg-NETWORK_INTERFACE:ID

For example, for the first alias on eth0, use:

ifcfg-eth0:0

Create the file using:

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

Step 3: Add the Configuration

Paste the following lines into the new file, replacing the values with your actual interface and IP:

DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=none  # Use "static" for CentOS
IPADDR=ADDITIONAL_IP
NETMASK=255.255.255.255
BROADCAST=ADDITIONAL_IP

Save and close the file.


Step 4: Restart the Network Interface

Apply the changes with:

sudo systemctl restart NetworkManager

Troubleshooting

  • If the additional IP doesn’t respond after restarting NetworkManager, try rebooting the server.
  • You can also test the configuration by setting the IP manually:
ifconfig eth0:0 ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP up

Then try pinging the IP from an external device.


Still Not Working?

If you’re still facing issues:

  1. Ensure the IP is correctly routed and assigned to your server from the Digitalberg client panel.
  2. Confirm that your firewall or security rules aren’t blocking traffic to the new IP.
  3. If you’re unsure, feel free to open a support ticket via your Digitalberg dashboard and share the following:
  • Your OS name and version
  • Name of the interface used
  • The full content of the new config file

How to Install Virtualmin and Webmin Control Panel – A Complete Guide

Are you seeking a powerful, free control panel to manage your dedicated server or VPS? Virtualmin and Webmin offer advanced server management with a user-friendly interface. This guide will help you install Virtualmin and Webmin step-by-step with all the necessary commands. 🚀

Why Choose Virtualmin & Webmin?

Free & Open-Source – No extra cost for a powerful control panel.
Feature-Rich – Includes DNS, database, email, and web server management.
Lightweight & Secure – Uses minimal resources with strong security.
Easy Management – Web-based interface for easy configuration.

Step 1: Update Your Server

Before installing Virtualmin, ensure your server is up-to-date.

sudo apt update && sudo apt upgrade -y

For CentOS/Rocky Linux:

yum update -y

Step 2: Download & Install Virtualmin

Run the following command to download and install Virtualmin:

wget http://software.virtualmin.com/gpl/scripts/install.sh
sudo chmod +x install.sh
sudo ./install.sh

The script will prompt you for input—choose default settings for an optimized setup.

Step 3: Access Virtualmin & Webmin

Once the installation is complete, access the Webmin control panel in your browser:

https://your-server-ip:10000/

🔑 Login Credentials:

  • Username: root
  • Password: Your root password

Step 4: Configure Virtualmin for Your Server

  1. Set Up Hostname: hostnamectl set-hostname yourdomain.com
  2. Add a Website:
    • Go to Virtualmin > Create Virtual Server.
    • Enter your domain name and settings.
    • Click Create Server.

Step 5: Secure Your Server

🔒 Enable Firewall

sudo ufw enable
sudo ufw allow 10000/tcp

🔑 Install an SSL Certificate (Let’s Encrypt)

  • In Virtualmin, navigate to Server Configuration > SSL Certificate.
  • Click Let’s Encrypt > Request Certificate.

How DigitalBerg Installs Virtualmin for You

If you buy a dedicated server from DigitalBerg, we handle the Virtualmin & Webmin installation for you! Our process includes:

Pre-configured Virtualmin/Webmin setup
Optimized security & performance settings
Full SSL and Firewall protection enabled
24/7 expert support for server management

🚀 Get a dedicated server today and let our team configure everything for you!

Conclusion

You have successfully installed Virtualmin and Webmin on your server! 🎉 Now, you can easily manage your websites, databases, and emails.

💡 Need a powerful dedicated server? Check out DigitalBerg’s dedicated servers for high performance and security.