TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Raspberry Pi WiFi to ethernet bridge

172 点作者 dasl将近 4 年前

22 条评论

dasl将近 4 年前
A couple of months ago, another setup for a wifi to ethernet bridge was posted here: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26940521" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26940521</a><p>I like Will Haley&#x27;s setup better though, because it keeps everything in the same subnet.<p>The slowdown from the bridge is negligible, in my experience. After running 10 trials, I found that:<p>* median ping was 2.4% higher on the bridged pi<p>* median download speed was 3.6% slower on the bridged pi<p>* median upload speed was 0.1% slower on the bridged pi<p>More details about my setup and how I performed this speedtest: <a href="https:&#x2F;&#x2F;github.com&#x2F;dasl-&#x2F;pitools&#x2F;tree&#x2F;main&#x2F;wifi-ethernet-bridge#wifi-to-ethernet-bridge" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dasl-&#x2F;pitools&#x2F;tree&#x2F;main&#x2F;wifi-ethernet-bri...</a>
评论 #27467576 未加载
neilv将近 4 年前
You can also do this with an old OpenWrt router, which also gets you a management interface and a gigabit Ethernet switch as part of the plastic box.<p>I used to have such a bridge (OpenWrt on Netgear WNDR3800 hardware) Velcro&#x27;d to the underside of a TV cart, so that an appliance on the cart that only had Ethernet and 2.4 GHz WiFi built-in could do a more reliable 5 GHz across the room.
评论 #27466282 未加载
评论 #27467226 未加载
评论 #27469424 未加载
评论 #27465975 未加载
CogitoCogito将近 4 年前
I might as well just dump this question in this thread:<p>Would this be easy to combine with openvpn? Basically what I&#x27;d like is to hook (say) my Apple TV into my pi by ethernet and then use the pi&#x27;s wifi to connect to my router. Finally I&#x27;d like to be able to connect the pi to a VPN and have the Apple TV transparently use that connection. Is this straight-forward to achieve?
评论 #27465848 未加载
评论 #27465896 未加载
评论 #27465887 未加载
评论 #27466206 未加载
puzzlingcaptcha将近 4 年前
Ah yes, network configuration by way of executing a random bash script from a blog. With tasty morsels like:<p>&gt;# I have to admit, I do not understand ARP and IP forwarding enough to explain exactly what is happening here.
评论 #27466065 未加载
评论 #27467474 未加载
评论 #27467731 未加载
geerlingguy将近 4 年前
This can also be set up graphically using OpenWRT (which is a lighter-weight OS if you just want to do some networking and not use the Pi for anything else.<p>I should note that while the onboard WiFi is 802.11ac, I&#x27;ve never seen it get more than 60-70 Mbps in my own testing (in a variety of network environments), so if you want more speed, you might want to get an old n or ac router and flash it with OpenWRT instead.
评论 #27467419 未加载
评论 #27466415 未加载
评论 #27466317 未加载
ThatPlayer将近 4 年前
I&#x27;ve thought of doing something similar, but exposing it as a USB-Ethernet adapter instead. The Pi 4 (and Pi Zero W) support USB OTG. It looks simple enough with a single command with Linux USB gadget to create the network interface usb0.<p>Then you can do power and data over the single USB port.
评论 #27467577 未加载
manuel_w将近 4 年前
I used an Intel NUC running Debian Stretch as wireless access point for month. All I had to do was to assign all the interface (the internal ethernet one, an USB-ethernet adapter, and hostapd, the access point daemon) to the same network bridge `br0`. That&#x27;s all. Even hotplugging the usb-ethernet adapter worked fine.<p>For those curious, find the `&#x2F;etc&#x2F;network&#x2F;interfaces` and `&#x2F;etc&#x2F;hostapd.conf` here: (Grep for `br0` in both)<p><pre><code> * https:&#x2F;&#x2F;gitlab.com&#x2F;manuel_wagesreither&#x2F;debian-image-creator&#x2F;-&#x2F;blob&#x2F;master&#x2F;src&#x2F;files&#x2F;interfaces * https:&#x2F;&#x2F;gitlab.com&#x2F;manuel_wagesreither&#x2F;debian-image-creator&#x2F;-&#x2F;blob&#x2F;master&#x2F;src&#x2F;files&#x2F;hostapd.conf </code></pre> ---<p>Can anyone elaborate on why the authors way of implementation is superior to that? He&#x2F;she&#x27;s using `parprouted` and `dhcp-helper`.<p>From the parprouted man page:<p>&gt; parprouted is a daemon for transparent IP (Layer 3) proxy ARP bridging. Unlike standard bridging, proxy ARP bridging allows to bridge Ethernet networks behind wireless nodes. Normal L2 bridging does not work between wireless nodes because wireless does not know about MAC addresses used in the wired Ethernet networks. Also this daemon is useful for making transparent firewalls.<p>When wireless nodes don&#x27;t know about mac addresses, why is my wireless interface on `ip a` showing a mac address then?
评论 #27470123 未加载
lxgr将近 4 年前
Is this a &quot;true&quot; bridge (i.e. every Ethernet segment coming in on one end is transformed into an appropriate 802.11 frame and vice versa)? If not, is that possible using an RPi?
评论 #27466834 未加载
musicale将近 4 年前
It seems like making an ethernet bridge shouldn&#x27;t be hard; off the top of my head, if we wanted to bridge eth1 to wlan1 it would be something like:<p><pre><code> brctl addbr br0 brctl addif br0 eth1 brctl addif br0 wlan1 ip link set br0 up </code></pre> or the equivalent with ovs-vsctl<p>I frequently use RPi as a programmable soft switch, plugging in four USB-ethernet dongles. On my Pi it splits the USB bandwidth, but it&#x27;s still very useful.
评论 #27469892 未加载
belval将近 4 年前
This is fun! I wanted to do something similar but ended up buying two TP-Link AC routers with WDS for ~100$. Setup was simple and I get the full 400Mbps download speed from the paired router (the one that isn&#x27;t connected to WAN).
bredren将近 4 年前
I used an old Airport Extreme I had sitting around to set up a bridge network recently. In doing so I realized those routers can become Time Machine devices simply by plugging a HD into the back USB port.
api将近 4 年前
This should work with ZeroTier&#x27;s Ethernet bridging capability. You could have a WiFi network that bridged right into a virtual Ethernet network that spanned sites.
vxNsr将近 4 年前
I’m trying to understand why this is better than a usb WiFi dongle, and coming up empty. Anyone have an idea?
评论 #27467305 未加载
评论 #27468147 未加载
评论 #27467781 未加载
评论 #27467307 未加载
评论 #27467835 未加载
geocrasher将近 4 年前
I have an ASUS RT-N16 router from about 2013 that has been doing this duty since about 2015. It&#x27;s running the old Toastman build of TomatoUSB. It&#x27;s only WiFi G (not N) so throughput wasn&#x27;t so hot. But it really served me well until I decommissioned it last week.
ddtaylor将近 4 年前
DD-WRT has support for Rpi now though.
sosodev将近 4 年前
I was using my Raspberry Pi 4 as a WiFi bridge for a &quot;temporary&quot; networking solution after I moved house. I ended up running it that way for over a year and it worked pretty flawlessly. Only problem was that it didn&#x27;t get anywhere near my full WiFi speed.
0x0将近 4 年前
I did something similar to bring a legacy cable-only printer online for wifi clients where there were no cabled uplink. Worked well. Tried to add airprint with cups as well but that was hit&amp;miss.<p>parprouted &amp; dhcp-helper are secret gems!
postalponed将近 4 年前
I&#x27;m curious if this would work on a network with a captive portal enabled. It would be quite useful for connecting smart devices by hooking up a router on the raspberry&#x27;s ethernet port.
sigjuice将近 4 年前
Is the kernel&#x27;s proxy ARP support not enough to handle everything? What is the reason to have parprouted?
gonesilent将近 4 年前
Any way to do a Bluetooth proxy to use a remote Pi to relay Bluetooth to another network connected Pi?
randomperson_24将近 4 年前
This is amazing! was looking for this exact solution :D
whereistimbo将近 4 年前
Raspberry Pi 4 Model B still looks too bloated to me. I&#x27;m sure a more lightweight embedded option is possible.