Specifications

Table Of Contents
ip flow-cache mpls label-positions
MP-94
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
Command History
Usage Guidelines You must have NetFlow accounting configured on your router before you can use this command.
Use this command to configure the MPLS-aware NetFlow feature on a label switch router (LSR) and to
sp
ecify labels of interest in the incoming label stack. Label positions are counted from the top of the
stack, starting with 1. The position of the top label is 1, the position of the second label is 2, and so forth.
With MPLS-aware NetFlow enabled on the router, NetFlow collects data for incoming IP packets and
f
or incoming MPLS packets on all interfaces where NetFlow is enabled in full or in sampled mode.
Caution When you enter the ip flow-cache mpls label-positions command on a Cisco 12000 series Internet
router, NetFlow will stop collecting data for incoming IP packets on any Engine 4P line cards installed
in the router on which NetFlow is enabled in full or in sampled mode. Engine 4P line cards in a
Cisco 12000 series Internet router do not support NetFlow data collection of incoming IP packets and
MPLS packets concurrently.
Tip MPLS-aware NetFlow is enabled in global configuration mode. NetFlow is enabled per interface.
Examples The following example shows how to configure MPLS-aware NetFlow to capture the first (top), third,
an
d fifth label:
Router(config)# ip flow-cache mpls label-positions 1 3 5
The following example shows how to configure MPLS-aware NetFlow to capture only MPLS flow
information (no IP-related flow fields) and the length that represents the sum of the MPLS packet
payload length and the MPLS label stack length:
Router(config)# ip flow-cache mpls label-positions no-ip-fields mpls-length
The following example shows how to configure MPLS PE-to-PE Traffic Statistics for Netflow:
Router(config)# ip flow-cache mpls label-positions 1 2 exp-bgp-prefix-fields
Related Commands
Release Modification
12.0(24)S This command was introduced.
12.0(25)S The n
o-ip-fields and mpls-length keywords were.
12.3(8)T This command was integrated into Cisco IOS Release 12.3(8)T.
12.2(28)SB This command was integrated into Cisco IOS Release 12.2(28)SB.
12.2(31)SB2 This command was integrated into Cisco IOS Release 12.2(31)SB2. The
exp-
bgp-prefix-fields keyword was added.
Command Description
ip flow egress Enables NetFlow egress accounting for traffic that the router is forwarding.
ip flow ingress Enables NetFlow (ingress) accounting for traffic arriving on an interface.
ip flow-cache entries Changes the number of entries maintained in the NetFlow accounting cache.
ip flow-cache timeout Specifies NetFlow accounting flow cache parameters.