0

Проблема. Добавление (замена на новый) ещё одного Mikrotik NAS.

Игорь Поликарпов 1 год назад обновлен 1 год назад 1

Добрый день. Появилась нужда в замене Mikrotik.


С начала настроил новый mikrotik вручную для работы с Mikbill с использованием Hotspot+Radius. В качестве DHCP используется RadiusDHCP, а на Mikrotik настроен DHCP Relay (существующий Mikrotik  NAS настроен так же) и работает как часы. Проблема проявилась в том что комп не получал ip адрес,  хотя до Radius запросы прилетают, прописывание IP  вручную учетной записи из билинга помогало и интернет начинал работать.


В качестве эксперимента был настроен обычный домашний Mikrotik HAP-Lite история та же.


ЛОГ RADIUS:

Received DHCP-Discover of id 33ae34c8 from 10.49.1.247:67 to 0.0.0.0:67
DHCP-Opcode = Client-Message
DHCP-Hardware-Type = Ethernet
DHCP-Hardware-Address-Length = 6
DHCP-Hop-Count = 1
DHCP-Transaction-Id = 867054792
DHCP-Number-of-Seconds = 0
DHCP-Flags = 0
DHCP-Client-IP-Address = 0.0.0.0
DHCP-Your-IP-Address = 0.0.0.0
DHCP-Server-IP-Address = 0.0.0.0
DHCP-Gateway-IP-Address = 172.28.1.1
DHCP-Client-Hardware-Address = 50:e5:49:2b:b5:a2
DHCP-Message-Type = DHCP-Discover
DHCP-Client-Identifier = 50:e5:49:2b:b5:a2
DHCP-Hostname = "IGOR"
DHCP-Vendor-Class-Identifier = "MSFT 5.0"
DHCP-Parameter-Request-List = DHCP-Subnet-Mask
DHCP-Parameter-Request-List = DHCP-Domain-Name
DHCP-Parameter-Request-List = DHCP-Router-Address
DHCP-Parameter-Request-List = DHCP-Domain-Name-Server
DHCP-Parameter-Request-List = DHCP-NETBIOS-Name-Servers
DHCP-Parameter-Request-List = DHCP-NETBIOS-Node-Type
DHCP-Parameter-Request-List = DHCP-NETBIOS
DHCP-Parameter-Request-List = DHCP-Perform-Router-Discovery
DHCP-Parameter-Request-List = DHCP-Static-Routes
DHCP-Parameter-Request-List = DHCP-Classless-Static-Route
DHCP-Parameter-Request-List = 249
DHCP-Parameter-Request-List = 252
DHCP-Parameter-Request-List = DHCP-Vendor
server dhcp {
Trying sub-section dhcp DHCP-Discover {...}
+- entering group DHCP-Discover {...}
++[reply] returns noop
[linelog] expand: %{reply:DHCP-Message-Type} ->
[linelog] ... expanding second conditional
[linelog] expand: %{request:DHCP-Message-Type} -> DHCP-Discover
[linelog] expand: %{%{reply:DHCP-Message-Type}:-%{request:DHCP-Message-Type}} -> DHCP-Discover
[linelog] expand: %{DHCP-Transaction-Id} DISCOVER: [%{DHCP-Client-Hardware-Address}] via (%{DHCP-Gateway-IP-Address}) %{DHCP-Hostname} -> 867054792 DISCOVER: [50:e5:49:2b:b5:a2] via (172.28.1.1) IGOR
++[linelog] returns ok
rlm_perl: Added pair DHCP-Your-IP-Address = 0.0.0.0
rlm_perl: Added pair DHCP-Message-Type = DHCP-Discover
rlm_perl: Added pair DHCP-Vendor-Class-Identifier = MSFT 5.0
rlm_perl: Added pair DHCP-Hop-Count = 1
rlm_perl: Added pair DHCP-Number-of-Seconds = 0
rlm_perl: Added pair DHCP-Client-IP-Address = 0.0.0.0
rlm_perl: Added pair DHCP-Gateway-IP-Address = 172.28.1.1
rlm_perl: Added pair DHCP-Hardware-Type = Ethernet
rlm_perl: Added pair DHCP-Flags = 0
rlm_perl: Added pair DHCP-Hardware-Address-Length = 6
rlm_perl: Added pair DHCP-Hostname = IGOR
rlm_perl: Added pair DHCP-Opcode = Client-Message
rlm_perl: Added pair DHCP-Transaction-Id = 867054792
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Subnet-Mask
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Domain-Name
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Router-Address
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Domain-Name-Server
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-NETBIOS-Name-Servers
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-NETBIOS-Node-Type
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-NETBIOS
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Perform-Router-Discovery
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Static-Routes
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Classless-Static-Route
rlm_perl: Added pair DHCP-Parameter-Request-List = 249
rlm_perl: Added pair DHCP-Parameter-Request-List = 252
rlm_perl: Added pair DHCP-Parameter-Request-List = DHCP-Vendor
rlm_perl: Added pair DHCP-Client-Hardware-Address = 50:e5:49:2b:b5:a2
rlm_perl: Added pair DHCP-Server-IP-Address = 0.0.0.0
rlm_perl: Added pair DHCP-Client-Identifier = 50:e5:49:2b:b5:a2
rlm_perl: Added pair DHCP-DHCP-Server-Identifier = 10.49.3.254
rlm_perl: Added pair DHCP-Your-IP-Address = 172.28.1.27
rlm_perl: Added pair DHCP-Subnet-Mask = 255.255.255.0
rlm_perl: Added pair DHCP-Domain-Name-Server = 212.66.38.3
rlm_perl: Added pair DHCP-Domain-Name-Server = 212.66.38.10
rlm_perl: Added pair DHCP-Router-Address = 172.28.1.1
rlm_perl: Added pair DHCP-Client-IP-Address = 0.0.0.0
rlm_perl: Added pair DHCP-IP-Address-Lease-Time = 86400
rlm_perl: Added pair DHCP-Time-Server = 212.66.38.5
rlm_perl: Added pair DHCP-NTP-Servers = 212.66.38.5
++[perl] returns ok
++? if (ok)
? Evaluating (ok) -> TRUE
++? if (ok) -> TRUE
++- entering if (ok) {...}
+++[reply] returns ok
++- if (ok) returns ok
++ ... skipping else for request 240: Preceding "if" was taken
[linelog] expand: %{reply:DHCP-Message-Type} -> DHCP-Offer
[linelog] expand: %{%{reply:DHCP-Message-Type}:-%{request:DHCP-Message-Type}} -> DHCP-Offer
[linelog] expand: %{DHCP-Transaction-Id} OFFER: %{reply:DHCP-Your-IP-Address} to [%{DHCP-Client-Hardware-Address}] ... -> 867054792 OFFER: 172.28.1.27 to [50:e5:49:2b:b5:a2] ...
++[linelog] returns ok
++[ok] returns ok

В Mikrotik настройки Radius и DHCP такие:




Настройки NAS в Mikbill:



Добавляю ещё один NAS. На новый mikrotik были полностью перенесены настройки с существующего, ip адреса и некоторые настройки были изменены что бы они друг другу не мешали, проблема та же. 

Подскажите пожалуйста может кто нибудь сталкивался с похожей проблемой или есть какие мысли по поводу этого глюка.

Сервис поддержки клиентов работает на платформе UserEcho