Ubuntu 22. 04 network configuration

Ubuntu 22.04 Network Configuration

The network configuration of a system means that you can connect your system to local devices or servers all over the world. Although the Ubuntu operating system is built in such a way that you will not come up with any networking issues, if you do come up with an issue or want to set up network settings according to your own desire, then you will have to follow certain steps.

In this blog, we have discussed two different approaches to set up configuration manually, which are as follows.

  1. Using the GUI
  2. Using nmtui command

Let’s get started.

Method 1: Setting up static IP address on Ubuntu 22.04 using GUI

Sponsored

If you prefer using the GUI over the command line to configure a static IP address, then here we have summed up all the required steps for you.

Step 1: Open Wired Settings
First of all, click on the network icon that is present at the top right side of your screen. When you click there, a pop-up will appear. Now select the ‘Wired Connected’ option, and a menu will open; from there, choose the ‘Wired Settings’ option: 

See also  Solving newcomer data science challenges with Canonical’s Data Science Stack – now in beta

Ubuntu 22. 04 network configuration 1

Step 2: Open Settings of Network to be Configured
Wired setting will open. Now click on the gearbox icon, which is placed right next to the network connection that you are about to configure.

Ubuntu 22. 04 network configuration 2

Step 3: Enter Addresses
A new window will now appear on your screen where you have to select between IPv4 and IPv6 depending on your requirements. Then select the ‘Manual’ option and set your desired address, netmask, and gateway. Lastly, you can also set the DNS server (optional) and hit the apply button.

Ubuntu 22. 04 network configuration 3

Step 4: Restart Network
Now you are required to restart your network using the toggle button provided.

Ubuntu 22. 04 network configuration 4

 Step 5: Verify Change
Now verify the changes by clicking on the gear box icon.

Ubuntu 22. 04 network configuration 5

The network has been configured.

Method 2: Setting up static IP address on Ubuntu 22.04 using nmtui

Here we are going to provide you with a step-by-step guide on how to configure a network using nmtui.

Step 1: Open nmtui
Run this command to open the nmtui menu and select the first option and press enter.

$ nmtui

Output

See also  Chromium browser in Ubuntu 20.04 LTS without snap to use in docker container

Ubuntu 22. 04 network configuration 6 

Step 2: Edit a Connection
Utilize the keyboard arrow keys for making a selection. Once selected, press enter key again:

Ubuntu 22. 04 network configuration 7

Step 3: Open Manual Settings
Using the arrow keys go to the IPv4 Configuration and bring the cursor on the ‘’ option. Now press enter and a menu will appear. From that menu choose the manual option:

Sponsored

Ubuntu 22. 04 network configuration 8

Step 4: Show Menu
Now click on the show button:

Ubuntu 22. 04 network configuration 9

Step 5: Add Addresses
Now using the arrow keys, go to the relevant fields and set your desired address, netmask, and gateway:

Ubuntu 22. 04 network configuration 10

Step 6: Apply Changes
Now click OK to apply changes.

Ubuntu 22. 04 network configuration 11

From the menu that appeared, go back once more by pressing the “Back” button:

Ubuntu 22. 04 network configuration 12

Step 7: Turn ON/OFF
Restart the network to have updated changes by going to the “activate connection” option:

See also  Where configuration management falls short: model-driven OpenStack

Ubuntu 22. 04 network configuration 13

Move to the “Deactivate” option, and deactivate the connection:

Ubuntu 22. 04 network configuration 14

Activate again:

Ubuntu 22. 04 network configuration 15

After restarting the network, go back and Quit from the NMTUI.

Step 8: Verify updated network configuration
To verify check the IP address of the system using the “ip a” command:

$ ip a

Ubuntu 22. 04 network configuration 16

The Static IP address is set successfully using the NMTUI.

Conclusion

To configure the network manually in Ubuntu 22.04 you can either use GUI or nmtui configuration. When using GUI, you have to go to network settings choose either the IPv4 or IPv6 option and enter your desired address, netmask, and gateway. In the case of nmtui, run the nmtui command and open the menu. Once the menu opens go to the manual settings, add new addresses and configure the new network.


Discover more from Ubuntu-Server.com

Subscribe to get the latest posts sent to your email.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply