Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

test aaa dhcp user

Syntax

test aaa dhcp user username<agent-remote-id ari><logical-system logical-system-name><mac-address mac-address><option-82 option-82><password password><profile access-profile-name><routing-instance routing-instance-name><source-address source-address><terminate-code code-value>

Release Information

Command introduced in Junos OS Release 11.2.

Option terminate-code introduced in Junos OS Release 11.4.

Description

Verify Dynamic Host Configuration Protocol (DHCP) subscriber access authentication, accounting, and address allocation configuration.

Options

username

Subscriber username to test.

agent-remote-id ari

(Optional) Value of the DSL Forum Agent-Remote-Id (VSA 26–2).

logical-system logical-system-name

(Optional) Logical system in which the subscriber is authenticated.

mac-address mac-address

(Optional) MAC address of the DHCP client.

option-82 option-82

(Optional) DHCP relay agent information option (option-82) value.

password password

(Optional) Password associated with the username.

profile access-profile-name

(Optional) Access profile associated with the subscriber.

routing-instance routing-instance-name

(Optional) Routing instance in which the subscriber is authenticated.

source-address source-address

(Optional) IP address of the outgoing interface.

terminate-code code-value

(Optional) Code associated with the subscriber termination.

Required Privilege Level

view

List of Sample Output

test aaa dhcp user

Output Fields

When you enter this command, you are provided feedback on the status of your request. For information about output fields related to authentication, accounting, and subscriber-specific information, see the show network-access aaa statistics, show network-access aaa statistics authentication, show network-access aaa subscribers, and show subscribers commands.

The test command does not support volume-time accounting. If volume-time accounting is configured for the test subscriber, the test command replaces the statistics with time-only accounting statistics.

Sample Output

test aaa dhcp user

The following example tests the configuration for DHCP subscriber esmeralda and password rch4Astar, and displays the resulting output:

user@host> test aaa dhcp user esmeralda password rch4Astar
    Authentication Grant
    ************Attributes***********
         User Name -                              esmeralda
         Client IP Address -                      192.168.1.2
         Client IP Netmask -                      255.255.0.0
         Reply Message                            NULL
         Primary DNS IP Address  -                0.0.0.0
         Secondary DNS IP Address  -              0.0.0.0
         Primary WINS IP Address  -               0.0.0.0
         Secondary WINS IP Address  -             0.0.0.0
         Framed Pool -                            addr_pool5
         Session Timeout -                        0
         Idle Timeout -                           0
         Service Type -                           0
         DHCP Guided Relay Server -               0
         Client Ipv6 Address -                    ::
         Client Ipv6 Mask -                       null
         Framed Ipv6 Prefix -                     ::/0
         Framed Ipv6 Pool -                       not-set
         Nas Ipv6 Address -                       ::
         NDRA Ipv6 Prefix -                       not-set
         Login Ipv6 Host -                        ::
         Framed Interface Id: -                   0:0:0:0
         Delegated Ipv6 Prefix -                  ::/0
         Delegated Ipv6 Pool -                    not-set
         User Password -                          testpw
         NAS Ip Address -                         0.0.0.0
         NAS Port -                               0
         NAS Port Type -                          5
         Dhcp Mac Address -                       AB:CD:00:00:00:01
         Dhcp GI Address -                        192.168.2.254
    Client Session Activate  request sent
    Client Session Activated
         Filter Id -                              not set
         Framed MTU -                             (null)
         Framed Route -                           not set
         IGMP -                                   disabled
         Redirect VR Name -                       default
         Service Bundle -                         Null
         Ingress Policy Name -                    not set
         Egress Policy Name -                     not set
         Framed Ip Route Tag -                    not set
         LI Action -                              0
         LI Intercpet Id -                        0
         Med Ipaddress -                          0.0.0.0
         Med Port Number -                        0
         Ignore DF Bit -                          disabled
         IGMP Access Group Name -                 not set
         IGMP Access Source Group Name -          not set
         MLD Access Group Name -                  not set
         MLD Access Source Group Name -           not set
         IGMP Version -                           IGMP Version not set
         MLD Version -                            MLD Version not set
         IGMP Immediate Leave -                   disabled
         MLD Immediate Leave -                    disabled
         IPv6 Ingress Policy Name -               not set
         IPv6 Egress Policy Name -                not set
         Cos Parameter Type -                     not set
         Cos  Scheduler Parameter Type -          not set
         Acct Session ID-                         9
         Acct Interim Interval -                  0
         Acct Type -                              0
         Ingress Statistics                       disabled
         Egress Statistics                        disabled
    ****Pausing 10 seconds before disconnecting the test user*********
    Logging out subscriber 
         Terminate Id -                           dhcp nak         
    Test complete. Exiting

Published: 2013-03-14

Supported Platforms

Published: 2013-03-14