Skip to content

[Bug]: Default route removed when wired network comes up #107

@rhaberkorn

Description

@rhaberkorn

Which BSD system

FreeBSD

Describe the bug

Networkmgr appears to remove the default route whenever configuring any interface, even if a gateway is not set in the IPv4 config, ie. if the "Gateway" field is left empty.

How to reproduce the bug?

14.1-RELEASE-p2, networkmgr 0.6.4.

  1. Connect to Wifi for internet access -> get a default route via DHCP.
  2. Configure em0 statically via ifconfig or simply replug the ethernet cable. A gateway is not set in the dialog of the wired connection in networkmgr, as we only want to communicate with an adhoc connected computer via a wired connection.

The default route through wifi will vanish, breaking internet connectivity.

Expected behavior

networkmgr will not touch the old default route, that we received via DHCP.
I would also be happy if I could prevent networkmgr from managing certain interfaces at all, so I can manually manage em0 without it interfering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Ready

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions