Running Linux Mint 17.3 I would like to run a fail over eth0 to wlan0 aka Laptop-Mode on my mint box. I need the bond0 interface to emulate a MAC address for port forwarding reasons of apache2 webserver running pyd.io and an SSH server. When I tried to install this the networking fails on the device.
term@mintbox ~ $sudo ifup bond0
Waiting for a slave to join bond0 (will timeout after 60s)
No slave joined bond0, continuing anyway
--- Then fails and kicks all networking. restarted the machine and it connects but the failover still has Wifi being connected under its own MAC instead of the emulated MAC from the bond0.
I am reasonably sound in linux as an intermediate user. If any one can help with this problem.
I have also tried this but all it does is constantly cycle my wifi connection over and over again
UPDATE: I have tried everything from
/etc/NetworkManager/dispatcher.d with a nmcli script of
if [ "$1" = "eth0" ]; then
case "$2" in
nmcli connection up id "wlan0"
nmcli connection down id "wlan0"
/etc/network/(if-up.d or if-down.d) script of
if [ "$IFACE" = "eth0" ]; then
dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set string:org.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:(false or true)
The reason I am want to do this the roommate keeps unplugging the wired connection and want to fail over to wifi. But wifi needs to be disconnected from router when eth0 is active. I also need routing for portforwarding. I have tried several methods of https://sourceforge.net/projects/upnp-portmapper/files/ , iptables for port triggering which I failed at miserably which I am thinking will work, and ifmetric install and setup on the /etc/network/interfaces and failed at that too. It needs to re-assign the ports of 80,443,57,and 7881-7891 to the fail over interface when the eth0 fails. I also need to it treat eth0 as primary and will want that as default with return of eth0 disconnect wifi and re-assign ports to eth0 upon return. I noticed bonding will not solve this issue due to the wifi device refuses to pass the virtual bond0 mac address.