Device(config-flow-monitor)# exporter fe-ipfix Device(config-flow-monitor)# cache timeout inactive 50 Device(config-flow-monitor)# cache timeout active 120 Device(config-flow-monitor)# record fr-1-out Device(config-flow-monitor)# end Device# show flow monitor fm-1-output cache format table Example: Configuring Flexible NetFlow for Ingress VRF Support The following example configures the collection of theVRF ID from incoming packets on a device by applying an input flow monitor having a flow record that collects the VRF ID as a key field.
Device> enable Device# configure terminal Device(config)# flow record rm_1 Device(config-flow-record)# match routing vrf input Device(config-flow-record)# match ipv4 source address Device(config-flow-record)# match ipv4 destination address Device(config-flow-record)# collect interface input Device(config-flow-record)# collect interface output Device(config-flow-record)# collect counter packets Device(config-flow-record)# exit Device(config)# flow monitor mm_1 Device(config-flow-record)# record rm_1 Device(config-flow-record)# exit Device(config)# interface GigabitEthernet 1/0/1 Device(config-if)# ip vrf forwarding green Device(config-if)# ip address 172.16.2.2 255.255.255.252 Device(config-if)# ip flow monitor mm_1 input Device(config-if)# end Example:
Configuring Flexible NetFlow for Egress VRF Support The following example configures the collection of the VRF ID from outgoing packets on a device by applying an output flow monitor having a flow record that collects the VRF ID as a key field.
Device> enable Device# configure terminal Device(config)# flow record rm_1 Device(config-flow-record)# match routing vrf intput Device(config-flow-record)# match ipv4 source address Device(config-flow-record)# match ipv4 destination address Device(config-flow-record)# collect interface input Device(config-flow-record)# collect interface output Device(config-flow-record)# collect counter packets Device(config-flow-record)# exit Device(config)# flow monitor mm_1 Device(config-flow-record)# record rm_1 Device(config-flow-record)# exit Device(config)# interface GigabitEthernet 1/0/1 Device(config-if)# ip vrf forwarding green Device(config-if)# ip address 172.16.2.2 255.255.255.252 Configuring Flexible NetFlow Example:
Configuring Flexible NetFlow for Ingress VRF Support Configuring Flexible NetFlow 35