For real devices, wlan1, the ifname has to be the device name. For made up devices, the bridge, the ifname can be make up. Some of the examples must be written for systems where the device name has nothing to do with the device.
Spaces are allowed in names but you need quotes which is a pain in the script so I used dashes instead of spaces.
Several tests show the up command has to have the con-name, not the ifname. I presume this is to allow multiple connections on a device. A script could selectively up and down different connections.
For Ethernet, nmcli does not show the device name until the device has something plugged in, which makes the setup look like it fails. I plugged in a cable and an empty switch. nmcli decided that was enough to display the device name.
None of the online documentation or examples worked. I distilled hints from nearly twenty pages and ran dozens of experiments to find which hints worked.
Spaces are allowed in names but you need quotes which is a pain in the script so I used dashes instead of spaces.
Several tests show the up command has to have the con-name, not the ifname. I presume this is to allow multiple connections on a device. A script could selectively up and down different connections.
For Ethernet, nmcli does not show the device name until the device has something plugged in, which makes the setup look like it fails. I plugged in a cable and an empty switch. nmcli decided that was enough to display the device name.
None of the online documentation or examples worked. I distilled hints from nearly twenty pages and ran dozens of experiments to find which hints worked.
Statistics: Posted by peterlite — Mon Jun 17, 2024 4:34 am