how to mirror traffic on a router
1. define a traffic export profile
suppose we are on a console of a router
enter a routers;s configuration
#ip tra
#ip traffic-expport profile ciscozine-test mode export
#bidirectional
#interface fastEthernet 0/0
#mac-address 0015.61b9.2abb
#exit
2. apply the profile to an ingress interface
#conf t
#interface dialer 1
#traffic-export apply ciscozine-test
#^z
3.check the ip traffic export statistics
#show ip traffic-export
you can check the traffic "mirrored" using wireshark
router permits to save packets in local router memory
1. define a traffic capture profile
#conf t
#ip traffic-export profile ciscozine-test-2 mode capture
#bidirectional
2. apply the profile to an ingress interface
#conf t
#inter dialer1
#ip traffic-expoert apply ciscozine-test-2 size 1000000
only one profile to an interface
3.start the capture
#traffic-export interface dialer 1 start
4.stop the capture
#traffic-export interface dialer 1 stop
5. check the ip traffic capture statistics
#show ip traffic-export