Step 1
|
configure
RP/0/RP0/CPU0:router#configure
Enters global configuration mode.
|
Step 2
|
flow exporter-map
map_name
RP/0/RP0/CPU0:router(config)#flow exporter-map expmap-dtxr2
Creates an exporter map, configures the exporter map name, and enters flow exporter map configuration mode.
|
Step 3
|
version
v9
RP/0/RP0/CPU0:router(config-fem)#version v9
(Optional) Enters flow exporter map version configuration submode.
|
Step 4
|
options {interface-table | sampler-table} [timeout
seconds]
RP/0/RP0/CPU0:router(config-fem-ver)#options interface-table timeout 300
(Optional) Configures the export timeout value for the interface table or the sampler table. Replace seconds with the export timeout value, in the range from 1 through 604800 seconds. The default is 1800 seconds for both the interface
table and the sample table.
You must perform this step twice to configure the export timeout value for both an interface table and a sample table.
|
Step 5
|
template [data | options] timeout
seconds
RP/0/RP0/CPU0:router(config-fem-ver)#template data timeout 300
(Optional) Configures the export period for data packets or options packets. Replace seconds with the export timeout value, in the range from 1 through 604800 seconds.
You must perform this step twice to configure the export period for both data packets and options packets.
|
Step 6
|
exit
/CPU0:router(config-fem-ver)#exit
Exits flow exporter map version configuration mode, and enters flow exporter map configuration mode.
|
Step 7
|
transport udp
port
RP/0/RP0/CPU0:router(config-fem)#transport udp 12515
(Optional) Specifies the destination port for UDP packets. Replace port with the destination UDP port value, in the range from 1024 through 65535.
|
Step 8
|
source
type interface-path-id
RP/0/RP0/CPU0:router(config-fem)#source Loopback0
Specifies a source interface, in the format type
interface-path-id .
|
Step 9
|
destination
hostname_or_IP_address
RP/0/RP0/CPU0:router(config-fem)#destination 170.1.1.11
Configures the export destination for the flow exporter map. The destination can be a hostname or an IPv4/IPv6 address.
|
Step 10
|
exit
RP/0/RP0/CPU0:router(config-fem)#exit
Exits flow exporter map configuration mode, and enters XR Config mode.
|
Step 11
|
flow monitor-map
map_name
RP/0/RP0/CPU0:router(config)#flow monitor-map MPLS-IPv6-fmm
Creates a monitor map and configures a monitor map name and enters flow monitor map configuration submode.
|
Step 12
|
record mpls [ipv4-ipv6-fields] [labels
number]
RP/0/RP0/CPU0:router(config-fmm)#record mpls ipv6-fields labels 3
Configures the flow record map name for IPv4, IPv6, or MPLS. Use the ipv4-ipv6-fields keyword to collect IPv4 and IPv6 fields in an MPLS-aware NetFlow.
|
Step 13
|
exporter
map_name
RP/0/RP0/CPU0:router(config-fmm)#exporter exp1
Associates an exporter map with a monitor map.
Note
|
A single flow monitor map can support up to eight exporters.
|
|
Step 14
|
cache entries
number
RP/0/RP0/CPU0:router(config-fmm)#cache entries 65535
(Optional) Configures the number of entries in the flow cache. Replace the number argument with the number of flow entries allowed in the flow cache, in the range from 4096 through 1000000.
The default number of cache entries is 65535.
|
Step 15
|
cache timeout {active
timeout_value | inactive
timeout_value | update
timeout_value}
RP/0/RP0/CPU0:router(config-fmm)#cache timeout inactive 120
(Optional) Configures the active, inactive, or update flow cache timeout value.
-
The default timeout value for the inactive flow cache is 15 seconds.
-
The default timeout value for the active flow cache is 1800 seconds.
-
The default timeout value for the update flow cache is 1800 seconds.
Note
|
The inactive and active keywords are not applicable to permanent caches.
|
Note
|
The update keyword is used for permanent caches only. It specifies the timeout value that is used to export entries from permanent caches.
In this case, the entries are exported but remain the cache.
|
|
Step 16
|
cache
permanent
RP/0/RP0/CPU0:router(config-fmm)#flow monitor-map fmm cache permanent
(Optional) Disables the removal of entries from flow cache.
|
Step 17
|
exit
RP/0/RP0/CPU0:router(config-fmm)#exit
Exits flow monitor map configuration submode.
|
Step 18
|
sampler-map
map_name
RP/0/RP0/CPU0:router(config)#sampler-map fsm
RP/0/RP0/CPU0:router(config-sm)#
Creates a sampler map and enters sampler map configuration mode.
|
Step 19
|
random 1 out-of
sampling_interval
RP/0/RP0/CPU0:router(config-sm)#random 1 out-of 65535
Configures the sampling interval to use random mode for sampling packets. Replace the sampling_interval argument with a number, in the range from 1 through 65535 units.
|
Step 20
|
exit
RP/0/RP0/CPU0:router(config-sm)#exit
Exits sampler map configuration mode and enters XR Config mode.
|
Step 21
|
interface
type number
RP/0/RP0/CPU0:router(config)#interface HundredGigE 0/3/0/0
RP/0/RP0/CPU0:router(config-if)#
Enters interface configuration mode.
|
Step 22
|
flow [ipv4 | ipv6 | mpls] monitor
monitor_map
sampler
sampler_map {ingress}
RP/0/RP0/CPU0:router(config-if)#flow ipv4 monitor MPLS-IPv6-fmm sampler fsm ingress
Associates a monitor map and a sampler map with an interface.
Enter ipv4 to enable IPV4 NetFlow on the specified interface. Enter ipv6 to enable IPV6 NetFlow on the specified interface. Enter mpls to enable MPLS-aware NetFlow on the specified interface.
|
Step 23
|
commit
|
Step 24
|
exit
RP/0/RP0/CPU0:router(config-if)# exit
Exits interface configuration submode for the Ethernet interface.
|
Step 25
|
exit
RP/0/RP0/CPU0:router(config)# exit
|
Step 26
|
show flow monitor-map
map_name
RP/0/RP0/CPU0:router#show flow monitor-map MPLS-IPv6-fmm
Flow Monitor Map : MPLS-IPv6-fmm
-------------------------------------------------
Id: 1
RecordMapName: ipv4-raw
ExportMapName: expmap-dtxr2
CacheAgingMode: Normal
CacheMaxEntries: 65535
CacheActiveTout: 60 seconds
CacheInactiveTout: 120 seconds
CacheUpdateTout: N/A
CacheRateLimit: 2000
RP/0/RP0/CPU0:ios#
Displays flow monitor map data.
|
Step 27
|
show flow exporter-map
map_name
RP/0/RP0/CPU0:router#show flow exporter-map expmap-dtxr2
Flow Exporter Map : expmap-dtxr2
-------------------------------------------------
Id : 1
DestinationIpAddr : 170.1.1.11
VRFName : default
SourceIfName : Loopback0
SourceIpAddr : 10.200.58.1
DSCP : 10
TransportProtocol : UDP
TransportDestPort : 12515
Export Version: 9
Common Template Timeout : 300 seconds
Options Template Timeout : 300 seconds
Data Template Timeout : 600 seconds
Interface-Table Export Timeout : 300 seconds
Sampler-Table Export Timeout : 0 seconds
VRF-Table Export Timeout : 0 seconds
Displays exporter map data.
|