This works: laptop wlan0 --> open guest SSID of router This fails: laptop eth0 --> Nanobridge radio --> guest SSID of router
Q: What DNS/Gateway/DHCP settings on a linux laptop are needed to connect to a home broadband router via a Nanobridge M2 radio?
Details:
Inside the house, I can easily connect from my Linux laptop wlan0 to either my 5Ghz or 2.5Ghz open "guest" network (Netgear 600N router) serving DHCP addresses. All I have to do is click on the guest SSID that shows up in the laptop GUI, and I associate, and can get on the web. a) "ifconfig" shows DHCP working 'cuz the wlan0 port is 192.168.1.# b) "route -n" shows the "gateway" is working as 192.168.1.1 c) "ping google.com" shows DNS is working, essentially by 'magic'
However, outside the house, the laptop signal on its own is too weak, but I get a whopping -46dBm from a spare Nanobridge M2 pointing at the home broadband router!
But, with the Nanobridge pointed at the house and with the laptop connected to the Nanobridge via the laptop eth0 ethernet port, I can't get the gateway to the very same network working right, nor does DNS seem to work.
I can only 'associate' with the router SSID (see screenshot here):
Here's what I did to get DHCP/gateway/DNS working: a) DHCP ==> $ sudo ifconfig eth0 192.168.1.254 sudo route add default gw 192.168.1.1 eth0 c) DNS ==> sudo vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 4.2.2.2 nameserver 4.2.2.30
I must be missing something obvious because:
- I shouldn't have to set all these things manually
- I don't really know WHAT I need to set on Linux to get on the net
- I don't understand why the nanobridge can associate but the laptop won't be on the net
PS: The home broadband router has NAT enabled but I wasn't sure if the nanobridge NAT needed to be on so I tried both ways but I'm confused if I want NAT enabled or disabled on the radio for a connection to the net to work.
Any advice?