I created a network bridge for use with qemu/kvm, with Network Manager nmcli command line. I followed these steps:
# Create bridge and add eth0 to it
nmcli con add type bridge ifname br0 stp no
nmcli con add type bridge-slave ifname eth0 master br0
# Disable current connection
nmcli con down "Wired connection 1"
# Enable the bridge
nmcli con up bridge-br0
nmcli con up bridge-slave-eth0
Fortunately it seemingly works.
But now I need to go back to original status without bridge. So I followed the process backwards: set the bridges down and deleted them.
Problem is, I was left with no eth0 “wired” connection. I had to either restart NetworkManager service or reboot.
But this feels like an ugly unorthodox way to restore original wired connection.
Is there a more “correct” way to do this by using nmcli?
Thanks beforehand for your attention.