LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   no dhcp through wlan0 (https://www.linuxquestions.org/questions/linux-networking-3/no-dhcp-through-wlan0-487445/)

zeos386sx 09-27-2006 12:07 PM

no dhcp through wlan0
 
I have a wireless card setup in my router and i have got it working as an ap, but it won't hand out ip addresses over the wireless connection. also if I manually set the ip (192.168.2.X) I can ping the wireless card (192.168.2.1) and the wired nic(192.168.1.1) but I can't bring up any web pages. since this seems to me to be an issue with routing and dnsmasq, and not setting up the wireless card i'm posting in the main networking forum. i also have another thread going on the clarkconnect forums

here are some highlights for anyone gracious enough to help.

Code:

[root@rooter ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:29:9B:19:18
          inet addr:24.162.122.233  Bcast:255.255.255.255  Mask:255.255.248.0
          inet6 addr: fe80::2e0:29ff:fe9b:1918/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1206543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:123463 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:166956174 (159.2 MiB)  TX bytes:9384530 (8.9 MiB)
          Interrupt:10 Base address:0x9000

eth1      Link encap:Ethernet  HWaddr 00:A0:CC:D3:55:4D
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2a0:ccff:fed3:554d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:130009 errors:1 dropped:0 overruns:0 frame:0
          TX packets:142077 errors:3 dropped:0 overruns:0 carrier:3
          collisions:0 txqueuelen:1000
          RX bytes:10181804 (9.7 MiB)  TX bytes:103499996 (98.7 MiB)
          Interrupt:12 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:407 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:51010 (49.8 KiB)  TX bytes:51010 (49.8 KiB)

wifi0    Link encap:UNSPEC  HWaddr 00-09-5B-2F-23-06-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1098 errors:0 dropped:0 overruns:0 frame:0
          TX packets:644 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:136031 (132.8 KiB)  TX bytes:129504 (126.4 KiB)
          Interrupt:5 Memory:e4850000-e4851000

wlan0    Link encap:Ethernet  HWaddr 00:09:5B:2F:23:06
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::209:5bff:fe2f:2306/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:585 errors:0 dropped:254 overruns:0 frame:0
          TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:115132 (112.4 KiB)  TX bytes:129154 (126.1 KiB)
          Interrupt:5 Memory:e4850000-e4851000

[root@rooter ~]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

Warning: Driver for device wifi0 recommend version 18 of Wireless Extension,
but has been compiled with version 16, therefore some driver features
may not be available...

wifi0    IEEE 802.11b  ESSID:"Rats-Nest"  Nickname:"rooter.ratsnest.lan"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:09:5B:2F:23:06
          Bit Rate:11 Mb/s  Sensitivity=1/3
          Retry min limit:8  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:10  Invalid misc:23  Missed beacon:0

wlan0    IEEE 802.11b  ESSID:"Rats-Nest"  Nickname:"rooter.ratsnest.lan"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:09:5B:2F:23:06
          Bit Rate:11 Mb/s  Sensitivity=1/3
          Retry min limit:8  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:10  Invalid misc:23  Missed beacon:0

sit0      no wireless extensions.

[root@rooter ~]# route -n
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.2.0    0.0.0.0        255.255.255.0  U    0      0        0 wlan0
192.168.1.0    0.0.0.0        255.255.255.0  U    0      0        0 eth1
24.162.120.0    0.0.0.0        255.255.248.0  U    0      0        0 eth0
0.0.0.0        24.162.120.1    0.0.0.0        UG    0      0        0 eth0

dnsmasq.conf
Code:

dhcp-authoritative
domain-needed
bogus-priv
filterwin2k
expand-hosts
domain=ratsnest.lan
interface=eth1
interface=wlan0
bind-interfaces
conf-file=/etc/dnsmasq/dhcp.conf

/etc/dnsmasq/dhcp.conf
Code:

read-ethers
dhcp-option=eth1,6,192.168.1.1
dhcp-option=eth1,1,255.255.255.0
dhcp-option=eth1,3,192.168.1.1
dhcp-option=eth1,28,192.168.1.255
dhcp-option=wlan0,1,255.255.255.0
dhcp-option=wlan0,3,192.168.2.1
dhcp-option=wlan0,6,192.168.2.1
dhcp-option=wlan0,28,192.168.2.255
dhcp-range=eth1,192.168.1.100,192.168.1.254,12h
dhcp-range=wlan0,192.168.2.100,192.168.2.254,12h


zeos386sx 09-28-2006 11:29 AM

can't anyone help?


All times are GMT -5. The time now is 01:49 AM.