3Com Switch 7750 Configuration Guide
550 CHAPTER 51: TRAFFIC ACCOUNTING CONFIGURATION
Traffic Accounting
Configuration
Example
Network requirements
■ A user running 802.1x authentication client accesses the Internet through a
switch. The user can access external networks after passing the authentication.
The accounting mode is traffic accounting. When the user accesses the
networks 11.127.1.0/24 and 12.127.1.0/24, the accounting server CAMS
charges the user according to the user’s online traffic. When the user accesses
other networks, however, the user is not charged.
Network diagram
Figure 140 Network diagram for traffic accounting
Configuration procedure
# Configure a traffic accounting group named somegroup.
<SW7750> system-view
[SW7750] traffic-accounting traffic-group somegroup
# Configure the following two destination network IP addresses for the traffic
accounting group.
[SW7750-traffic-group-somegroup] network 11.127.1.0 24
[SW7750-traffic-group-somegroup] network 12.127.1.0 24
[SW7750-traffic-group-somegroup] quit
# 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.
[SW7750] domain aaa
[SW7750-isp-aaa] accounting-mode traffic
Table 432 Display traffic accounting
Operation Command Description
Display traffic group
information
display traffic-accounting
traffic-group [ group-name ]
You can execute the display
command in any view.
Display traffic accounting
configuration
display traffic-accounting
accounting-slot [ slot-num ]
Display traffic accounting
statistics of one or all online
users
display traffic-accounting
statistics [ ip-address ]
Internet
Switch
User
CAMS