ip userlog access export version

Function

The ip userlog access export version command configures the version of packets used to send user login and logout logs.

The undo ip userlog access export version command cancels the configurations.

By default, the version of packets used to send user login and logout logs is 0.

This command is supported only on the NetEngine 8000 F1A.

Format

ip userlog access export version version

undo ip userlog access export version

Parameters

Parameter Description Value
version

Specifies the version of packets used to send user login and logout logs.

The value is an integer that ranges from 1 to 4.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

Usage Scenario

The user login and logout logs recorded on the device are sent to the log server through encapsulated packets. Before the user login and logout log function is enabled, you need to configure the version number of the user login and logout log packets to be sent. Currently, there are four versions of log packets: version 1, version 2, version 3 and version 4. They differ in the VLAN/PVC format (In the current version, the log packets do not carry PVC information.) and the IPv6 information contained in packets.

  • Version 1: 2-byte common VLAN ID, 2-byte PVC number and 4-byte IPv4 address
  • Version 2: 2-byte stack VLAN ID (the value is 0 if there is no stack VLAN), 2-byte common VLAN ID, 2-byte VPI, 2-byte VCI and 4-byte IPv4 address
  • Version 3: 2-byte common VLAN ID, 2-byte PVC number, 4-byte IPv4 address, 16-byte IPv6 address, 16-byte PD prefix, 1-byte PD prefix length, and 1-byte IPv6 address assignment protocol
  • Version 4: 2-byte stack VLAN ID (the value is 0 if there is no stack VLAN), 2-byte common VLAN ID, 2-byte VPI, 2-byte VCI, 4-byte IPv4 address, 16-byte IPv6 address, 16-byte PD prefix, 1-byte PD prefix length, and 1-byte IPv6 address assignment protocol

    Configure a proper version number in accordance with the VLAN tags carried in user login packets.
  • Version 1: applies to the scenario in which user login packets carry a single-tagged VLAN ID and the IPv4 Address to be sent.
  • Version 2: applies to the scenario in which user login packets carry or partially carry a double-tagged VLAN ID and the IPv4 Address to be sent.
  • Version 3: applies to the scenario in which user login packets carry a single-tagged VLAN ID, the IPv4 Address to be sent and the IPv6 information to be sent.
  • Version 4: applies to the scenario in which user login packets carry or partially carry a double-tagged VLAN ID, the IPv4 Address to be sent and the IPv6 information to be sent.

    Note:

    If user login packets carry double-tagged VLAN IDs and version 1 is configured, only the outer VLAN tag is encapsulated into the packets.

Follow-up Procedure

Enable the generation of user login and logout logs.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Configure the version of packets used to send user login and logout logs as 1.
<HUAWEI> system-view
[~HUAWEI] ip userlog access export version 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >