Connect to Wifi with nmcli

First check if the Wi-Fi device is enabled or not: $ nmcli radio wifi If the output shows that the Wi-Fi is disabled, then it can be enabled with: $ nmcli radio wifi on If we already know the access point, then skip the following step. Otherwise, to identify the access points, run: $ nmcli dev wifi list Supposed we want to connect to the access point named ’totoro’, and the password is ’t0t0r02023’, we can connect to it by running the following command:...

July 23, 2023 · 1 min · 151 words · kenno

Configure Interface Teaming Using Nmcli

If you want to know what is Network Teaming, please check out this link. In this post, I’m going to just list all the commands required to setup a team interface. Let’s list the available network interfaces I have on my server. $ nmcli dev status DEVICE TYPE STATE CONNECTION enp1s0 ethernet connected enp1s0 enp7s0 ethernet connected student virbr0 bridge connected (externally) virbr0 enp8s0 ethernet disconnected -- enp9s0 ethernet disconnected -- lo loopback unmanaged -- virbr0-nic tun unmanaged -- From the above output, you probably can guess that I’m going to use enp8s0 and enp9s0 to create a team network interface....

August 31, 2021 · 5 min · 884 words · kenno

Auto Connect to Hidden Wifi With Networkmanger

If you’re here to find out how to setup network connection to hidden wifi access point, you might want to check this post: How to Connect to Hidden Wifi Using nmcli instead. This post documents how I fix an issue of wifi connection on a laptop running Gentoo to a hidden access point. The problem is that the wifi connection doesn’t automatically connect despite I’ve set the autoconnect.connection yes. ❯ nmcli con show CamBlue | grep -i autoconnect connection....

December 21, 2020 · 2 min · 270 words · kenno

Installing FreeIPA on CentOS 8

This is my note about installing FreeIPA on a CentOS 8 machine. It’s a bit different from the FreeIPA’s installation on CentOS 7, and most importantly there was a problem I came across during the installation and how to fix it. Configure Static IP [root@utility ~]# nmcli con mod enp1s0 ipv4.addresses 172.25.250.8/24 \ > ipv4.method manual \ > ipv4.gateway 172.25.250.254 \ > ipv4.dns 172.25.252.1 \ > connection.autoconnect yes [root@utility ~]# nmcli con up enp1s0 Ensure the hostname of this server exists in /etc/hosts....

November 24, 2020 · 4 min · 721 words · kenno

How to Connect to Hidden Wifi Using nmcli

Today I need to setup a wifi connection on a laptop to my home network with hidden SSID. Like so many things that I only have to do it once in a while, I couldn’t remember how to do it. So this blog post is something to remind me in the future should I need to do it agian. Here is one way to do it, thanks to this Stack Overflow question....

January 15, 2019 · 1 min · 188 words · kenno

Connect to a WPA2-Enterprise Connection Using nmcli

This is like a re-post of a question from askubuntu.com. To get to that post, I usually had to google it. So, I’ll post it here so I know where to look for when I need it again. At work, we use WPA2-Enterprise for wireless connection. To create a new connection on my laptop with wlp3s0 as Wifi device, follow this step: That’s it if you know how to do it....

August 27, 2018 · 1 min · 81 words · kenno

How to renew DHCP lease with NetworkManager

Traditionally, we use dhclient to release and renew DHCP lease on Linux. It probably still work with modern Linux distros nowadays. However, most distros come with NetworkManager which provides nmcli command line interface to manage networking. Here’s how to renew DHCP lease using nmcli performing on my machine. Your output when running these commands could be different. First, let’s list the connections managed by NetworkManager. # nmcli con NAME UUID TYPE DEVICE virbr0 2c2c7c4f-15e9-439b-be1d-e1d0131fb41c bridge virbr0 Wired connection 1 5c9000c5-2635-4b09-90d7-71c3783c6626 802-3-ethernet enp0s25 enp0s25 70ee0b94-8341-46ec-953d-f2c3ca34285a 802-3-ethernet -- virbr0-nic aafaa95e-6ced-4ea9-bd4f-7c8d10fb51b6 generic virbr0-nic Next, we can find out the current IP associated with enp0s25 by running command:...

March 17, 2016 · 1 min · 208 words · kenno