- Router#enable
- Router#configure terminal
- Router(config)#ip flow-export
- Router(config-if)#version 5
- Router(config)#ip flow-export destination 172.17.1.1 9696
- Router(config)#interface GigabitEthernet1/0/1
- Router(config-if)#ip route-cache flow
- Router(config-if)#ip flow ingress
- Router(config-if)#interface GigabitEthernet1/0/2
- Router(config-if)# description a VLANed interface
- Router(config-if)# switchport access vlan 2
- Router(config-if)# switchport trunk encapsulation dot1q
- Router(config-if)# switchport trunk native vlan 2
- Router(config-if)# switchport mode trunk
- Router(config-if)# speed 1000
- Router(config-if)# duplex full
- Router(config-if)#interface Vlan2
- Router(config-if)# description a VLAN for our interface
- Router(config-if)# ip address 172.17.1.2 255.255.255.0
- Router(config-if)# ip flow ingress
- Router(config-if)# ip route-cache flow
- Router(config-if)#show ip flow export
You should get something like:
Flow export v5 is enabled for main cache
Exporting flows to 172.17.1.1 (6969)
Exporting using source IP address 172.17.1..249
Version 5 flow records
853478 flows exported in 66526 udp datagrams
0 flows failed due to lack of export packet
0 export packets were sent up to process level
Other useful commands are:
- Router(config-if)#show ip flow interface
- Router(config-if)#show ip cache flow