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.