Configure priority connection

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Configure priority connection

Postby Koubiacz » Wed Sep 17, 2014 8:11 pm

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'
')
Koubiacz
 
Posts: 8
Joined: Tue Sep 16, 2014 8:44 pm

Re: Configure priority connection

Postby Koubiacz » Fri Sep 19, 2014 12:14 pm

It is not possible?
Koubiacz
 
Posts: 8
Joined: Tue Sep 16, 2014 8:44 pm

Re: Configure priority connection

Postby moonman » Fri Sep 19, 2014 10:19 pm

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Configure priority connection

Postby Koubiacz » Sat Sep 20, 2014 4:11 pm

Thank you for that link, but I already know.
They do not explain how to set the order of connections.
Koubiacz
 
Posts: 8
Joined: Tue Sep 16, 2014 8:44 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 55 guests