OpenWrt Forum Archive

Topic: Cannot start dnsmasq (dhcp server) - udhcpc: SIOCGIFINDEX: No such dev

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

Hi,

I'm trying to upgrade my Linksys WRT54GL from White Russian R5 to latest Kamikaze. Can anyone tell me how to make the dhcp server start?

root@(none):/etc/config# wifi detect
broadcom: Detect failed
root@(none):/etc/config# insmod wl
Warning: loading wl will taint the kernel: non-GPL license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
root@(none):/etc/config# wifi detect
root@(none):/etc/config#
root@(none):/etc/config# lsmod
Module                  Size  Used by    Tainted: P
wl                    666560   0 (unused)
switch-robo             5084   0 (unused)
switch-core             5104   0 [switch-robo]
diag                   48752   0 (unused)
root@(none):/etc/config#

root@(none):/etc/rc.d# /etc/init.d/dnsmasq start
udhcpc: SIOCGIFINDEX: No such device

dnsmasq: failed to open pidfile /var/run/dnsmasq.pid: No such file or directory
root@(none):/etc/rc.d#

Configuration:

root@(none):/etc/config# cat /etc/banner | grep KAM
 KAMIKAZE (8.09, r14511) ----------------------------

root@(none):/etc/config# dmesg | grep diag
diag: Detected 'Linksys WRT54G/GS/GL'

root@(none):/etc/config# dmesg | grep wl0
wl0: Broadcom BCM4320 802.11 Wireless Controller 4.150.10.5

root@(none):/etc/config# uname -a
Linux (none) 2.4.35.4 #51 Sat Feb 14 23:44:13 CET 2009 mips unknown

root@(none):/etc/config# cat /etc/config/network
#### VLAN configuration
config switch eth0
        option vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.3.1


#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    static
        option ipaddr   192.168.2.23
        option netmask  255.255.255.0
        option gateway  192.168.2.3
        option dns      192.168.2.3

root@(none):/etc/config# cat /etc/config/wireless
config 'wifi-device' 'wl0'
        option 'type' 'broadcom'
        option 'channel' '5'
        option 'disabled' '0'

config 'wifi-iface'
        option 'device' 'wl0'
        option 'network' 'lan'
        option 'mode'   'ap'
        option 'ssid' 'MyAP'
        option 'encryption' 'psk2'
        option 'key' '************************'

It looks like it magically fixed itself after a number of reboots.

The discussion might have continued from here.