OpenWrt Forum Archive

Topic: no dhcp on wifi?

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

this is my first time trying to install openwrt on my wrt54g (v 3.1).  i followed the instructions at:

http://www.penguincare.com.au/openwrt/docs.txt

So now I have my lan and wifi on separate networks.  The wired network works perfectly.  I can browse the internet and get an address via dhcp.  The wifi network is giving me a problem.  I can see the network and connect to it, but it will not give me an ip address.  I looked at the S50dnsmasq and see the line:

iface=lan

It looks like I will have to change that to give addresses out on both networks.  Is that correct?  If that is the case, what exactly do I need to change?

Here are my wl* and wifi* nvram entries:

root@OpenWrt:/etc# nvram show | grep wifi | sort
size: 9858 bytes (22910 left)
wifi_ifname=eth1
wifi_ipaddr=192.168.2.1
wifi_netmask=255.255.255.0
wifi_proto=static
root@OpenWrt:/etc# nvram show | grep wl | sort
size: 9858 bytes (22910 left)
web_wl_filter=0
wl0_active_mac=
wl0_afterburner=off
wl0_akm=open
wl0_antdiv=-1
wl0_ap_isolate=0
wl0_auth=0
wl0_auth_mode=none
wl0_bcn=100
wl0_channel=6
wl0_closed=0
wl0_corerev=7
wl0_country=Worldwide
wl0_country_code=AU
wl0_crypto=tkip
wl0_dtim=1
wl0_frag=2346
wl0_frameburst=off
wl0_gmode=1
wl0_gmode_protection=off
wl0_hwaddr=00:13:10:6C:A2:DA
wl0_ifname=eth1
wl0_infra=1
wl0_key1=
wl0_key2=
wl0_key3=
wl0_key4=
wl0_key=1
wl0_lazywds=1
wl0_mac_deny=
wl0_mac_list=
wl0_maclist=
wl0_macmode1=disabled
wl0_macmode=disabled
wl0_maxassoc=128
wl0_mode=ap
wl0_mrate=0
wl0_net_mode=mixed
wl0_net_reauth=36000
wl0_passphrase=
wl0_phytype=g
wl0_phytypes=g
wl0_plcphdr=long
wl0_radio=1
wl0_radioids=BCM2050
wl0_radius_ipaddr=
wl0_radius_key=
wl0_radius_port=1812
wl0_rate=0
wl0_rateset=default
wl0_rts=2347
wl0_ssid=HaightNet
wl0_unit=0
wl0_wds=
wl0_wds_timeout=1
wl0_wep=disabled
wl0_wep_bit=64
wl0_wep_buf=
wl0_wep_gen=
wl0_wep_last=
wl0_wme=off
wl0_wme_ap_be=15 63 3 0 0 off
wl0_wme_ap_bk=15 1023 7 0 0 off
wl0_wme_ap_vi=7 15 1 6016 3008 off
wl0_wme_ap_vo=3 7 1 3264 1504 off
wl0_wme_no_ack=off
wl0_wme_sta_be=15 1023 3 0 0 off
wl0_wme_sta_bk=15 1023 7 0 0 off
wl0_wme_sta_vi=7 15 2 6016 3008 off
wl0_wme_sta_vo=3 7 2 3264 1504 off
wl0_wpa_gtk_rekey=3600
wl0_wpa_psk=
wl0gpio2=0
wl0gpio3=0
wl0id=0x4320
wl_active_add_mac=0
wl_active_mac=
wl_afterburner=off
wl_akm=
wl_antdiv=-1
wl_ap_isolate=0
wl_auth=0
wl_auth_mode=none
wl_bcn=100
wl_cck_result=16.50
wl_channel=6
wl_closed=0
wl_corerev=
wl_country=Worldwide
wl_country_code=AU
wl_crypto=tkip
wl_dtim=1
wl_frag=2346
wl_frameburst=off
wl_gmode=1
wl_gmode_protection=off
wl_hwaddr=
wl_ifname=
wl_infra=1
wl_key1=
wl_key2=
wl_key3=
wl_key4=
wl_key=1
wl_lazywds=1
wl_mac_deny=
wl_mac_list=
wl_maclist=
wl_macmode1=disabled
wl_macmode=disabled
wl_maxassoc=128
wl_mode=ap
wl_mrate=0
wl_net_mode=mixed
wl_net_reauth=36000
wl_ofdm_result=16.50
wl_passphrase=
wl_phytype=g
wl_phytypes=
wl_plcphdr=long
wl_radio=1
wl_radioids=
wl_radius_ipaddr=
wl_radius_key=
wl_radius_port=1812
wl_rate=0
wl_rateset=default
wl_rts=2347
wl_ssid=linksys
wl_unit=0
wl_wds=
wl_wds_timeout=1
wl_wep=disabled
wl_wep_bit=64
wl_wep_buf=
wl_wep_gen=
wl_wep_last=
wl_wme=off
wl_wme_ap_be=15 63 3 0 0 off
wl_wme_ap_bk=15 1023 7 0 0 off
wl_wme_ap_vi=7 15 1 6016 3008 off
wl_wme_ap_vo=3 7 1 3264 1504 off
wl_wme_no_ack=off
wl_wme_sta_be=15 1023 3 0 0 off
wl_wme_sta_bk=15 1023 7 0 0 off
wl_wme_sta_vi=7 15 2 6016 3008 off
wl_wme_sta_vo=3 7 2 3264 1504 off
wl_wpa_gtk_rekey=3600
wl_wpa_psk=



Thanks for any help.

I was able to figure out the issue myself.  Since I don't really need dhcp on my wired lan, i just switched that file so that dhcp was given out to the wifi network instead.  I also had to edit the S45firewall to add an entry for the wifi (allowing access to the internet).

Thanks

The discussion might have continued from here.