Hello,
My Raspberry is connected with a wifi dongle (wlan0) and ethernet (eth0).
The wireless connection is used when the raspberry is not connected rj45
the raspberry connects priority wifi, but I wish it connects priority ethernet.
On the internet it is explained that it configuer the metric, but I have not found how.
I'm using netctl.
How to configure the metric?
Thx
ip route
$this->bbcode_second_pass_code('', '
default via 192.168.1.1 dev wlan0
default via 192.168.1.1 dev eth0 metric 204
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.30
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.29 metric 204')
Wifi config
$this->bbcode_second_pass_code('', 'Interface=wlan0
Connection=wireless
Security=wpa
IP=static
Address=('192.168.1.30/24')
Gateway='192.168.1.1'
DNS=('192.168.1.1')
ESSID=Box
Key="xxxxxxxxxxxxxx"
WPADriver=wext
')
ethernet config
$this->bbcode_second_pass_code('', 'Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
ExecUpPost='/usr/bin/ntpd -gq || true'
')