0

Is it possible to find out whether an interface is sending/receiving packets using a metered link only using /usr/bin/ip? I have seen two solutions using NetworkManager with nmcli or dbus but I am not using this tool. Is there some other tool that can detect it?

3
  • metered / unmetered is not something that is quantifiable on the hardware, it's simply a concept that networkmanager can assign to an interface. As such it's a property of networkmanager and not of the interface itself. The kernel has no information about this.
    – wurtel
    May 3, 2019 at 11:22
  • @wurtel Thanks! What about the second part of the question. It seems NetworkManager is able to guess whether a link is metered. Is there some other tool than NetworkManager to do this?
    – Mmmh mmh
    May 9, 2019 at 7:29
  • I have not much experience with NetworkManager, but I know you can set this property manually on an interface. Besides that, probably any dialup connection using a 4G dongle or similar is assumed to be metered. A reference I found states "Specifically Bluetooth PAN/DUN setup and falls back to checking whether the device is a modem"
    – wurtel
    May 9, 2019 at 8:45

0

You must log in to answer this question.

Browse other questions tagged .