Changing rate-limit with CoA
Posted: 21 Dec 2017, 01:08
Hi Dmitry,
I'm trying to change a client's rate-limit using CoA but I'm not having success. Would you help me? Below is the command I am using:
(root@radius)[~]# echo Acct-Session-Id="b278b9cb4d727217",Cisco-AVPair="lcp:interface-config#1=rate-limit input 31457280 8000 8000 conform-action transmit exceed-action drop" | /usr/bin/radclient -x 138.xxx.xxx.39:3799 coa secret1324
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
(0) No reply from server for ID 119 socket 3
I was able to disconnect the user by doing:
(root@radius)[~]# echo Acct-Session-Id="b278b9cb4d727217" | /usr/bin/radclient -x 138.xxx.xxx.39:3799 disconnect secret1324
Sent Disconnect-Request Id 218 from 0.0.0.0:45609 to 138.xxx.xxx.39:3799 length 38
Acct-Session-Id = "b278b9cb4d727217"
Received Disconnect-ACK Id 218 from 138.xxx.xxx.39:3799 to 0.0.0.0:0 length 20
I'm trying to change a client's rate-limit using CoA but I'm not having success. Would you help me? Below is the command I am using:
(root@radius)[~]# echo Acct-Session-Id="b278b9cb4d727217",Cisco-AVPair="lcp:interface-config#1=rate-limit input 31457280 8000 8000 conform-action transmit exceed-action drop" | /usr/bin/radclient -x 138.xxx.xxx.39:3799 coa secret1324
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
Sent CoA-Request Id 119 from 0.0.0.0:32308 to 138.xxx.xxx.39:3799 length 66
Acct-Session-Id = "b278b9cb4d727217"
Cisco-AVPair = "lcp:interface-config"
(0) No reply from server for ID 119 socket 3
I was able to disconnect the user by doing:
(root@radius)[~]# echo Acct-Session-Id="b278b9cb4d727217" | /usr/bin/radclient -x 138.xxx.xxx.39:3799 disconnect secret1324
Sent Disconnect-Request Id 218 from 0.0.0.0:45609 to 138.xxx.xxx.39:3799 length 38
Acct-Session-Id = "b278b9cb4d727217"
Received Disconnect-ACK Id 218 from 138.xxx.xxx.39:3799 to 0.0.0.0:0 length 20