[Lugro-mesh] PicostationM2
Omar Arino
oarino en fagdut.org.ar
Dom Abr 8 12:04:05 ART 2012
Bueno, he vuelto a las andadas y creo que está funcionando.
Levante los 2 VAP y el AdHoc.
Copié los archivos de configuración (network y wireless) del AP
que tengo funcionando y los modifique para que se adapten al
nuevo hardware.
Así quedó:
System
Router Name OpenWrt
Router Model Ubiquiti Bullet M
Firmware Version OpenWrt Backfire 10.03.1 / LuCI 0.10.0 Release (0.10.0)
Kernel Version 2.6.32.27
-------------------------
# El archivo network quedó de esta menera
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 eth0.1 # renombré la interface para que me tome la ip
estática de la red LAN
option proto dhcp
config interface mesh
option ifname ath2
option proto static
option ipaddr 5.0.0.1
option netmask 255.0.0.0
config interface public
option ifname ath0
option proto static
option ipaddr 10.0.0.1
option netmask 255.255.255.128
config interface private
option ifname ath1
option proto static
option ipaddr 10.0.0.129
option netmask 255.255.255.192
config interface lan
option ifname eth0
option proto static
option ipaddr 10.0.0.193
option netmask 255.255.255.192
config interface bat
option ifname bat0
option proto none
option ipaddr 169.254.0.0
option netmask 255.255.0.0
-------------------------
# El archivo wireless quedó así:
#config wifi-device radio0
config wifi-device wifi0
option type mac80211
option channel 11
option macaddr 00:27:22:8e:73:91
option hwmode 11ng
option htmode HT20
list ht_capab SHORT-GI-40
list ht_capab TX-STBC
list ht_capab RX-STBC1
list ht_capab DSSS_CCK-40
#config wifi-iface
# option device radio0
# option network lan
# option mode ap
# option ssid OpenWrt
# option encryption none
config 'wifi-iface' 'mesh'
option 'device' 'wifi0'
option 'network' 'mesh'
option 'mode' 'adhoc'
option 'essid' 'ANY'
option 'bssid' '02:ca:ff:ee:ba:be'
option 'bgscan' '0'
config 'wifi-iface' 'public'
option 'device' 'wifi0'
option 'network' 'public'
option 'mode' 'ap'
option 'hidden' '0'
option 'encryption' 'none'
option 'isolate' '1'
option 'ssid' 'lugro-mesh-53642'
config 'wifi-iface' 'private'
option 'device' 'wifi0'
option 'network' 'private'
option 'mode' 'ap'
option 'hidden' '0'
option 'encryption' 'psk2'
option 'key' 'xxxxxxxxxxxxxxx'
option 'ssid' 'FAGDUT-FAP002-53642'
--------------------
Al reiniciar la red esto es lo que sale en la salida estandar:
# /etc/init.d/network restart
Read error: Network is down, reopening socket
Received SIGTERM
Entering released state
udhcpc (v1.15.3) started
Sending discover...
Sending discover...
Sending discover...
command failed: No such device (-19)
command failed: No such device (-19)
Configuration file: /var/run/hostapd-phy0.conf
Using interface ath0 with hwaddr 00:27:22:8e:73:91 and ssid
'lugro-mesh-53642'
Using interface ath1 with hwaddr 02:27:22:8e:73:92 and ssid
'FAGDUT-FAP002-53642'
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 connects
-----------------
# El system log muestra esto:
Sep 8 16:58:18 OpenWrt user.info firewall: removing lan (eth0) from zone
lan
Sep 8 16:58:19 OpenWrt user.info kernel: eth0: link down
Sep 8 16:58:22 OpenWrt user.notice ifup: Enabling Router Solicitations on
loopback (lo)
Sep 8 16:58:22 OpenWrt user.info kernel: eth0: link up (100Mbps/Full
duplex)
Sep 8 16:58:22 OpenWrt user.info kernel: eth0: link down
Sep 8 16:58:23 OpenWrt user.info kernel: eth0: link up (100Mbps/Full
duplex)
Sep 8 16:58:23 OpenWrt user.notice ifup: Enabling Router Solicitations on
lan (eth0)
Sep 8 16:58:24 OpenWrt user.info firewall: adding lan (eth0) to zone lan
Sep 8 16:58:26 OpenWrt user.notice ifup: Enabling Router Solicitations on
mesh (ath2)
Sep 8 16:58:27 OpenWrt user.notice ifup: Enabling Router Solicitations on
public (ath0)
Sep 8 16:58:29 OpenWrt user.notice ifup: Enabling Router Solicitations on
private (ath1)
Sep 8 16:58:36 OpenWrt user.notice ifup: Enabling Router Solicitations on
public (ath0)
Sep 8 16:58:36 OpenWrt user.debug kernel: ath2: Trigger new scan to find
an IBSS to join
Sep 8 16:58:37 OpenWrt user.notice ifup: Enabling Router Solicitations on
private (ath1)
Sep 8 16:58:38 OpenWrt user.notice ifup: Enabling Router Solicitations on
mesh (ath2)
-----------------
# el comando ifconfig muestra esto:
ath0 Link encap:Ethernet HWaddr 00:27:22:8E:73:91
inet addr:10.0.0.1 Bcast:10.0.0.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ath1 Link encap:Ethernet HWaddr 02:27:22:8E:73:92
inet addr:10.0.0.129 Bcast:10.0.0.191 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ath2 Link encap:Ethernet HWaddr 02:27:22:8E:73:93
inet addr:5.0.0.1 Bcast:5.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:27:22:8F:73:91
inet addr:10.0.0.193 Bcast:10.0.0.255 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37171 errors:0 dropped:0 overruns:0 frame:0
TX packets:35041 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4746805 (4.5 MiB) TX bytes:5642263 (5.3 MiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr 00:27:22:8F:73:91
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:362637 (354.1 KiB)
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:20776 errors:0 dropped:0 overruns:0 frame:0
TX packets:20776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1454312 (1.3 MiB) TX bytes:1454312 (1.3 MiB)
mon.ath0 Link encap:UNSPEC HWaddr
00-27-22-8E-73-91-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1695 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:258695 (252.6 KiB) TX bytes:0 (0.0 B)
--------------------
# el comando iwconfig muestra esto:
lo no wireless extensions.
eth0 no wireless extensions.
br-lan no wireless extensions.
eth0.1 no wireless extensions.
ath0 IEEE 802.11bgn Mode:Master Frequency:2.462 GHz Tx-Power=0 dBm
RTS thr:off Fragment thr:off
Power Management:on
ath2 IEEE 802.11bgn ESSID:off/any
Mode:Ad-Hoc Frequency:2.462 GHz Cell: Not-Associated
Tx-Power=0 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
mon.ath0 IEEE 802.11bgn Mode:Monitor Frequency:2.462 GHz Tx-Power=0 dBm
RTS thr:off Fragment thr:off
Power Management:on
ath1 IEEE 802.11bgn Mode:Master Tx-Power=0 dBm
RTS thr:off Fragment thr:off
Power Management:on
-------------------
El comado lsmod muestra esto:
Module Size Used by Not tainted
ohci_hcd 16912 0
nf_nat_tftp 432 0
nf_conntrack_tftp 2400 1 nf_nat_tftp
nf_nat_irc 816 0
nf_conntrack_irc 2512 1 nf_nat_irc
nf_nat_ftp 1328 0
nf_conntrack_ftp 4640 1 nf_nat_ftp
ipt_MASQUERADE 992 1
iptable_nat 2768 1
nf_nat 10912 5
nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK 544 0
iptable_raw 656 1
xt_state 768 3
nf_conntrack_ipv4 7920 6 iptable_nat,nf_nat
nf_defrag_ipv4 624 1 nf_conntrack_ipv4
nf_conntrack 38848 12
nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd 31456 0
pppoe 8304 0
pppox 1216 1 pppoe
ipt_REJECT 1680 2
xt_TCPMSS 2560 0
ipt_LOG 4176 0
xt_comment 464 0
xt_multiport 1792 0
xt_mac 576 0
xt_limit 1008 1
iptable_mangle 992 1
iptable_filter 768 1
ip_tables 8544 4
iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp 1760 3
x_tables 9296 13
ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async 6400 0
ppp_generic 18864 3 pppoe,pppox,ppp_async
slhc 4160 1 ppp_generic
ath9k 86656 0
ath9k_common 1200 1 ath9k
ath9k_hw 338384 2 ath9k,ath9k_common
ath 14160 3 ath9k,ath9k_common,ath9k_hw
mac80211 229696 1 ath9k
usbcore 97616 3 ohci_hcd,ehci_hcd
nls_base 4800 1 usbcore
crc_ccitt 976 1 ppp_async
cfg80211 139760 3 ath9k,ath,mac80211
compat 16496 3 ath9k,mac80211,cfg80211
arc4 816 2
aes_generic 30256 0
deflate 1360 0
ecb 1328 0
cbc 2016 0
leds_gpio 1456 0
button_hotplug 2576 0
gpio_buttons 2128 0
input_polldev 1360 1 gpio_buttons
input_core 17056 4 button_hotplug,gpio_buttons,input_polldev
-----------------
Omar
Más información sobre la lista de distribución Lugro-mesh