🚫 PRODEVANS CONFIDENTIAL – Do Not Copy or Share 🚫
Skip to main content

Configuring a Network (RHEL-10)

Steps to configure a network in Linux through NetworkManager
What does configuring a network mean?
  • To set up an IP address (automatic or manaul).
  • Connecting to a Wifi or wired network.
  • Setting DNS (Domain Name Server).
  • Managing network interfaces (like eth0 and enp0s3).


To configure a network through NetworkManager we use two methods. They are nmcli and nmtui.

Nmcli:

  • Nmcli (NetworkManager Command Line Interface) is used to create IP addresses automatically or manually. It is command-based.
  • We use Linux to control your network from the terminal.
  • We use nmcli to also check the status of the network. We type the command "nmcli connection show" in the terminal. (Pic 1)
  • We can switch which particular network we want to connect to. The command for that is nmcli connection up <connection_name>
  • We can enable/disable network interfaces.
  • The two methods to assign IP address to Network interface card is Dynamic (Automatic) and Static (Manual).