Junos OSリリース14.2以降、RADIUSアカウンティングにより、LANにログオンまたはLANからログオフするユーザーに関する統計データを収集し、RADIUSアカウンティングサーバーに送信できます。収集された統計データは、一般的なネットワーク監視、使用パターンの分析と追跡、またはアクセスした時間やサービスの種類に基づいてユーザーに請求するために使用できます。
CLIを使用して基本的なRADIUSアカウンティングを設定するには、次の手順に従います。
- スイッチがアカウンティング統計を転送するアカウンティング サーバーを指定します。
[edit access ]
user@router# set profile profile1 radius accounting-server [122.69.1.250 122.69.1.252]
- RADIUSアカウンティングサーバーを定義します。
[edit access]
user@router# set radius-server 122.69.1.250 secret juniper
user@router# set radius-server 122.69.1.252 secret juniper1
- アクセス プロファイルのアカウンティングを有効にします。
[edit access]
user@router# set profile profile1 accounting
- アカウンティング メッセージと更新の送信時に使用する RADIUS サーバーを構成します。
[edit access]
user@router# set profile profile1 accounting order radius
- ルータで収集され、アカウンティング サーバに転送される統計情報を設定します。
[edit access ]
user@router# set profile profile1 accounting accounting-stop-on-access-deny
user@router# set profile profile1 accounting accounting-stop-on-failure
- ルーターで収集されたアカウンティング統計情報を表示します。
user@router> show network-access aaa statistics accounting
Accounting module statistics
Requests received: 1
Accounting Response failures: 0
Accounting Response Success: 1
Requests timedout: 0
- サーバーのアドレスを使用してRADIUSアカウンティングサーバー上のアカウンティングログを開き、アカウンティング統計を表示します。
[root@freeradius]# cd /usr/local/var/log/radius/radacct/122.69.1.250
[root@freeradius 122.69.1.250]# ls
detail-20071214
[root@freeradius 122.69.1.250]# vi details-20071214
User-Name = "000347e1bab9"
NAS-Port = 67
Acct-Status-Type = Stop
Acct-Session-Id = "8O2.1x811912"
Acct-Input-Octets = 17454
Acct-Output-Octets = 4245
Acct-Session-Time = 1221041249
Acct-Input-Packets = 72
Acct-Output-Packets = 53
Acct-Terminate-Cause = Lost-Carrier
Acct-Input-Gigawords = 0
Acct-Output-Gigawords = 0
Called-Station-Id = "00-19-e2-50-52-60"
Calling-Station-Id = "00-03-47-e1-ba-b9"
Event-Timestamp = "Sep 10 2008 16:52:39 PDT"
NAS-Identifier = "esp48t-1b-01"
NAS-Port-Type = Virtual
User-Name = "000347e1bab9"
NAS-Port = 67
Acct-Status-Type = Start
Acct-Session-Id = "8O2.1x811219"
Called-Station-Id = "00-19-e2-50-52-60"
Calling-Station-Id = "00-03-47-e1-ba-b9"
Event-Timestamp = "Sep 10 2008 18:58:52 PDT"
NAS-Identifier = "esp48t-1b-01"
NAS-Port-Type = Virtual
変更履歴
サポートされる機能は、使用しているプラットフォームとリリースによって決まります。 特定の機能がお使いのプラットフォームでサポートされているかどうかを確認するには、 Feature Explorer をご利用ください。
14.2
Junos OSリリース14.2以降、RADIUSアカウンティングにより、LANにログオンまたはLANからログオフするユーザーに関する統計データを収集し、RADIUSアカウンティングサーバーに送信できます。