[Q] Static routes dhcp - Android Q&A, Help & Troubleshooting

Hello
I have Galaxy tab 2 with 4.2.1 onboard.
Router is with openwrt
Problem is that device doesn't get static routes pusched with dhcp.
This is options that i set on router. With windows it's works
Second gateway is 192.168.0.200 default is 192.168.0.1 target subnet 10.92.0.0/16
list 'dhcp_option' '121,10.92.0.0/16,192.168.0.200,0.0.0.0/0,192.168.0.1'
list 'dhcp_option' '242,10.92.0.0/16,192.168.0.200'
With android 2.2.1 works(old phone)
With android 4.1.2 Not wokrs
Thanks In advance

Related

[Q] How to disable dhcpd?

Hi,
I have an I9100 running Android 2.3.3 XWKDD which I have rooted. I have installed wpa_supplicant version 0.6ah so the phone now recognises adhoc networks. I have used the wifi settings menu to set a static IP address and and netmask. I have not set values for the gateway or DNS servers because I don't need them.
My problem is that when I connect to any network (including the adhoc network) the phone does NOT use the static IP address but tries to get an address using DHCP and keeps looping. I have tried killing dhcpd and then setting the ip address and netmask manually and this allows me to ping other devices on the network. However, the wireless interface is periodically reset and dhcpd is restarted.
Is there a way of disabling dhcpd or getting the phone to use its static IP settings?
N10

DNS Problems After Bell 2.3.4 Update

So when I was using 2.2.2 my WIFI connection was working flawlessly with DHCP setting my wireless settings.
I flashed 2.3.4 using NFHimself's Gobstopper without any errors, did a factory reset afterwards and I get an internet connection over mobile with no problems, however on my home WIFI network w/ DHCP (on which 2.2.2 worked fine), it cannot resolve addresses past my router (can browse to the router config fine). Now if I set a static IP and the DNS servers manually, it works over WIFI, however when the WIFI radio turns back on from sleeping it gets stuck at obtaining an IP address.
So I tried leaving it with DHCP giving me an IP address, and then using Set DNS to use google's DNS servers instead of my router's IP, and it seems to work in all situations, however it leaves me unable to browse my LAN (even when one dns domain is left as my local domain server).
I installed Network Monitor II to watch my wireless settings for the three setups:
For just using DHCP, the DNS servers are both set to my router's IP
For static settings, the DNS servers are whatever i set them however i cannot browse my LAN when one is left as my router's IP
For DHCP w/ a custom DNS, it is the same as using static settings
Not sure whether to think this is a problem with the update, or a problem with my router (however no settings were changed before or after the update on it). Anyone have any ideas?
Router: Linksys WRT54GL running DD-WRT
I read somewhere that having the "Filter WAN NAT Redirection" setting enabled in DD-WRT causes this sort of behavior on some mobiles, it is not enabled.
Only thing I could find that I thought it might be is Android Bug Issue 10315 (to which I cannot post a link as I lack sufficient posts... so far), but am still unsure
I should also note that I have two routers (both identical), but only one deals with the DHCP and DNS, the other is more just a wireless AP. Thus, all of my lan is on 192.168.1.*, including both routers ( x.x.x.1 and x.x.x.2 ). uDHCPd is my DNS server on my router, but I might try dnsmasq in the next couple days.
Jiraffe said:
So when I was using 2.2.2 my WIFI connection was working flawlessly with DHCP setting my wireless settings.
I flashed 2.3.4 using NFHimself's Gobstopper without any errors, did a factory reset afterwards and I get an internet connection over mobile with no problems, however on my home WIFI network w/ DHCP (on which 2.2.2 worked fine), it cannot resolve addresses past my router (can browse to the router config fine). Now if I set a static IP and the DNS servers manually, it works over WIFI, however when the WIFI radio turns back on from sleeping it gets stuck at obtaining an IP address.
So I tried leaving it with DHCP giving me an IP address, and then using Set DNS to use google's DNS servers instead of my router's IP, and it seems to work in all situations, however it leaves me unable to browse my LAN (even when one dns domain is left as my local domain server).
I installed Network Monitor II to watch my wireless settings for the three setups:
For just using DHCP, the DNS servers are both set to my router's IP
For static settings, the DNS servers are whatever i set them however i cannot browse my LAN when one is left as my router's IP
For DHCP w/ a custom DNS, it is the same as using static settings
Not sure whether to think this is a problem with the update, or a problem with my router (however no settings were changed before or after the update on it). Anyone have any ideas?
Router: Linksys WRT54GL running DD-WRT
I read somewhere that having the "Filter WAN NAT Redirection" setting enabled in DD-WRT causes this sort of behavior on some mobiles, it is not enabled.
Only thing I could find that I thought it might be is Android Bug Issue 10315 (to which I cannot post a link as I lack sufficient posts... so far), but am still unsure
I should also note that I have two routers (both identical), but only one deals with the DHCP and DNS, the other is more just a wireless AP. Thus, all of my lan is on 192.168.1.*, including both routers ( x.x.x.1 and x.x.x.2 ). uDHCPd is my DNS server on my router, but I might try dnsmasq in the next couple days.
Click to expand...
Click to collapse
I did flash NFHimself's ROM without any issues. My wireless LAN was working fine. Did not noticed any issue on my side. Try with another Wireless router without all the setup you've done. Pretty sure the issue is with your routers.
I don't understand why you are not able to reach you LAN with google's DNS configured...? Do you have some sort of DNS entry specific to your LAN configured into your router?
the problem seemed to solve itself when i switched my router's DNS server daemon from UDHCPD to dnsmasq.
And I couldn't reach my lan when i had both dns servers forced to google's servers as google's servers don't know how to route to addresses inside my lan. But that's not a bug, that is how it is supposed to work.
Good !
Sent from my MB860 using xda premium

[Q] WiFi: DHCP request although static IP configured

I face a strange behavior while connecting to WiFi.
When I configure the WiFi settings to use a static IP at home with a Speedport router from Telekom everything works fine. I get a connection imediately. (Security credentials are WPA2-PSK/AES).
But when I try to connect to a Cisco environment (1142 access points with 5508 controller with the same security credentials as at home) after PSK authentication the phone start with DHCP requests instead of using the configured static IP and I don't get a connection.
First I thought it was of the ROM or the device but I tried different ROMs (stocks and customs) and different devices (Defy and Galaxy S). Everytime the same thing.
A laptop or an iPhone can connect without any problem using a static IP.
It seems that the controller or AP sends something to the phone telling it to ignore the staic IP settings...
Strange!!!

[Q] Android unable to connect to my Wi-Fi network - Windows can

I am in university halls of residence. I have setup a Wi-Fi hotspot in my room using a generic router by connecting from the ethernet out port in the wall to a ethernet LAN port and disabling DHCP on the router.
This works perfectly for my Windows 7 laptop. It connects to the router and then to the uni internet without issues. However, although my Samsung Galaxy S3 (International i9300) can detect the network, if I just try to connect to the network as I would any other it gets stuck when obtaining an IP address. After messing around with it for a bit i found that I could get the phone to connect by going into the advanced settings and choosing "static" instead of "DCHP". I don't know what I was really meant to enter for IP Address, gateway, subnet, DNS 1 and DNS 2.
The router has the IP of 192.168.1.1 when i connect it directly to my laptop via ethernet so I tried that as the gateway, I set the IP address to something like 192.168.1.14 (So that it was similar but different), I set the subnet to 255.255.255.0 and the DNS servers I used google's (8.8.8.8 and 8.8.4.4). This got me connected to the router but there doesn't appear to be any internet connection.
I therefore thought that I had entered wrong information for the network (I was only guessing after all). Therefore I went into ipconfig in Windows and copied the default gateway and DNS servers and used a similar IP address (Last number different). I had the same issue.
Does anyone have any suggestions?
I only want Wi-Fi in my room for mobile.

Bluetooth PAN DNS Hostname to pull from DHCP rather than the android creating its own

Hey guys,
So I have a bluetooth pan on a raspberry pi which gives an ip and Internet connection to an android, in this case the S6 edge. I am given an ip address, however I can't communicate with other devices on the network. I do receive Internet though. It seems the android is assigning itself a dns hostname, which separates itself from the rest of the network. I could be wrong, but when laptops connect to the same pan network, they are given the dhcp information from the router and they can communicate over the network with the ip's being given to them from the bluetooth access point.
The laptops have a hostname of TP-link_D5DE and the android has android_9xxxxxx
Can the android adopt dhcp hostname info via Bluetooth pan? Can I change this name? Is it possible without root if so?
I understand there was somewhat of an issue with dhcp "hooks" back in the day where the bluetooth controller couldn't retrieve this information but I read that on a forum which was a few years old and also read it was fixed on newer versions of android.
I plan on have an app with a webview client call on this IP resource as you would in a web browser. Is it possible to have this app issue a dns name?
Thanks!

Categories

Resources