I have a laptop with debian. Networking is configured with NetworkManager. Now occasionally I want to connect a device to its wired ethernet port and then bridge wireless to it. That all works in so far: I need to terminate NetworkManager first manually to ignore the ethernet port or else it is going to try to configure it which interferes with the static address required. My question now is: how can I, using a dbus command, say to NetworkManager that it should ignore eth0 for a while? And later to manage it again?
From the Debian wiki:
So you should maybe put the static Ethernet configuration in the
This is what I found from
This will mark device to disconnect state so it's outside network-manager control
This is fine as long as I don't disconnect the cable.
You can check device status with:
And currently active connections with:
I created this helper script
I'm afraid that that is not possible. The D-Bus API allows you to disable all kinds of wireless devices, but not the wired ones. The only way to disable wired connections is to disable all devices, including your wireless device.
Maybe it helps to untick the "Connect automatically" box for your wired device. That way NetworkManager won't automatically connect to it.