Cisco Cisco IOS Software Release 12.2(27)SBC
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
MPLS-Aware NetFlow
Information About MPLS-Aware NetFlow
5
Cisco IOS Release: Multiple releases (see Feature Information table)
If you configure the NetFlow MPLS Label Export feature on the P router at the inbound interface shown
in
in
, you can capture and export label 33 with its associated application LDP and its destination
IP address or the FEC.
Note
For information on additional labels allocated in your network, you can configure the NetFlow MPLS
Label Export feature on additional network routers.
Label Export feature on additional network routers.
MPLS-Aware NetFlow Capture and Display of MPLS Labels
This section contains the following topics:
•
•
MPLS-Aware NetFlow Capture of MPLS Labels
When you configure the MPLS-Aware NetFlow feature, you select the MPLS label positions in the
incoming label stack that you are interested in monitoring. You can capture up to three labels from
positions 1 to 6 in the MPLS label stack. Label positions are counted from the top of the stack. For
example, the position of the top label is 1, the position of the next label is 2, and so on. You enter the
stack location value as an argument to the following command:
incoming label stack that you are interested in monitoring. You can capture up to three labels from
positions 1 to 6 in the MPLS label stack. Label positions are counted from the top of the stack. For
example, the position of the top label is 1, the position of the next label is 2, and so on. You enter the
stack location value as an argument to the following command:
ip flow-cache mpls label-positions
[label-position-1 [label-position-2
[label-position-3]]]
The label-position argument represents the position of the label on the incoming label stack. For
example, the ip flow-cache mpls label-positions 1 3 4 command configures MPLS-Aware NetFlow to
capture and export the first (top), third, and fourth labels. If you enter this command and the label stack
consists of two MPLS labels, MPLS-Aware NetFlow captures only the first (top) label. If some of the
labels you requested are not available, they are not captured or reported.
example, the ip flow-cache mpls label-positions 1 3 4 command configures MPLS-Aware NetFlow to
capture and export the first (top), third, and fourth labels. If you enter this command and the label stack
consists of two MPLS labels, MPLS-Aware NetFlow captures only the first (top) label. If some of the
labels you requested are not available, they are not captured or reported.
Note
MPLS-Aware NetFlow allows the capture of up to three labels.
MPLS-Aware NetFlow is enabled globally on the router. However, NetFlow is enabled per interface and
must be enabled in either full or sampled mode on the interfaces where you choose to capture and export
MPLS and IP NetFlow data.
must be enabled in either full or sampled mode on the interfaces where you choose to capture and export
MPLS and IP NetFlow data.
MPLS-Aware NetFlow Display of MPLS Labels
The MPLS-Aware NetFlow feature allows the display of a snapshot of the NetFlow cache, including
MPLS flows, on a terminal through the use of the show ip cache verbose flow command. For example,
output like the following from a provider backbone router (P router) shows position, value, experimental
bits, and end-of-stack bit for each MPLS label of interest.
MPLS flows, on a terminal through the use of the show ip cache verbose flow command. For example,
output like the following from a provider backbone router (P router) shows position, value, experimental
bits, and end-of-stack bit for each MPLS label of interest.
SrcIf SrcIPaddress DstIf DstIPaddress Pr TOS Flgs Pkts
Port Msk AS Port Msk AS NextHop B/Pk Active
PO3/0 10.1.1.1 PO5/1 10.2.1.1 01 00 10 9
0100 /0 0 0200 /0 0 0.0.0.0 100 0.0
Pos:Lbl-Exp-S 1:12305-6-0 2:12312-6-1
In this example from a P router: