
4-4
Command Accounting Configuration Example
Network diagram
As shown in
, configure the commands that the login users execute to be recorded on the
HWTACACS server to control and monitor user operations.
Figure 4-3
Network diagram for configuring command accounting
Internet
Console Connection
Intranet
Host B
192.168.1.20/24
Host A
Host C
10.10.10.10/24
Device
HWTACAS server
192.168.2.20/24
Configuration procedure
# Enable the telnet service on Device.
<Device> system-view
[Device] telnet server enable
# Enable command accounting for users logging in through the console port.
[Device] user-interface aux 0
[Device-ui-aux0] command accounting
[Device-ui-aux0] quit
# Enable command accounting for users logging in through telnet or SSH.
[Device] user-interface vty 0 4
[Device-ui-vty0-4] command accounting
[Device-ui-vty0-4] quit
# Create a HWTACACS scheme named
tac
and configure the IP address and TCP port for the primary
authorization server for the scheme. Ensure that the port number be consistent with that on the
HWTACACS server. Set the shared key for authentication packets to
expert
for the scheme. Specify
Device to remove the domain name in the username sent to the HWTACACS server for the scheme.
[Device] hwtacacs scheme tac
[Device-hwtacacs-tac] primary accounting 192.168.2.20 49
[Device-radius-rad] key accounting expert
[Device-radius-rad] user-name-format without-domain
Содержание S5120-EI Series
Страница 139: ...ii...
Страница 268: ...3 3 SwitchB system view SwitchB interface vlan interface 1 SwitchB Vlan interface1 ip address dhcp alloc...
Страница 328: ...i Table of Contents 1 Dual Stack Configuration 1 1 Dual Stack Overview 1 1 Configuring Dual Stack 1 1...
Страница 578: ...1 21 C...
Страница 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Страница 926: ...2 8...
Страница 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Страница 985: ...1 1...
Страница 1018: ...1 6...