ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
95 stars 29 forks source link

[Feature] Automatic switchover #64

Closed Crushless closed 3 years ago

Crushless commented 3 years ago

When using a notebook, and you often have to switch locations (sometimes with available wired networking, sometimes without), networkmgr should automatically switch between wired and WiFi network interfaces, and prioritize a wired interface, if connected. If a network interface is setup with DHCP, this should be handled automatically. Nameserver and default route should also be automatically adjusted to use the desired interface.

Today, you have to manually disable one interface, and sometimes the other interface too and re-enable the desired interface to get it working. In an modern, dynamic working environment this is not very convenient.

ericbsd commented 3 years ago

Note to myself devd should handle this with

notify 0 {
    match "system"      "IFNET";
    match "type"        "LINK_DONW";
    media-type      "ethernet";
        *
}

and

notify 0 {
    match "system"      "IFNET";
    match "subsystem"   "!(usbus|wlan)[0-9]+";
    match "type"        "LINK_DONW";
        *
};
ericbsd commented 3 years ago

Completed