Frautoincnam Guru
Joined: 19 May 2017 Posts: 331
|
Posted: Sun Jan 19, 2025 8:23 pm Post subject: set netifrc metrics |
|
|
Hi all,
On a computer with ethernet interface eth0 and wifi interface wlan0, and dhcpcd launched at boot, if I configure netifrc with /etc/conf.d/net:
Code: | modules_wlan0="wpa_supplicant"
metric_eth0="200"
metric_wlan0="100" |
the metrics are not taken into account (1002 for eth0 and 3005 for wlan0).
For them to be taken into account, I have to add to /etc/dhcpcd.conf:
Code: | interface eth0
metric 200
interface wlan0
metric 100 |
Why and above all, how to configure these metrics in /etc/conf.d/net?
Important: everything works fine apart from that. The 2 interfaces are perfectly functional. There is NO problem to solve elsewhere. So I do not want to change anything in my configuration except to set these metrics.
EDIT:
I think I found it, just after posting (as usual). It seems that I just need to remove dhcpcd from boot for the netifrc config to be fully taken into account. |
|