H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Traffic Accounting
H3C S7500 Series Ethernet Switches Chapter 1
Traffic Accounting Configuration
1-5
II. Network diagram
Internet
g
User
CAMS
Switch
Figure 1-2 Network diagram for traffic accountin
III. Configuration procedure
# Configure a traffic accounting group named somegroup.
<H3C> system-view
[H3C] traffic-accounting traffic-group somegroup
# Configure the following two destination network IP addresses for the traffic
accounting group.
[H3C-traffic-group-somegroup] network 11.127.1.0 24
[H3C-traffic-group-somegroup] network 12.127.1.0 24
# Enter the user's domain view (suppose the user belongs to domain aaa), set the
accounting mode to traffic accounting and configure the domain to use the traffic group.
[H3C] domain aaa
[H3C-isp-aaa] accounting-mode traffic
[H3C-isp-aaa] traffic-group somegroup rate 1
# Configure a traffic accounting card, specify a traffic collection card, and enable the
traffic accounting function.
[H3C] traffic-accounting accounting-slot 2
[H3C-accounting-slot-2] traffic-slot 3
[H3C-accounting-slot-2] accounting enable