Joe C Posted January 8, 2009 Share Posted January 8, 2009 Hello, I am running jasager 2.1 on a fon 2100 with ICS enabled. My issue is when i go to the jasager interface, no ip's will ever show up, i tested this with my own computers and i can connect and browse the web just fine, but never will an ip show up in the clients list, everything but the ip works (ssid mac etc.) any ideas on what to do to fix this? Thanks Quote Link to comment Share on other sites More sharing options...
digininja Posted January 8, 2009 Share Posted January 8, 2009 The problem is because the only way I can get the ip addresses is to query the arp table and match mac addresses from the connected wireless list to the arp list. Because you are using (I guess) a dhcp server on the PC the fon isn't resolving any ip addresses so they never get put into its arp table. It knows the clients are attached because of the wireless list but has nothing to pair them up with. Best fix is to move the dhcp server onto the fon. All my setup is done by hand and I use this to run a dhcp server on the fon, just ssh in and run it /usr/sbin/dnsmasq -K -F 10.1.1.100,10.1.1.200 you'll need to change the address range to match your network. If you want output from it put a -d in there as well, that runs it in the foreground and gives debug, useful just to check it is working. Quote Link to comment Share on other sites More sharing options...
Joe C Posted January 8, 2009 Author Share Posted January 8, 2009 So would i need to change anything with my ICS settings to move the dhcp server to the fon? And my other question, what are others doing differnatly that they get ip's to show up in the client list? I do not remember anyone talking about moving the dhcp to the fon, and all the pictures i have seen show the ip's in the client list? Quote Link to comment Share on other sites More sharing options...
digininja Posted January 8, 2009 Share Posted January 8, 2009 So would i need to change anything with my ICS settings to move the dhcp server to the fon? I don't know, I haven't setup ICS through windows. All you need to do is to disable DHCP, I'm sure there would be a tick box somewhere for that. And my other question, what are others doing differnatly that they get ip's to show up in the client list? I do not remember anyone talking about moving the dhcp to the fon, and all the pictures i have seen show the ip's in the client list? A few other people have had the problem, it is discussed somewhere else in the forum. For those who haven't I guess they probably setup dhcp on the fon through webif, maybe without realising it. Quote Link to comment Share on other sites More sharing options...
shodanime Posted January 13, 2009 Share Posted January 13, 2009 I am having the same problem. But when i tried the "/usr/sbin/dnsmasq/ -K -F Then type in an IP address it will tell me that the IP address is already in use Quote Link to comment Share on other sites More sharing options...
shodanime Posted January 13, 2009 Share Posted January 13, 2009 sorry for the 2 post Quote Link to comment Share on other sites More sharing options...
digininja Posted January 13, 2009 Share Posted January 13, 2009 I am having the same problem. But when i tried the "/usr/sbin/dnsmasq/ -K -F Then type in an IP address it will tell me that the IP address is already in use Are you putting a range of IPs in or just a single one? It has to be the range you want the dhcp server to offer. Quote Link to comment Share on other sites More sharing options...
flack Posted February 12, 2009 Share Posted February 12, 2009 Are you putting a range of IPs in or just a single one? It has to be the range you want the dhcp server to offer. I am having the same problem. When entering the command /usr/sbin/dnsmasq -K -F 10.1.1.100,10.1.1.200 I get the message "dnsmasq: failed to create listening socket: Address already in use" I can see wireless clients connect in Jasager, but the connection fails as the client never receives an IP address. When SSH'd into the fon the route command responds with: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 br-lan 10.0.0.0 * 255.0.0.0 U 0 0 0 ath0 default 192.168.0.1 0.0.0.0 UG 0 0 0 br-lan Quote Link to comment Share on other sites More sharing options...
digininja Posted February 15, 2009 Share Posted February 15, 2009 what ip addresses are your two interfaces listening on? Quote Link to comment Share on other sites More sharing options...
flack Posted February 16, 2009 Share Posted February 16, 2009 what ip addresses are your two interfaces listening on? If I do an ifconfig the following is returned. root@OpenWrt:~# ifconfig ath0 Link encap:Ethernet HWaddr 00:18:84:1E:66:41 inet addr:10.1.1.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) br-lan Link encap:Ethernet HWaddr 00:18:84:1E:66:40 inet addr:192.168.0.250 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1439 errors:0 dropped:0 overruns:0 frame:0 TX packets:1194 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:371897 (363.1 KiB) TX bytes:627262 (612.5 KiB) eth0 Link encap:Ethernet HWaddr 00:18:84:1E:66:40 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1440 errors:0 dropped:0 overruns:0 frame:0 TX packets:1195 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:392385 (383.1 KiB) TX bytes:628305 (613.5 KiB) Interrupt:4 Base address:0x1000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wifi0 Link encap:Ethernet HWaddr 00:18:84:1E:66:41 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:124 errors:0 dropped:0 overruns:0 frame:2636 TX packets:33 errors:10 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:199 RX bytes:12652 (12.3 KiB) TX bytes:2970 (2.9 KiB) Interrupt:3 Memory:b0000000-b00ffffc Quote Link to comment Share on other sites More sharing options...
digininja Posted February 16, 2009 Share Posted February 16, 2009 that seems ok, have you checked (ps aux) to see if dnsmasq is already running? Quote Link to comment Share on other sites More sharing options...
flack Posted February 17, 2009 Share Posted February 17, 2009 that seems ok, have you checked (ps aux) to see if dnsmasq is already running? Yes, it appear to be running, but not as root. Here is the running processes as listed by ps. root@OpenWrt:~# ps PID Uid VmSize Stat Command 1 root 396 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 5 root SW< [kthread] 17 root SW< [kblockd/0] 28 root SW [pdflush] 29 root SW [pdflush] 30 root SW< [kswapd0] 31 root SW< [aio/0] 41 root SW [mtdblockd] 174 root SWN [jffs2_gcd_mtd2] 188 root 404 S logger -s -p 6 -t 190 root 244 S init 198 root 332 S /sbin/syslogd -C16 -m 0 201 root 288 S /sbin/klogd 225 root 268 S /sbin/hotplug2 --override --persistent --max-children 436 root 324 S crond -c /etc/crontabs 440 root 328 S /usr/sbin/dropbear -p 22 447 root 180 S httpd -p 80 -h /www -r OpenWrt 456 nobody 364 S /usr/sbin/dnsmasq 470 root 180 S httpd -p 1471 -h /karma/www -r karma -c /karma/etc/ht 471 root 336 S logread -f 472 root 500 S /bin/sh /etc/rc.common /etc/rc.d/S91jasager boot 473 root 316 S tail -f /tmp/status.log 474 root 432 S /bin/sh /karma/bin/logwatch 515 root 220 S udhcpc -t 0 -i br-lan -r 192.168.0.250 -b -p /var/run 516 root 556 S /usr/sbin/dropbear -p 22 517 root 500 S -ash 528 root 404 R ps root@OpenWrt:~# Quote Link to comment Share on other sites More sharing options...
digininja Posted February 17, 2009 Share Posted February 17, 2009 That is why your command is failing, a copy of dnsmasq is already running and controlling the port, you'd need to kill that before starting your version. The reason it isn't running as root is security, a lot of services drop privileges once they take hold so that if they are exploited they only have minimal access so can't be used to do too much damage. Quote Link to comment Share on other sites More sharing options...
shodanime Posted February 17, 2009 Share Posted February 17, 2009 That is why your command is failing, a copy of dnsmasq is already running and controlling the port, you'd need to kill that before starting your version. My question is how do you kill the process. because when i do ps i will get this /user/sbin/dnsmasq --dhcp-range=lan,192.168.1.100,192. what i am trying to do is change that dhcp range to something else and i am not sure how to do it. If i try it in webif the client will not get a IP address. I try to set up the dhcp ip 192.168.0.250 did not work with ICS. Quote Link to comment Share on other sites More sharing options...
digininja Posted February 17, 2009 Share Posted February 17, 2009 The first column, the one labelled PID is the process ID, to kill a process you do kill <PID> So from your example above you'd do kill 456 The PID will change each time you run it so always check, don't just blindly kill 456 each time. Quote Link to comment Share on other sites More sharing options...
shodanime Posted February 24, 2009 Share Posted February 24, 2009 Is there a way to change the IP address from 192.168.1.1 to 192.168.0.250 with out using the webif interface? The reason why i ask is because every time I use the webif interface to change the IP what would happen is that the router will not have an IP address and when I do ipconfig it will prompt the auto configuration IP. Quote Link to comment Share on other sites More sharing options...
digininja Posted February 24, 2009 Share Posted February 24, 2009 Temporarily you can ssh to the fon and do ifconfig <interface> 192.168.0.250 where interface is probably br-lan, eth0 or ath0 Or to do it permanently you can edit /etc/config/network Quote Link to comment Share on other sites More sharing options...
jdigit3l Posted March 11, 2009 Share Posted March 11, 2009 if you have an ip conflict, run top, kill the pid for dnsmasq as stated above, down karma then run dnsmasq as root as stated above. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.