Temat: problem z trybem apclient i ap tp-link wr740n v4.22
Cześć,
wrzuciłem na swojego 740 Open WRT i próbuję go skonfigurować do pracy jak w temacie. Stworzyłem nowy interfejs i przy restarcie /etc/init.d/network restart
pojawiają się następujące komunikaty:
root@OpenWrt:/etc/config# /etc/init.d/network restart
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 90:f6:52:a3:01:d0 and ssid 'test'
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connectschwilę po restarcie widać w eterze sieć test, ale zaraz znika (nie można się z nią połączyć).
ifconfig pokazuje, że dodatkowy interfejs utworzył się poprawnie, ale z jakiegoś powodu nie działa.
W czym może tkwić problem?
Wklejam poniżej wyniki ifconfig, oraz zawartość plików wireless oraz network.
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 90:F6:52:A3:01:CF
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:766 errors:0 dropped:62 overruns:0 frame:0
TX packets:401 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:107250 (104.7 KiB) TX bytes:148770 (145.2 KiB)
eth0 Link encap:Ethernet HWaddr 90:F6:52:A3:01:CF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:817 errors:0 dropped:14 overruns:0 frame:0
TX packets:409 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:123708 (120.8 KiB) TX bytes:149406 (145.9 KiB)
Interrupt:5
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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1364 (1.3 KiB) TX bytes:1364 (1.3 KiB)
wlan0 Link encap:Ethernet HWaddr 90:F6:52:A3:01:D0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:3208 (3.1 KiB)
wlan0-1 Link encap:Ethernet HWaddr 92:F6:52:A3:01:D1
inet addr:192.168.22.192 Bcast:192.168.22.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:339 errors:0 dropped:0 overruns:0 frame:0
TX packets:353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:140984 (137.6 KiB) TX bytes:82079 (80.1 KiB)
root@OpenWrt:~#root@OpenWrt:/etc/config# cat wireless
config wifi-device radio0
option type mac80211
option channel 11
option macaddr 90:f6:52:a3:01:d0
option hwmode 11ng
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
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface 'ap'
option device radio0
option network wan
option mode sta
option ssid Gargoyle
option encryption psk2
option key JulciaJulcia
config wifi-iface 'app'
option device radio0
option network lan
option mode ap
option ssid test
option encryption psk2
option key haslohaslo
root@OpenWrt:/etc/config# root@OpenWrt:/etc/config# cat 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'
config interface 'wan'
# option ifname 'eth1'
option proto 'dhcp'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
root@OpenWrt:/etc/config#