Questions tagged [nmcli]

35 questions
0
votes
1 answer

Remove duplicate device from nmcli dev wifi list

Is there a way to remove the duplicate and empty SSIDs? output of nmcli -f SSID dev wifi SSID -- V-ODT -- V-ODT -- V-ODT -- RTU240-156B fortinet desired output SSID V-ODT RTU240-156B fortinet output of nmcli dev wifi list --rescan yes IN-USE …
01k02t
  • 3
  • 3
0
votes
1 answer

How to bring up an interface using Ansible 'nmcli' module?

I can create an interface with something like: - name: create dummy interface community.general.nmcli: type: dummy conn_name: '{{ item.conn_name }}' ifname: '{{ item.ifname }}' ip6: '{{ item.ip6 }}' state: present …
nbari
  • 25,603
  • 10
  • 76
  • 131
0
votes
0 answers

How can I resolve this nmcli issue?

I created a vpn profile using nm-connection-editor then i use nmcli conn up id PJATK PJATK(is the name of the VPN connection). In return, I get Error: Connection activation failed: Unknown reason Hint: use 'journalctl -xe…
0
votes
0 answers

nmcli auto connect not work with g_ether locdable module

I have a raspberry pi zero board and I want to share my ethernet through USB OTG. I use the following command to create a shared ethernet: nmcli connection add type ethernet ifname usb0 ipv4.method shared con-name local I also use the following…
Mohsen Zahraee
  • 3,309
  • 5
  • 31
  • 45
0
votes
0 answers

How could nmcli adding route table being so slow?

I`m using the command like the follows to add a route table, which contains 5000 lines, but it could take minutes to run! nmcli connection modify enp1s0 +ipv4.routes "192.168.122.0/24 10.10.10.1" On the contrary, the ip route add 192.168.122.0/24…
zohar
  • 21
  • 2
0
votes
0 answers

Nmcli Vlan Tagging failes to be activated

I am new to using nmcli and have some questions. I have defined a static ipadress on a port on my server. Then I created a vlan with tag to this connection. But when Im trying to bring this connection up its in orange.. nmcli con add type ethernet…
fixern256
  • 23
  • 5
0
votes
0 answers

NMCLI AP Mode config error | Connection activation failed: No suitable device found for this connection | Raspberry Pi 3 Model B Rev 1.2

I was trying to configure AP mode in Raspberrypi by using Network Manager. I'm using the below script. but it is throwing some errors. Bash Script to set AP Mode host="MyRPiAPMode" sudo nmcli con add type wifi ifname wlan0 con-name $host autoconnect…
rafi_tc
  • 1
  • 1
  • 3
0
votes
1 answer

Concatenate String from inside an Array to another String in Bash

I have different .ovpn files with vpn configurations. I wrote a script, that checks the load of available servers and trys to connect with the one with the least load. My problem is that the string variables who describe the Connection…
jo87casi
  • 411
  • 5
  • 15
0
votes
1 answer

How to connect Compute Engine Instance to Private VPN

I'm trying to use nmcli to configure a VPN in a remote machine. The issue is that networking interfaces are google managed. I've created a VPN connection with sudo nmcli connection add type vpn vpn-type openvpn ifname test-vpn vpn.data "ca =…
0
votes
0 answers

Ansible task with_items returns only "msg": "'nmcli_ethernet' is undefined"

i´m new to ansible and try to automate server interface configuration. Just something default like ip, gateway, dns and so on. I´ve a task, called config_interfaces; --- - name: nmcli add Ethernet community.general.nmcli: type: ethernet …
0
votes
2 answers

Keep trying to connect to a WiFi network in Python even if it is not available

I would like to write a script in which it keeps on trying to connect to a network, even if it is not available so as soon at it becomes available it will connect to it. This is what I have now def connect_to_yeelight(ssid,…
Lloen
  • 68
  • 4
  • 11
0
votes
1 answer

Unable to delete network bridges on Fedora 33 & Docker

I am using Docker 20.10.7 on Fedora 33: $ uname -r 5.12.8-200.fc33.x86_64 $ docker -v Docker version 20.10.7, build f0df350 When trying to create a new docker network, I get the following error: $ docker network create --subnet 172.18.128.0/17…
ptschack
  • 81
  • 4
0
votes
1 answer

Query SIM PIN status with `nmcli`

I am working with nmcli to create a modem connection using a SIM. I need to know: is there a command (possibily, a nmcli command) that queries the SIM and returns an answer that tells whether the PIN is enabled or not on that SIM? Thanks in advance.
EM90
  • 552
  • 1
  • 8
  • 22
0
votes
1 answer

Find out if wlan0 device is busy

I'm working on a Java project for the raspberry pi that requires some networking functionality. For this I use nmcli through a Process. However, I noticed that when trying to create a new connection (with a wrong password) sometimes the error…
Tigris
  • 133
  • 8
0
votes
1 answer

Access point with `nmcli`

I'm working on a Debian system: # uname -a Linux iot-gate-imx8 5.4.24-iot-gate-imx8-2.0 #1 SMP PREEMPT Thu Sep 3 10:30:00 IDT 2020 aarch64 GNU/Linux I have a MODEM connection (which is active and working): # nmcli con NAME UUID …
EM90
  • 552
  • 1
  • 8
  • 22