madrian
Posts: 29
Joined: Tue Aug 28, 2012 6:48 pm

wlan0 to eth0 semi bridge with parprouted

Mon Mar 06, 2017 9:47 pm

I am just following this and this tutorial to make a wlan0 to eth0 ethernet bridge.

It works, but there is a little problem:

If I connect machine while rPi is running, the guest device on eth0 doesn't get an IP address.

OK, this is not 100% true, because:

A: if I am connecting a Macbook, then it's ok. Maybe because the avahi part? It needs 10-15 sec to get a dhcp ip address.

B: Ubuntu live CD: doesn't work, I must manually run
/usr/sbin/parprouted eth0 wlan0
/sbin/ip addr add $(/sbin/ip addr show wlan0 | perl -wne 'm|^\s+inet (.*)/| && print $1')/32 dev eth0
to get an IP address.

I am searching about this problem, but there is not much information. I found a german blog post:
"Calling parprouted in / etc / network / interfaces works only after restarting the Raspi. If, however, the device connected via the LAN port is disconnected from the power, the LAN connection no longer works."
And there is a little monitoring script. I haven't tried yet, but isn't there a better option than a monitoring script running every minute with cron?

Maybe directory /etc/network/if-up.d/ can help me?

madrian
Posts: 29
Joined: Tue Aug 28, 2012 6:48 pm

Re: wlan0 to eth0 semi bridge with parprouted

Mon Mar 06, 2017 10:04 pm

Hmm, looking into better I found that there there is a conflict with the default installed DHCP server.

after you run: sudo apt-get purge dhcpcd5

everything is fine, post-up commands are working properly. ;)

Return to “Networking and servers”