There are two ways to define RADIUS packets for flexible RADIUS accounting and authentication plug-ins:
Use the following configuration statements to configure a RADIUS packet template:
- shared sae configuration radius-packet-template name ...
- shared sae configuration radius-packet-template name radius-attributes name ...
- shared sae configuration radius-packet-template name radius-attributes name attributes name {
- value ;
- }
- shared sae configuration plug-ins name name flex-radius-accounting radius-packet-definition name ...
- shared sae configuration plug-ins name name flex-radius-accounting radius-packet-definition name attributes name {
- value ;
- }
- shared sae configuration plug-ins name name flex-radius-authentication radius-packet-definition name ...
- shared sae configuration plug-ins name name flex-radius-authentication radius-packet-definition name attributes name {
- value ;
- }
To configure a template:
- [edit shared sae group west-region configuration radius-packet-template
stdAcct radius-attributes svcstop]
- user@host# set attributes name value
For example:
[edit shared sae group west-region configuration radius-packet-template stdAcct radius-attributes svcstop]
user@host# show
attributes {
Acct-Input-Octets lowWord(inOctets);
Acct-Output-Octets lowWord(outOctets);
Acct-Input-Packets lowWord(inPackets);
Acct-Output-Packets lowWord(outPackets);
Acct-Input-Gigawords highWord(inOctets);
Acct-Output-Gigawords highWord(outOctets);
}[edit shared sae group west-region configuration radius-packet-template stdAcct radius-attributes svcstop]
user@host# up
[edit shared sae group west-region configuration radius-packet-template stdAcct]
user@host# show
radius-attributes svcstop {
attributes {
Acct-Input-Octets lowWord(inOctets);
Acct-Output-Octets lowWord(outOctets);
Acct-Input-Packets lowWord(inPackets);
Acct-Output-Packets lowWord(outPackets);
Acct-Input-Gigawords highWord(inOctets);
Acct-Output-Gigawords highWord(outOctets);
}
}
radius-attributes stop {
attributes {
Acct-Session-Time sessionTime;
Acct-Terminate-Cause terminateCause;
}
}
radius-attributes svcacct {
attributes {
Class radiusClass;
}
}
radius-attributes acct {
attributes {
Acct-Session-Id sessionId;
NAS-Identifier localNasId;
NAS-IP-Address localNasIp;
Event-Time eventTime;
}
}
radius-attributes startstop {
attributes {
Acct-Multi-Session-Id ifSessionId;
NAS-Port-Id "\"%s %s\" %(routerName, portId or interfaceName)";
NAS-Port "nasPort or None";
}
}