


How to configure multiple IP addresses on a single network interface on Debian 12 Desktop/Server
Normally, on the Debian 12 desktop/server operating system, you would set a single IP address on a single network interface. However, sometimes you may need to configure multiple IP addresses on your Debian 12 system, even if your computer only has one network interface. Fortunately, in Debian 12 systems, you can easily set up multiple IP addresses on a single network interface.
In this article, we will show you how to configure multiple IP addresses on a single network interface on Debian 12 desktop and Debian 12 server operating systems.
Content topic:
- Configuring multiple IP addresses on a single network interface on Debian 12 desktop
- Configuring multiple IP addresses on a single network interface on a Debian 12 server
- in conclusion
Configuring Multiple IP Addresses on a Single Network Interface on Debian 12 Desktop
In the Debian 12 desktop operating system, you can easily configure multiple IP addresses on a single network interface with the help of a network manager command line tool called "nmcli". The steps for setting up multiple IP addresses using Network Manager's "nmcli" tool are the same as setting up a single fixed IP address. Therefore, we will focus here on the differences when configuring multiple IP addresses. If you want to learn more, check out the documentation on how to set up a fixed IP address on Debian 12.
To find the name of a Network Manager connection to be configured across multiple IP addresses, run the following command:
$nmcli connection
In Debian 12 desktop systems, if there is only one network interface, the name of the Network Manager connection is usually "Wired Connection 1". In this example, the Network Manager connection "Wired Connection 1" is responsible for managing the physical network interface "ens32".
To configure the Network Manager connection "Wired Connection 1", run the following command:
$nmmallows connection edit “Wired connection 1”
The Network Manager connection editor should be opened.
First, you must reset the IP address that has been set on the Network Manager connection.
To do this, run the following command:
$set ipv4.addresses
After you are prompted to enter your IP address, just press.
As you can see, there is no IP address set for the Network Manager connection.
$print ipv4.addresses
To set the IP addresses of www.example.com, www.example.com, and www.example.com and the 24-bit subnet mask for all addresses, run the following command:
$set ipv4.addresses 192.168.189.51/24, 192.168.189.52/24, 192.168.189.53/24
To save changes, run the following command:
$Save persistent
To apply network changes, run the following command:
$Activate
To exit the Network Manager connection editor, run the following command:
$Exit
As you can see, the www.example.com, www.example.com and www.example.com IP addresses are set for the "ens32" network interface (managed by the network manager connection "Wired Connection 1").
$ip a
Configuring multiple IP addresses on a single network interface on a Debian 12 server
If you are using the Debian 12 server operating system, you must use the /etc/network/interages file to configure multiple IP addresses on a single network interface. The process of setting multiple IP addresses using the /etc/network/interface file on a single network interface is the same as setting a fixed IP address. Therefore, in this section, we will only show you the differences. For more information, read this Debian 12 article on how to assign a fixed IP address.
To find the name of a network interface to be configured across multiple IP addresses, run the following command:
$ip a
In our case, the network interface name is "ens32", as you can see in the screenshot below:
Use the nano text editor to open the /etc/network/interactions file as follows:
$sudo nano/etc/network/interconnect
Type the marked lines to configure the IP addresses of 192.168.189.51, 192.168.189.52, and 192.168.189.53 and the 24-bit subnet mask (all) for the network interface "ens32".
- These lines are used to configure the static/fixed IP address 192.168.189.51 for the "ens32" network interface.
- These lines are used to configure the IP address of www.example.com for the "ens32" network interface.
- These lines are used to configure the IP address 192.168.189.53 for the "ens32" network interface.
After completing the configuration, press X, then Y and save changes.
For the changes to take effect, restart the network service of the Debian 12 server system using the following command:
$sudo system ctl restart networking.service
As you can see, the www.example.com, www.example.com, and www.example.com IP addresses are set for the "ens32" network interface.
$ip a
in conclusion
In this article, we show you how to configure multiple IP addresses on a single network interface on a Debian 12 desktop system using the Network Manager command line tool "nmmit". We also showed you how to configure multiple IP addresses on a single network interface on a Debian 12 server system using the /etc/network/interactions file. For more information on setting up a static/fixed IP address on Debian 12 desktop/server systems, read this article.
The above is the detailed content of How to configure multiple IP addresses on a single network interface on Debian 12 Desktop/Server. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Snap is an external package manager designed for Linux systems that provides you with a convenient way to install containerized applications. Snap allows you to easily download and install packages without worrying about installing additional dependencies. The manager automatically resolves the dependencies required by the package, ensuring that the package runs smoothly on your system. Snap complements the native apt package manager, giving you another option for installing and running applications on your system. In this guide, you will find a complete guide on how to install Snap on Debian12. Outline: How to install Snap on Debian12 How to find package availability on Snap How to find information about packages on Snap

STEAM is a popular gaming platform developed by Valve Corporation that allows you to buy, download, install and play games. It provides features such as automatic updates, matchmaking, and a community forum to resolve software-related issues. In addition to this, you can also use Steam to interact with other players and developers as it has extensive community support. In this guide you will learn: How to install Steam on Debian12 How to run Steam on Debian12 How to remove Steam from Debian12 Conclusion How to install Steam on Debian12 You can install Steam on Debian12: Debian Official Repository deb packages

Wine is a compatibility layer that can run Windows applications on Linux systems. It allows users to seamlessly run Windows applications on Linux systems without the need for dual-system installation or virtual machine setup. This article will introduce how to run Windows applications on Debian systems. Install Wine and provide some related tutorials. Installing Wine Installing Wine on a Debian system is very simple, just use the apt command, open a terminal, and enter the following command: ```shellsudoapt-getupdatesudoapt-getinstallwine```This will update your package list and install Wine , after the installation is complete, you can

Installing Debian in Windows systems and installing deb files directly in Windows are ways for many Linux enthusiasts to explore dual systems or try new software. This article will detail the steps and precautions for these two installation methods. Installing Debian under Windows To install Debian in a Windows system, you usually need to use virtual machine software, such as VirtualBox. The following are the specific steps: 1. Download and install VirtualBox, which is a free virtualization software that can run on the same computer. Multiple operating systems. 2. Download the Debian ISO image file. You can find the download link on the Debian official website. 3. in

Debian is a popular Linux distribution, widely used in servers and desktop systems. GCC (GNUCompilerCollection) is an open source compiler suite used to compile C, C++, Fortran and other programming languages. In the Debian system, Installing GCC and GCC10 is very simple. This article will provide you with a detailed installation guide. Install GCC1. Open Terminal and use the following command to update the package list: ```shellsudoaptupdate``` 2. Install GCC and its related tools: sudoaptinstallbuild-essential This command will install

How to shut down the system in Debian11? Let’s take a look at the specific operations with the editor. Method 1: Click [All Apps] - [Log Out]. In the pop-up interface, click [Shut Down]. Method 2: Execute the following command in the terminal: sudoshutdown-hnow

How to create application shortcuts on the desktop in Debian11? Windows system installation programs generally create application shortcuts on the desktop. How to create them in Debian11? Let’s take a look at the detailed tutorial below. Right-click on a blank space on the desktop and select [Create Launcher]. In the pop-up interface, set the program to create a shortcut in [Command]. The editor takes the terminal emulator as an example. The user can set the icon by himself. After the setting is completed, click [Create]. Then you can see the shortcut, as shown in the picture below. When the shortcut is no longer needed, right-click on the icon and select [Delete].

Zig is an emerging programming language that focuses on security, performance and maintainability. Its easy-to-learn syntax, powerful standard library, and advanced compile-time features give it great potential in systems programming. Installing Zig Programming Language 12Bookworm on Debian Keeping your system up to date is a crucial best practice in system administration. Before installing new software, run the command to make sure your Debian system is up to date. sudoaptupdatesudoaptupgrade This command will update the package list for upgrades and new package installations. Step 2. Install Zig Programming Language on Debian 12. There are two main ways to install Zig on Debian 12: One is through AP
