User guide

8-14 MPLS Module Installation and User Guide
Configuring Destination-Sensitive Accounting
Configuring Destination-Sensitive Accounting Based on Destination IP
Subnets
Figure 8-1 is an example of destination-sensitive accounting based on destination IP
subnets.
Figure 8-1: Destination-sensitive accounting based on destination IP subnets
In this example, all IP unicast traffic is forwarded by the BlackDiamond switch to one of
three IP subnets. Each IP subnet is mapped to a different accounting bin. The steps that
follow describe how to configure the accounting feature. This example assumes that the
VLANs are created, IP forwarding is enabled, and accounting is enabled.
1 Create access profiles for each destination subnet. The following commands create
three different profiles: arm1, arm2, and arm3. Each profile is defined to be type
ipaddress
with a mode of
none
. Each subnet is then assigned to one of the profiles.
create access-profile arm1 type ipaddress
config access-profile arm1 mode none
config access-profile arm1 add 10 permit ipaddress 192.168.100.0/24
MPLS_22
IP Subnet
cloud
Accounting Table Bins
192.168.100.0/24
192.168.101.0/24
192.168.102.0/24
Packet count from
VLAN 3 to 192.168.100.0/24
Byte count from
VLAN 3 to 192.168.100.0/24
VLAN 1
VLAN 2
VLAN 3
Data traffic
DSA
default
VLAN
192.168.101.0/24
192.168.102.0/24
0
1
1
2
23
3
4567
Accounting
table cell
contains
64-bit packet
and
byte counts
192.168.100.0/24