MetallJ Posted September 13, 2017 Posted September 13, 2017 Hello, I'm pretty new to configuring networks completely with /etc/network/interfaces and have my problems with understanding how to set up my ports adequately. What I want to do is: I want to run a DHCP-Server on all the LAN-Ports and want to use the wireless Connection as a Gateway (using NAT, no bridge). I found this to setup the Switchports as bridged.https://github.com/armbian/build/issues/511#issuecomment-262571252 But I don't know how to set the whole system up. I read lots of introduction but all people are using the WAN-Port as Gateway and setting the wireless as Access Point. That's not what I want to do. And I also wasn't able to adept there solution to get it running how I want. Hopefully someone may help a noob... Thanks for responses in Advance! MetallJ
reverend_t Posted September 13, 2017 Posted September 13, 2017 What do you mean "gateway"? Draw a diagram or explain more clearly what you're trying to achieve (ie different subnets on lan ports and wifi? which will be your wan port?)
Tido Posted September 13, 2017 Posted September 13, 2017 The built in WiFi in R1 is - to say the least - shaky. You will never want to use that as a Gateway. See Google docs in my signature or search the forum for DSA
MetallJ Posted September 13, 2017 Author Posted September 13, 2017 1 hour ago, reverend_t said: What do you mean "gateway"? Draw a diagram or explain more clearly what you're trying to achieve (ie different subnets on lan ports and wifi? which will be your wan port?) I want to have the R1 connect via WiFi to an existing network and want an own networkadress-range on all the switch-ports. So for example Wifi has adress 10.10.10.10 and Devices connected with LAN get addresses from 192.168.2.0/24
MetallJ Posted September 13, 2017 Author Posted September 13, 2017 I have acknowledged that the wifi behaves strange. Is there anything I can do against without just not using it? I also found this and think that I can create a DHCP-server on the ethernet ports. How do I use the wifi as internet-connection? https://docs.google.com/document/d/1DH8AXCHqUYI6J4L4ujt20aI9BNrYxsWtcthWZEJx8Xs/edit# Thank you for your replies so far.
Tido Posted September 13, 2017 Posted September 13, 2017 4 hours ago, MetallJ said: Is there anything I can do against without just not using it? Nothing, but replace the HW. Within the Google Docs I made you also see some slides, in that explain the relation of the HW & SW. So instead of combining the WiFi & LAN, you combine the WAN and LAN. Should be straight forward.
reverend_t Posted September 14, 2017 Posted September 14, 2017 Yup, all you need to do is connect with the Wi-Fi, enable masquerading on the Wi-Fi interface, allow ipv4 forwarding, run dnsmasq to listen for DHCP requests from the bridge , and set up a simple firewall. Google Linux router and you'll be presented with hundreds of good guides
MetallJ Posted September 18, 2017 Author Posted September 18, 2017 Thanks for your replies. Are there currently any wifi boards sold, which also have those 6 pins? The one recommended by Tido (http://de.aliexpress.com/item/MT5572-WIFI-module-6-pin-WL-UM01EBS-5572-V1-0-27-17-7mm-USB2-0/32530090751.html?ws_ab_test=searchweb201556_7_79_78_77_80,searchweb201644_0,searchweb201560_9) is not sold anymore.
RagnerBG Posted September 18, 2017 Posted September 18, 2017 On 9/13/2017 at 5:50 PM, MetallJ said: I want to have the R1 connect via WiFi to an existing network and want an own networkadress-range on all the switch-ports. So for example Wifi has adress 10.10.10.10 and Devices connected with LAN get addresses from 192.168.2.0/24 If you plan to use built in WIFI in "Client" mode only, there shouldn't be a problem. I haven't tested much, but problems were in "AP" mode, client was kind of stable. So better test first, before changing the whole module (witch is generally good idea for this crappy board, but may be too much for your needs), how it interacts in client mode. About setup @reverend_t post explain briefly what you need. But if you prefer quick and not so complicated solution, with GUI, check out OpenWrt for this board (if there is still any download link alive). 1
MetallJ Posted September 19, 2017 Author Posted September 19, 2017 I cannot find a 6 pin wifi module with the 3572. Are you sure the Wifi-Problem is only in client-mode? In my opinion there is a strange behavior in client mode too.
Tido Posted September 19, 2017 Posted September 19, 2017 RaLink RT3572 | 2,4 GHz und 5,0 GHz 300 Mbps WiFi There is a name for such solderable moduls/units but it won't come in my mind.
MetallJ Posted January 30, 2018 Author Posted January 30, 2018 Sorry for reopening this problem. But I am still considering the wifi behavior in clientmode at least strange. I've got at least 1 out of 4 times no connection. I tested it with a cronjob every minute pinging google.com, now running ping to a fixed IP to make sure it is not a DNS problem. Is there anything I can do to approach this problem? Other devices with exactly the same configuration (Raspi) work fine in the same environment! Edit: It is not a DNS problem. Pinging a fixed IP shows the same behaviour.
Recommended Posts