Community discussions

 
maiaz
just joined
Topic Author
Posts: 6
Joined: Wed Feb 13, 2013 10:34 am

DHCP Server Lease script?

Wed Dec 12, 2018 1:30 am

i'm a bit confused..

i have Mikrotik with 2 DHCP servers (main/guest) 3 wifi networks (2.4 main/guest + 5). i've configured DhCP Lease script as :log info "......",
now the magic comes....

one client triggers script every network change - guest -> 2.4 -> 5 -> 2.4 -> guest -> etc... and another client - triggers nothing. it joins wifi, receive IP, change wifi network same as first client, but triggers nothing...

first client have assign/deassign IP each network change, and second one - just connect/disconnect wifi without any IP.. both clients has static lease.

sorry. no logs, coz winbox do not allow to select/copy logs...:(

1st - iphone, second - huawei.

any idea what is going on?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1783
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: DHCP Server Lease script?

Wed Dec 12, 2018 1:38 am

Hoi, are the mac addresses as linked to the ip's on 2.4 & 5ghz nets different?
 
maiaz
just joined
Topic Author
Posts: 6
Joined: Wed Feb 13, 2013 10:34 am

Re: DHCP Server Lease script?

Wed Dec 12, 2018 1:43 am

Hoi, are the mac addresses as linked to the ip's on 2.4 & 5ghz nets different?
no. two phones. just select wifi network from menu. only one reservation for each device with one MAC.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1783
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: DHCP Server Lease script?

Wed Dec 12, 2018 1:46 am

I meant: when you observe the ip to change for one phone when hopping bands, do you see same mac each time in dhcp server logs?
 
maiaz
just joined
Topic Author
Posts: 6
Joined: Wed Feb 13, 2013 10:34 am

Re: DHCP Server Lease script?

Wed Dec 12, 2018 2:56 am

I meant: when you observe the ip to change for one phone when hopping bands, do you see same mac each time in dhcp server logs?
i see mac in logs every time i changing bands. for both devices. but one triggers script, and another no.

Who is online

Users browsing this forum: No registered users and 12 guests