-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bridged Access Point instructions do not work for me #1423
Comments
ping @epoch1970 |
Using ifupdown is the step backwards we don't need at all. ifupdown makes installing bridge-utils necessary but it is obsolete (too). |
Thanks for the reply. I've been tracking other networking threads on the official forums where you've replied but my account isn't allowed to post yet. I hope it's fine to try to figure it out here. I understand that I should be using systemd-networkd to only create the bridge and to use dhcpcd to manage its IP. I also understand I shouldn't be using /etc/network/interfaces. Following #1333, br0 isn't created. It doesn't show up in ifconfig. So I need to use bridge-utils and /etc/network/interfaces to build the bridge. Now I have a somewhat functioning bridge from bridge-utils and network/interfaces. But it is not being assigned an IP, even though #1333 claims dhcpcd will automatically assign IP. So I use systemd-networkd to manually assign IP. The result is my first post above. Now question, is there anything I'm overlooking even though I followed #1333 100% on a fresh install? Which file's contents would you like to see to help debug? |
Go to the forums for support. I suggest to close this ticket and see if someone else fails to get #1333 to work. |
I found a thread in the forums that mirrored my situation exactly and used the solution provided in that thread. I decided to reply in that thread instead of creating a new one because of how similar the situations were. We could continue our discussion there if you'd like. Thanks! (I suggest adding that thread's solution to a Troubleshooting section to #1333) |
So. I ran the howto again and I can confirm it is broken on Pi3b with the current release of Raspbian Lite. |
Actually, I just found a solution. It is kludgy, but it works for me, and it is not related to systemd.
at the beginning of the file. Adding the Less incorrect would be to have This change of behavior makes no sense to me. So I'm not sure I am ready to recommend that "solution" EDIT. Apologies, I am writing this while away from the Pi and wrote 'allowinterfaces' when I meant 'interface'. This post now reflects what works for me. |
I can confirm this works on the latest Raspbian Lite on a Pi4. No need anymore for the extraneous This indeed is quite a strange 'solution'. For clarification, denyinterfaces wlan0 eth0
interface br0
hostname
clientid
persistent
... |
Not really. AFAIK, dhcpcd treats stand-alone options, like 'hostname' here, as global. Then when it sees a stanza that opens a block, like 'interface' or 'ssid', any option defined under it is local to that block. Global options still apply. A block is closed by a blank line. So 'interface br0' at the top of the file relies only on dhcpcd's built-in defaults and the lease would not reflect options added by the user. Not good. It is just a bit awkward to say "add deyninterface to the beginning of the file" and "add interface br0 at the end of the file"... That's why I bunched the 2 together, but that is not correct. |
BTW, thanks for the heads-up on the howto. You were right all the way. |
Ah yes, thanks for the clarification. I just read too fast your previous comment and was thinking More incorrect. I think to speed things along with #1333, it would be best to just use the |
Yes I would align with this solution too. dhcpcd.conf is more "userland" than /etc/systemd/network, methinks. Please define "soon". When I contributed the how-to, months ago, it was working. It decayed while in copy-proofing ;) |
Yes, I understand the copy-proofing section is a bit short-staffed. I didn't mean any rush nor to sound entitled. I was getting frustrated when I opened the I issue a week ago but I found all the help I needed here, especially from you. I may have to ping you again in the future for raspi networking help ;) I'll leave this issue open for now for others to provide alternatives. |
I have a comment after trying to set up an access point in bridge mode (using raspberry pi 3B+ on Buster). |
BTW it is also unclear what from the first (with DHCP server) part also applies to the second (bridging) part, for example the 'routing and masquerade'. Edit: I found this guide on stack exchange that could improve this tutorial: Setting up a Raspberry Pi as an access point - the easy way Specifically looking at the "Setting up an access point and with eth0, with NAT (recommended)" because it can remove the need for the two commands for 'routing and masquerade' and place them in the systemd-networkd config. |
In both of your comments, are you referring to the document at #1333? |
I did indeed not look at closely at the contents of #1333 so I missed that the part about systemctl enable systemd-networkd was already in there. But I still think that the part about ipv4 forwarding is still needed to make the bridged version work, at least that was the case for me. I did not try #1333 from scratch again so I am not 100% sure. |
Should be fixed now. |
I understand this repo is for documentation, so I will try to keep this issue within that scope. I will further research and ask around the forums to find out more about the technical side of things.
The current master's steps (here) nor the steps in the next major revision (here) work for me. Using #1333 as reference, the following modifications have worked for me:
Added
File contents:
where:
Address
serves as the bridgebr0
's static IP within my LAN. It is outside my router's DHCP range.Gateway
is my router's IP address within my LAN.The following addition is sourced from here:
File contents:
Removed
The following two files (here) are not necessary for me. They don't seem to do anything and removing them doesn't seem to affect my end result.
Again, something is probably technically wrong from my end. It could be something to do with my router's ipv6 settings that I can't seem to disable. Hopefully this issue will serve as a record and hint for others facing similar problems. If there's any way for me to format or present this issue more clearly, please let me know.
The text was updated successfully, but these errors were encountered: