Cisco Cisco IOS Software Release 12.2(27)SBC

Page de 39
MPLS-Aware NetFlow
  How to Configure MPLS-Aware NetFlow
10
Cisco IOS Release: Multiple releases (see Feature Information table)
Configuring MPLS-Aware NetFlow on a Router
Perform this task to configure MPLS-Aware NetFlow on a router. Then, the router can export 
MPLS-Aware NetFlow data to a an external NetFlow collector or display NetFlow cache data on a router 
terminal. This data can be used for detailed MPLS traffic studies and analysis that can provide 
information for a variety of purposes such as MPLS network management, network planning, and 
enterprise accounting.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface type slot/port-adapter/port
or 
interface type slot/port 
4.
ip address ip-address mask [secondary]
5.
ip flow ingress
6.
Repeat Steps 3, 4, and 5 for each interface where you want to configure NetFlow accounting.
7.
exit 
8.
ip flow-export version 9 [origin-as | peer-as] [bgp-nexthop]
9.
ip flow-cache mpls label-positions [label-position-1 [label-position-2 [label-position-3]]] 
[no-ip-fields] [mpls-length]
10.
exit 
11.
ip flow-cache mpls label-positions [label-position-1 [label-position-2 [label-position-3]]] 
[no-ip-fields] [mpls-length]
12.
exit 
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode. 
Enter your password if prompted.
Step 2
configure
 terminal
Example:
Router# configure terminal
Enters global configuration mode.