Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Connection to the internet is by eth1 (actually a PCI modem card), and the home network is on eth0 (192.168.1.x). iptables, masquerading etc. Dhcp is available on eth0. There are a couple of access points around the house, which obviously transparently relay, so phones etc. can pick up an address and connect to the internet. Works great.
Now I want to put an access point on the server, and I want it to look like yet another access point. The server ap is wlan0. How? I have a feeling I should be bridging between wlan0 and eth0, but the examples given are effectively bridging between the internet (eth1) and wlan0.
No problem with hostapd (eventually I found an adapter capable of acting as an access point!) I can see the access point and attach, but obviously can't get an ip address yet. So that bit works.
So...if I allocate an address for wlan0 in the same subnet as eth1, and bridge, will I be able to use both at the same time? I'm very nervous about locking myself out. Should I tell dhcpd to allow requests from br0 or eth1 and wlan0? How about iptables, should I replace all references to eth1 with br0?
Essentially the examples always given are sort of like connecting a wire between two physical ports. I want to connect two ports in parallel.
Great - works well (with one oddity) I'll come on to that. I changed the 'home network port' in iptables from eth0 to br0 in iptables and my firewall is happy.
But, have the line
bridge_ports wlan0 eth0
in my /etc/network/interface file (this is a debian system). However the bridge is formed with only eth0. I can manually add wlan using addif, and then it's fine.
I guess I can close this now, with only the puzzling failure of wlan0 to join the bridge. The /etc/network/interfaces file brings up the bridge and adds eth0, but I had to add wlan0 automatically/manually with an entry in rc.local. The bridge_waitport parameter either doesn`t work, or doesn`t help in this case. In addition I needed to allow forwarding between the bridge components in iptables.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.