Skip to content

Network Interface Metrics

A metric is a value that is assigned to an IP route for a particular network interface. It identifies the cost that's associated with using that route.

Typically, the interface metric gives preference to a particular interface, such as using wired if both wired and wireless are available.

The eManager has different types of interfaces, each one with a different metric defined:

  • Ethernet
  • WiFi
  • PPP

If the eManager has more than one interface enabled, Internet traffic will go through the interface with the lowest metric.

If you have any preference regarding the connectivity method to access Internet, you only have to change the metric of the desired method.

How to change the PPP interface metric

If you want to change the PPP interface metric, you can follow these steps:

Step 1. Modify the interface configuration files

Access the PPP configuration file stored in /etc/ppp/options-mobile and modify the metric field with the desired metric value.

Step 2. Restart the service

systemctl restart ppp@provider.service

Step 3. Check the new metrics

You can check the new metrics value using one of the following commands:

route -n
ip r

How to change WiFi and Ethernet interface metric

For images prior to release 22.10, go to Legacy Ethernet/Wi-Fi metrics.

Image release 22.10 is using Network Manager as a network service. It manages your network devices and connections and attempts to keep network connectivity active when available.

Dynamic routing reaching Internet

eManager can dynamically adjust routing metrics automatically. We recommend changing metrics manually only if this section does not meet your needs.

In order to manually edit Ethernet or Wi-Fi metrics, follow these steps:

Step 1. Check the interface connection name

The <connection-name> that will be used in the following steps can be found using the following command:

nmcli connection

Default <connection-name> for the eManager are emod_ap_wlan0 for Wi-Fi and emod_eth0 for Ethernet.

Step 2. Change the metric value for a specific interface

nmcli connection modify <connection-name> ipv4.route-metric <metric-value>

Step 3. Re-activate the connection

nmcli connection up <connection-name>

Step 4. Check the new metrics

You can check the new metrics value using one of the following commands:

route -n
ip r