Quantcast
Viewing all articles
Browse latest Browse all 3254

TP-link 3020 not giving addresses. DHCP, DNS

Hello,

My piratebox was working yesterday but today refuses to give out addresses. MaStr asked me to do the troubleshooting commands and put them here so here they are:

root@piratebox:~# ls -la /mnt/
drwxr-xr-x 1 root root 0 Jan 1 1970 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
drwxr-xr-x 7 root root 1024 Jan 1 1970 ext
drwxrwxrwx 4 root root 32768 Jan 1 1970 usb
root@piratebox:~# ls -la /mnt/usb
drwxrwxrwx 4 root root 32768 Jan 1 1970 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
drwxrwxrwx 5 root root 32768 Oct 22 14:05 PirateBox
drwxrwxrwx 2 root root 32768 Jan 1 1980 external_fs
root@piratebox:~# ls -la /mnt/usb/PirateBox
drwxrwxrwx 5 root root 32768 Oct 22 14:05 .
drwxrwxrwx 4 root root 32768 Jan 1 1970 ..
drwxrwxrwx 2 root root 32768 Oct 22 16:44 Shared
drwxrwxrwx 11 root root 32768 Oct 22 18:04 board
-rwxrwxrwx 1 root root 52428800 Oct 23 09:12 pbIMG_ws.img
-rwxrwxrwx 1 root root 13 Oct 23 09:10 timesave_file
drwxrwxrwx 2 root root 32768 Jan 1 1980 tmp
root@piratebox:~# ls -la /opt/piratebox/
drwxr-xr-x 10 root root 1024 Jan 1 1970 .
drwxr-xr-x 3 root root 0 Jan 1 1970 ..
drwxr-xr-x 3 root root 1024 Oct 10 08:42 bin
drwxr-xr-x 3 root root 1024 Jan 1 1970 conf
drwxr-xr-x 2 root root 1024 Oct 10 08:42 init.d
drwx------ 2 root root 12288 Jan 16 2014 lost+found
drwxr-xr-x 2 root root 1024 Jan 1 1970 python_lib
lrwxrwxrwx 1 root root 18 Jan 1 1970 share -> /mnt/usb/PirateBox
drwxr-xr-x 2 root root 1024 Oct 10 08:43 src
drwxr-xr-x 2 nobody nogroup 1024 Jan 1 1970 tmp
-rw-r--r-- 1 root root 19 Oct 10 08:43 version
drwxr-xr-x 4 nobody nogroup 1024 Jan 1 1970 www
root@piratebox:~# ls -la /opt/piratebox/www
drwxr-xr-x 4 nobody nogroup 1024 Jan 1 1970 .
drwxr-xr-x 10 root root 1024 Jan 1 1970 ..
-rwxr-xr-x 1 nobody nogroup 1458 Oct 10 08:43 .READ.ME.htm
lrwxrwxrwx 1 root root 27 Jan 1 1970 Shared -> /opt/piratebox/share/Shared
lrwxrwxrwx 1 root root 26 Jan 1 1970 board -> /opt/piratebox/share/board
drwxr-xr-x 2 nobody nogroup 1024 Oct 10 08:43 cgi-bin
-rw-r--r-- 1 nobody nogroup 289 Jan 1 1970 chat_content.html
-rwxr-xr-x 1 nobody nogroup 1406 Oct 10 08:43 favicon.ico
-rw-r--r-- 1 nobody nogroup 0 Jan 1 1970 forban_link.html
-rwxr-xr-x 1 root root 254 Jan 1 1970 forum.html
-rw-r--r-- 1 nobody nogroup 3776 Oct 10 08:43 index.html
-rwxr-xr-x 1 nobody nogroup 94840 Oct 10 08:43 jquery.min.js
drwxr-xr-x 3 nobody nogroup 1024 Oct 10 08:43 library
-rw-r--r-- 1 nobody nogroup 2992 Oct 10 08:43 menu.png
-rw-r--r-- 1 nobody nogroup 15 Oct 10 08:43 ncsi.txt
-rw-r--r-- 1 nobody nogroup 6607 Oct 10 08:43 piratebox-logo-horizontal-white.png
-rwxr-xr-x 1 nobody nogroup 12637 Oct 10 08:43 piratebox-logo-small.png
-rwxr-xr-x 1 nobody nogroup 201 Oct 10 08:43 redirect.html
-rwxr-xr-x 1 nobody nogroup 3715 Oct 10 08:43 scripts.js
-rw-r--r-- 1 nobody nogroup 122 Oct 23 09:14 station_cnt.txt
-rw-r--r-- 1 nobody nogroup 5120 Oct 22 16:31 style.css
root@piratebox:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.2
root@piratebox:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r40431"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.2"
root@piratebox:~# cat /opt/piratebox/version
piratebox-ws_1.0.1
root@piratebox:~# cat /etc/config/network

config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'

root@piratebox:~# cat /etc/config/wireless

config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11ng'
option macaddr 'e8:de:27:74:a9:62'
option htmode 'HT20'
list ht_capab 'SHORT-GI-20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option disabled '0'

config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'none'
option ssid 'PirateBox - Share Freely'

root@piratebox:~# dmsg | tail -n 20
-ash: dmsg: not found
root@piratebox:~# dmesg | tail -n 20
[ 35.250000] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities
[ 35.260000] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities
[ 35.310000] EXT4-fs (loop1): recovery complete
[ 35.320000] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
[ 36.980000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 36.990000] device eth0 entered promiscuous mode
[ 37.000000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 37.330000] eth0: link up (100Mbps/Full duplex)
[ 37.330000] br-lan: port 1(eth0) entered forwarding state
[ 37.340000] br-lan: port 1(eth0) entered forwarding state
[ 37.340000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 37.370000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 39.340000] br-lan: port 1(eth0) entered forwarding state
[ 44.210000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 44.230000] device wlan0 entered promiscuous mode
[ 44.240000] br-lan: port 2(wlan0) entered forwarding state
[ 44.240000] br-lan: port 2(wlan0) entered forwarding state
[ 44.250000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 46.240000] br-lan: port 2(wlan0) entered forwarding state
[ 47.960000] Adding 32760k swap on /mnt/usb/external_fs/OpenWRT.swap. Priority:-1 extents:1 across:32760k
root@piratebox:~# ps
PID USER VSZ STAT COMMAND
1 root 1504 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW [kworker/u:0]
6 root 0 SW< [khelper]
63 root 0 SW [sync_supers]
65 root 0 SW [bdi-default]
67 root 0 SW< [kblockd]
96 root 0 SW [kswapd0]
144 root 0 SW [fsnotify_mark]
173 root 0 SW< [ath79-spi]
184 root 0 SW [mtdblock0]
189 root 0 SW [mtdblock1]
194 root 0 SW [mtdblock2]
199 root 0 SW [mtdblock3]
204 root 0 SW [mtdblock4]
209 root 0 SW [mtdblock5]
250 root 0 SW [kworker/0:1]
442 root 0 SWN [jffs2_gcd_mtd3]
472 root 0 SW [khubd]
481 root 0 SW [scsi_eh_0]
482 root 0 SW [usb-storage]
483 root 0 SW [kworker/0:2]
484 root 0 SW [kworker/u:2]
508 root 1504 S init
541 root 0 SW< [cfg80211]
617 root 0 SW< [bat_events]
644 root 1508 S /sbin/syslogd -C16
646 root 1488 S /sbin/klogd
648 root 872 S /sbin/hotplug2 --override --persistent --set-rules-f
656 root 872 S /sbin/ubusd
729 root 0 SW< [loop0]
734 root 0 SW [jbd2/loop0-8]
735 root 0 SW< [ext4-dio-unwrit]
755 root 0 SW< [loop1]
760 root 0 SW [jbd2/loop1-8]
761 root 0 SW< [ext4-dio-unwrit]
767 root 1468 S /sbin/netifd
946 root 0 SW [flush-8:0]
947 root 0 SW [flush-7:0]
948 root 0 SW [flush-7:1]
1237 root 1640 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
1354 root 1500 S /sbin/watchdog -t 5 /dev/watchdog
1466 root 1512 S /usr/sbin/crond -c /etc/crontabs -l 5
1477 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1507 nobody 952 S /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid
1512 root 10308 S python /opt/piratebox/bin/droopy -H piratebox.lan -d
1522 nobody 3868 S /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/l
1541 root 1500 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
1543 root 1216 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1544 root 1508 S -ash
1588 root 1496 R ps
root@piratebox:~# cat /mnt/usb/install.log
cat: can't open '/mnt/usb/install.log': No such file or directory
root@piratebox:~# cat /mnt/usb/install.log

Viewing all articles
Browse latest Browse all 3254

Trending Articles