245
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Enable PPP accounting.
ppp account-statistics
enable
[
acl
{
acl-number
|
name
acl-name
} ]
By default, PPP accounting is
disabled.
Enabling logging for PPP users
The PPP user logging feature enables the device to generate PPP logs and send them to the
information center. Logs are generated after a user comes online, goes offline, or fails to come online.
A log entry contains information such as the username, IP address, interface name, inner VLAN,
outer VLAN, MAC address, and failure causes. For information about the log destination and output
rule configuration in the information center, see
Network Management and Monitoring Configuration
Guide
.
As a best practice, disable this feature to prevent excessive PPP log output.
To enable logging for PPP users:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable logging for
PPP users.
ppp access-user log enable
[
successful-login
|
failed-login
|
normal-logout
|
abnormal-logout
] *
By default, logging is disabled for
PPP users.
Configuring service tracing objects
You can create service tracing objects to trace access user information, such as login and logout
information. By specifying match parameters, you can trace the specific access users.
This feature is resource intensive. As a best practice, configure this feature only when
troubleshooting devices.
A primary/standby switchover causes the service tracing object configuration to be ineffective.
To configure service tracing objects:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure service
tracing objects.
trace access-user object object-id
{
access-mode pppoe | username
user-name | interface interface-type
interface-number | ip-address
ip-address | mac-address
mac-address | c-vlan vlan-id | s-vlan
vlan-id } * [ output { file file-name |
syslog-server server-ip-address |
vty } | aging time ] *
By default, no service tracing object
exists.