Jump to content

No Ip's?


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 5 weeks later...
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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:~#

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...