Legacy Ethernet/Wi-Fi metrics
Image releases before 22.10 are using systemd as a network service.
If you want to change the metric of Ethernet or WiFi interface, you can follow these steps:
Step 1. Modify the interface configuration files
Access the following configuration files and modify the metric field with the desired metric value:
- Ethernet Interface:
/etc/systemd/network/20-eth0.network
- WiFi Interface:
/etc/systemd/network/21-wlan0.network
Step 2. Restart the service
Step 3. Check the new metrics
You can check the new metrics value using one of the following commands: