Step 1
|
configure
|
|
Step 2
|
flow exporter-map
map_name
RP/0/RSP0/CPU0:router(config)# flow exporter-map exp1
|
Creates an
exporter map, configures the exporter map name, and enters flow exporter map
configuration mode.
|
Step 3
|
version
v9
RP/0/RSP0/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/RSP0/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/RSP0/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
RSP0/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/RSP0/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/RSP0/CPU0:router(config-fem)# source Loopback0
|
Specifies a
source interface, in the format
type
interface-path-id . For example:
POS 0/1/0/1 or Loopback0
|
Step 9
|
destination
hostname_or_IP_address
RP/0/RSP0/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/RSP0/CPU0:router(config-fem)# exit
|
Exits flow
exporter map configuration mode, and enters
global
configuration mode.
|
Step 11
|
flow monitor-map
map_name
RP/0/RSP0/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/RSP0/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/RSP0/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/RSP0/CPU0:router(config-fmm)# cache entries 10000
|
(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/RSP0/CPU0:router(config-fmm)# cache timeout inactive 1800
|
(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/RSP0/CPU0:router(config-fmm)# flow monitor-map fmm cache permanent
|
(Optional)
Disables the removal of entries from flow cache.
|
Step 17
|
exit
RP/0/RSP0/CPU0:router(config-fmm)# exit
|
Exits flow
monitor map configuration submode.
|
Step 18
|
sampler-map
map_name
RP/0/RSP0/CPU0:router(config)# sampler-map fsm
RP/0/RSP0/CPU0:router(config-sm)#
|
Creates a
sampler map and enters sampler map configuration mode.
Keep the
following in mind when configuring a sampler map:
|
Step 19
|
random 1 out-of
sampling_interval
RP/0/RSP0/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/RSP0/CPU0:router(config-sm)#exit
|
Exits sampler
map configuration mode and enters
global
configuration mode.
|
Step 21
|
interface
type
number
RP/0/RSP0/CPU0:router(config)# interface gigabitEthernet 0/0/0/0
RP/0/RSP0/CPU0:router(config-if)#
|
Enters
interface configuration mode.
|
Step 22
|
flow [ipv4 |
ipv6
|
mpls]
monitor
monitor_map
sampler
sampler_map {egress |
ingress}
RP/0/RSP0/CPU0:router(config-if)# flow ipv4 monitor MPLS-IPv6-fmm sampler fsm egress
|
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/RSP0/CPU0:router(config-if)# exit
|
Exits
interface configuration submode for the Ethernet interface.
|
Step 25
|
exit
RP/0/RSP0/CPU0:router(config)# exit
|
Exits
global
configuration mode.
|
Step 26
|
show flow monitor-map
map_name
RP/0/RSP0/CPU0:router# show flow monitor-map fmm
|
Displays flow
monitor map data.
|
Step 27
|
show flow exporter-map
map_name
RP/0/RSP0/CPU0:router# show flow exporter-map fem
|
Displays
exporter map data.
|