Lets Learn சிவப்புHat Linux - 2

technonotes

technonotes-hacker

Posted on September 25, 2024

Lets Learn சிவப்புHat Linux - 2

nmcli - NetworkManager Command Line Interface

  • The nmcli utility can be used by both users and scripts for controlling NetworkManager.
  • nmcli is a command-line tool which is used for controlling NetworkManager.
  • nmcli command can also be used to display network device status, create, edit, activate/deactivate, and delete network connections.

List of commands

nmcli general status
Enter fullscreen mode Exit fullscreen mode

Image description

nmcli connection
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

Image description

nmcli connection modify <name> i<tab>

Enter fullscreen mode Exit fullscreen mode
  • Once modified & then bring the nmcli UP.
  • nmcli connection modify "name" ipv4.addresses 192.12.123.10/10 ipv4.gateway 192.12.123.254 ipv4.dns 192.12.123.254
  • Now bring it UP.
nmcli connection up "<name>"
Enter fullscreen mode Exit fullscreen mode

Notes

  • Nameserver is also referred as DNS.
  • Give the tab always so that option appears , its like what is next command or word.
  • IP address , Netmask , Gateway & Nameserver.
  • How to assign number after "/" in the IP address --> TBD
💖 💪 🙅 🚩
technonotes
technonotes-hacker

Posted on September 25, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related