


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!

Do you wonder how to find Resident Evil 4 saves? How to back up Resident Evil 4 saves? This post from php.cn provides 3 ways for you to back up Resident Evil 4 saves. Now, keep on your reading.

If someone tries to access your computer by inputting numerous key combinations, your computer is at a higher risk of being opened. Therefore, it is quite needed to limit the number of login attempts. How to do it? Read this php.cn post.

Cfgmgr32.dll missing errors often happen to annoy people a lot and leave some more severe issues in your Windows. So, what should you do when you run into the Cfgmgr32.dll not found issue? This post on php.cn Website will tell you some methods.

Have you ever encountered a problem where the Windows lock screen timeout is not working? Fortunately, several feasible solutions are available in this post from php.cn. Applying these fixes, you can address this annoying issue effectively.

Microsoft has released Windows 11 23H2 (the Windows 11 2023 Update) for a while. Do you want to install this update on your device? What are the new features in it? How to get this update immediately? Now, you can get the information from this php.cn

Windows Defender can protect your computer and the files on the device from attacks or infection of malware and viruses. However, sometimes, you need to bypass Windows Defender due to some reason. In this post on php.cn Website, we will introduce 3 w

When trying to copying or transferring files from mobile phones to your computer, you might get the Data supplied is of wrong type error message. If you have no idea about how to address it, this post on php.cn Website can help you out.

Want to revert changes you have made to Microsoft Excel? Here this article on php.cn Software aims to show you how to reset Excel to default settings in Windows 10 with the most effective ways.


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

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version
Useful JavaScript development tools

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

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.