Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Adding a subnetwork interface to an existing network interface

Posted on 27/10/202031/08/2026 Christian By Christian No Comments on Adding a subnetwork interface to an existing network interface
  1. Home
  2. Linux
  3. Adding a subnetwork interface to an existing network interface
subnetwork interface

A Network Interface Card (NIC) is used to connect a computer to an Ethernet network. This tutorial will teach you two ways you can add a network interface to an already existing network interface. how to install the Windows Subsystem for Linux (WSL) on Windows Server via Server Manager and PowerShell, how to download and install Windows Server 2016.

METHOD 1

Additionally, we look at my available interfaces by issuing the ip command.

existing network interface

For this tutorial, I am going to create and attach a sub network interface to the lo interface. All the configuration files for the various network interfaces are stored in the etc/sysconfig/network-scripts directory.

First, we will copy the content of the configuration scripts of the interface we want to attach the new subnetwork interface to; copy it to a file that will serve as the configuration script for the new subnetwork interface.

The new script must end with a :interger extention. For example, the new interface I am creating will be named lo:1

Copy the configuration file with the command

cp /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/ifcfg-lo:1

Remember to change the name of the network interfaces correspondingly when you are trying yours.

network configuration

When you are done copying, open the file you just created with the copy command with a text editor:

network management

Modifying Device Names in Copy Commands

Furthermore, Where you see DEVICE, change the device name to match the one you used in the copy command. In my case, I will change lo to lo:1.

However, Also change the IPADDR value to the new address you want to add to the existing interface. In my case, I will put 127.0.0.10.

subnetwork interface

Save and quit the editor. Now, restart the interface using the command: ifup interfaceName. In my case, it will be ifup lo:1

network configuration

Moreover, If we run the ip a command again, you will see the new network sub-interface has been added.

network configuration

In addition, You can ping the ip address to verify if it is truly up.

Terminal output showing the results of a ping command to the IP address 127.0.0.10, including packet data, response times, and statistics.

METHOD 2

Nonetheless, Let’s run the ip a command again to view our existing network interfaces.

Terminal output displaying network interface details, including IP addresses and interface states.

Consequently, For this demonstration, I will attach a new sub network interface to the ens33 interface.

Similarly, Now use the command below to add a new interface to a network interface: nmcli con mod interfaceName +ipv4.addresses  “new-ip-address/nwMask”. In my case, the command will be nmcli con mod ens33 +ipv4.addresses “192.168.37.175/24”.

Terminal output showing a command to modify network settings, including an IPv4 address configuration.

Nevertheless, Now reboot your system and run the ip a command again.

Terminal display showing the output of the 'ip a' command, highlighting network interface details and IP address information.

Nevertheless, The major difference between both methods is that you control naming the newly created interface in the first method.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Linux Tags:Enhanced Networking Adapter, Networking

Post navigation

Previous Post: Log Off: How to sign out of Windows Server 2012
Next Post: How to check your current Runlevel in Linux

Related Posts

  • yarnfinalfeature
    How to Install and Uninstall Yarn on Ubuntu Linux Linux
  • apache ubuntu 20 04
    How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
  • Screenshot 2022 03 21 at 18.06.30
    How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
  • Security enhanced linux
    How to setup SELinux on a Linux server Linux
  • images copy
    How to disable automatic screen lock in Ubuntu Linux Linux
  • Screenshot 2024 02 28 at 11.17.41 PM
    GitHub Pages Deployment Guide Linux

More Related Articles

yarnfinalfeature How to Install and Uninstall Yarn on Ubuntu Linux Linux
apache ubuntu 20 04 How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
Screenshot 2022 03 21 at 18.06.30 How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
Security enhanced linux How to setup SELinux on a Linux server Linux
images copy How to disable automatic screen lock in Ubuntu Linux Linux
Screenshot 2024 02 28 at 11.17.41 PM GitHub Pages Deployment Guide Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • Featured image 8
    How to restore quarantined files in Microsoft Defender Antivirus Security | Vulnerability Scans and Assessment
  • How To Upgrade Windows 11 Pro to Enterprise
    Upgrade Windows 11 Pro to Enterprise and vice Versa Windows
  • Ubuntu on Windows
    Install Ubuntu 20.04 LTS on Windows via WSL Linux
  • windows 1
    How to query, stop and delete a service in Windows Windows
  • scandium
    How to Test Web Applications Using Scandium Configuration Management Tool
  • Database Connection Stuck on Working on it
    How to fix TeamPass stuck on working on it Network | Monitoring
  • screenshot 2020 03 14 at 22.47.56
    How to block apps from running in Windows Windows
  • YouTubeComment456789
    How to hold comments for review on YouTube JIRA|Confluence|Apps

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,752 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.