gilla 27.10.2012 17:01 nowhereEE91FA0C

прошло уже дохуя часов, а у нас все pending и изредка connected и в логах: Jan 1 00:02:24 (none) user.err syslog: ace_reporter.reporter_fail(): server unreachable
Jan 1 00:02:24 (none) user.err syslog: ace_reporter.reporter_fail(): initial contact failed #5, url= http://172.16.33.100:8080/inform, rc=3
Jan 1 00:02:24 (none) user.info syslog: ace_reporter.reporter_next_inform_url(): next inform url[0]= http://unifi:8080/inform
Jan 1 00:02:24 (none) user.debug syslog: uplink-monitor.update(): prev observation is eth[eth0], seq 8
Jan 1 00:02:24 (none) user.debug syslog: infctld.fill_response_data(): verison=2.2.5.1080
Jan 1 00:02:24 (none) user.debug syslog: infctld.mcast_beacon(): send_beacon(): src=00:27:22:e8:f2:dc, seq=11, len=151
Jan 1 00:02:25 (none) user.debug syslog: uplink-monitor.update(): belief is eth[eth0]
Jan 1 00:02:25 (none) user.debug syslog: uplink-monitor.update(): uplink is eth0
Jan 1 00:02:29 (none) user.err syslog: mca-client.service(): Got no response within 5.00 seconds
Jan 1 00:02:29 (none) user.info syslog: mca-monitor.do_monitor(): failed to contact mcad. last_checkin=5 (max=200)
Jan 1 00:02:34 (none) user.debug syslog: infctld.fill_response_data(): verison=2.2.5.1080
Jan 1 00:02:34 (none) user.debug syslog: infctld.mcast_beacon(): send_beacon(): src=00:27:22:e8:f2:dc, seq=12, len=151
Jan 1 00:02:39 (none) user.debug syslog: mca-client.service(): Sending request to '/tmp/.mcad'
Jan 1 00:02:39 (none) user.debug syslog: mca-client.service(): Waiting for response...
Jan 1 00:02:39 (none) user.debug syslog: mcad-ctrl.cl_read(): received packet of 8 bytes from '/tmp/.mca-bZKc5s' (fromlen: 19)
Jan 1 00:02:39 (none) user.debug syslog: mcad-ctrl.cl_read(): Packet too short, dropping
Jan 1 00:02:39 (none) user.debug syslog: libubnt.url_resolve(): url: http://unifi:8080/inform
Jan 1 00:02:40 (none) user.debug syslog: uplink-monitor.update(): prev observation is eth[eth0], seq 9
Jan 1 00:02:41 (none) user.debug syslog: uplink-monitor.update(): belief is eth[eth0]
Jan 1 00:02:41 (none) user.debug syslog: uplink-monitor.update(): uplink is eth0
Jan 1 00:02:44 (none) user.err syslog: mca-client.service(): Got no response within 5.00 seconds
Jan 1 00:02:44 (none) user.info syslog: mca-monitor.do_monitor(): failed to contact mcad. last_checkin=20 (max=200)
Jan 1 00:02:44 (none) user.debug syslog: infctld.fill_response_data(): verison=2.2.5.1080
Jan 1 00:02:44 (none) user.debug syslog: infctld.mcast_beacon(): send_beacon(): src=00:27:22:e8:f2:dc, seq=13, len=151
Jan 1 00:02:54 (none) user.debug syslog: mca-client.service(): Sending request to '/tmp/.mcad'
Jan 1 00:02:54 (none) user.debug syslog: mca-client.service(): Waiting for response...
Jan 1 00:02:54 (none) user.debug syslog: infctld.fill_response_data(): verison=2.2.5.1080
Jan 1 00:02:54 (none) user.debug syslog: infctld.mcast_beacon(): send_beacon(): src=00:27:22:e8:f2:dc, seq=14, len=151
Jan 1 00:02:57 (none) user.debug syslog: uplink-monitor.update(): prev observation is eth[eth0], seq 10

1. gilla 27.10.2012 17:05

могу добавить, что вторая точка стала вести себя аналогично, как 5-ая)

2. gilla 27.10.2012 17:28

BZ.v2.2.5# nslookup AP2
Server: 172.16.33.100
Address 1: 172.16.33.100

Name: AP2
Address 1: 172.16.33.2
BZ.v2.2.5#

BZ.v2.2.5# nslookup AP5
Server: 172.16.33.100
Address 1: 172.16.33.100

Name: AP5
Address 1: 172.16.33.5
BZ.v2.2.5#

3. gilla 27.10.2012 17:30

BZ.v2.2.5# ping SRVunifi
PING SRVunifi (172.16.33.100): 56 data bytes
64 bytes from 172.16.33.100: seq=0 ttl=64 time=0.698 ms
64 bytes from 172.16.33.100: seq=1 ttl=64 time=0.286 ms
64 bytes from 172.16.33.100: seq=2 ttl=64 time=0.307 ms
на обоих

4. gilla 27.10.2012 17:33

BZ.v2.2.5# cat /etc/resolv.conf
search RNBwifi
nameserver 172.16.33.100
nameserver 8.8.8.8

5. gilla 27.10.2012 18:00

ellyn@SRVunifi:/etc/default$ nano isc-dhcp-server
вместо INTERFACES="vlan1 vlan 777"
делаем:
INTERFACES="vlan1"

ellyn@SRVunifi:/etc/default$ sudo /etc/init.d/isc-dhcp-server restart
* Stopping ISC DHCP server dhcpd [ OK ]
* Starting ISC DHCP server dhcpd
Далее смотрим, что точка 2 перешла в connected
точка 5 — побывала в provisioning и снова ушла в adopting

на коммутаторе:
1 порт — точка 2 — vlan 1 — untagged vlan 777 — tagged (для точуи 5 аналогично)

в dchpd.conf настроено два пула для 2-х vlan.

6. gilla 27.10.2012 18:02

ellyn@SRVunifi:~$ ssh admin@172.16.33.2
admin@172.16.33.2's password:

BusyBox v1.11.2 (2012-02-24 08:52:11 PST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

BZ.v2.2.5# tail -f /var/log/messages
Jan 1 00:00:17 (none) daemon.info init: starting pid 477, tty '/dev/null': '/bin/mca-monitor'
Jan 1 00:00:17 (none) user.info syslog: ace_reporter.reporter_reload_config(): authkey=907FE0291EAF2B8A8E7D42D74B9B7162
Jan 1 00:00:21 (none) user.info syslog: ace_reporter.reporter_set_managed(): [STATE] enter MANAGED
Jan 1 00:06:28 (none) authpriv.info dropbear[1018]: Child connection from 172.16.33.100:57193
Jan 1 00:06:28 (none) authpriv.warn dropbear[1018]: login attempt for nonexistent user from 172.16.33.100:57193
Jan 1 00:06:34 (none) authpriv.warn dropbear[1018]: login attempt for nonexistent user from 172.16.33.100:57193
Jan 1 00:06:37 (none) authpriv.warn dropbear[1018]: login attempt for nonexistent user from 172.16.33.100:57193
Jan 1 00:06:38 (none) authpriv.info dropbear[1018]: exit before auth: error reading: Connection reset by peer
Jan 1 00:06:46 (none) authpriv.info dropbear[1040]: Child connection from 172.16.33.100:57194
Jan 1 00:07:03 (none) authpriv.notice dropbear[1040]: password auth succeeded for 'admin' from 172.16.33.100:57194
ну все собственно.

7. gilla 27.10.2012 18:05

для второй точки- прописываю адреса вручную и ребутаю.
с точкой 5 — пока ???

8. gilla 27.10.2012 18:08

если щас сделаю 5, могу сделать вывод, что unifi не говно, а я тупая пизда.

9. gilla 27.10.2012 18:15

ну все. с 5-ой ок. осталось теперь подумать насчет dhcp/

10. 1010101gilla /8 27.10.2012 21:15

предполагаю таки, что железо L2 которое зависит от dhcp-сервера таки говно

11. gilla 28.10.2012 13:06

UniFi AP has a default inform URL http://unifi:8080/inform. Thus, the purpose of using DHCP option 43 or DNS is to allow the AP to know the IP of the controller.

12. gilla 28.10.2012 14:17

option space ubnt;
option ubnt.unifi-address code 1 = ip-address;

class "ubnt" {
match if substring (option vendor-class-identifier, 0, 4) = "ubnt";
option vendor-class-identifier "ubnt";
vendor-option-space ubnt;
}

subnet 172.16.33.0 netmask 255.255.255.0 {
interface vlan1;
option ubnt.unifi-address 172.16.33.100; ### UniFi Controller IP ###
###

subnet 192.168.200.0 netmask 255.255.252.0 {
interface vlan777;
####

13. gilla 28.10.2012 14:23

wlan0 Link encap:Ethernet HWaddr f4:ec:38:87:a6:ac
inet addr:192.168.200.9 Bcast:192.168.203.255 Mask:255.255.252.0
inet6 addr: fe80::f6ec:38ff:fe87:a6ac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:744 (744.0 B) TX bytes:724 (724.0 B)

14. gilla 28.10.2012 14:33

BZ.v2.2.5# ping ya.ru
PING ya.ru (213.180.193.3): 56 data bytes
64 bytes from 213.180.193.3: seq=0 ttl=54 time=9.513 ms
64 bytes from 213.180.193.3: seq=1 ttl=54 time=9.515 ms

Do you really want to delete ?