Mon Feb 29, 2016 2:04 pm
Finally COA attribute really works...!
I tested it on Mikrotik version 6.34
echo "User-Name=test,Mikrotik-Rate-Limit='1M/1M 2512K/2512K 512K/512K 600/600 2'" | radclient -x 192.168.50.3:1700 coa radsecret
Sending CoA-Request of id 90 to 192.168.50.3 port 1700
User-Name = "zzztest"
Mikrotik-Rate-Limit = "2M/2M 2512K/2512K 512K/512K 600/600 2"
rad_recv: CoA-ACK packet from host 192.168.50.3 port 1700, id=90, length=37
NAS-Identifier = "ROUTER-EU"
NAS-IP-Address = 192.168.50.3
And this is what happens on NAS:
12:48:38 radius,debug,packet received CoA-Request with id 121 from 192.168.50.20:56242
12:48:38 radius,debug,packet Signature = 0xc37c7bdda3ae3c38e59788b5e02d07a5
12:48:38 radius,debug,packet User-Name = "test"
12:48:38 radius,debug,packet MT-Rate-Limit = "1M/1M 2512K/2512K 512K/512K 600/600 2"
12:48:38 radius,debug received remote request 8 code=CoA-Request from 192.168.50.20:56242
12:48:38 radius,debug sending CoA-ACK to remote request 8
12:48:38 radius,debug,packet sending CoA-ACK with id 121 to 192.168.50.20:56242
12:48:38 radius,debug,packet Signature = 0x956c87a9e70ff1010875de8b9042bdcb
12:48:38 radius,debug,packet NAS-Identifier = "ROUTER-EU"
12:48:38 radius,debug,packet NAS-IP-Address = 192.168.50.3
There is a case in which the pppoe session is restarted: if the MT-Rate-Limit contains errors (for example Max-Limit bigger than Burst-Limit). Otherwise only the simple queue is modified, the pppoe session stays up.