cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1906
Views
0
Helpful
5
Replies

IP traffic export on subinterface

Sergey Prishchepa
Spotlight
Spotlight

Hi!

I need capture the traffic on subinterface router 2921 ios c2900-universalk9-mz.SPA.151-4.M1.bin. Configuration:

 

ip traffic-export profile IPexport mode capture
 bidirectional

!

interface GigabitEthernet0/1
 ip address 1.1.1.1 255.255.255.252
 ip flow ingress
 ip virtual-reassembly in max-reassemblies 64
 ip traffic-export apply IPexport
 load-interval 30
 duplex auto
 speed auto
!
interface GigabitEthernet0/1.10
 encapsulation dot1Q 10
 ip traffic-export apply IPexport
 bridge-group 10
!

interface BVI10
 ip address dhcp
 ip flow ingress

!
bridge 10 protocol ieee
bridge 10 route ip

 

I see traffic only of the interface GigabitEthernet0/1. I try mode export, but result the same.

What is wrong?

 

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

Hi your using a layer 3 command applied to a sub-interface with no IP applied acting as layer 2 i would say that's why its not working as it can only capture traffic on an ip interface

View solution in original post

5 Replies 5

Mark Malone
VIP Alumni
VIP Alumni

Hi your using a layer 3 command applied to a sub-interface with no IP applied acting as layer 2 i would say that's why its not working as it can only capture traffic on an ip interface

That is IP traffic export only for layer 3? And for layer 2 only monitor session?

RITE works based on ip packets being sent in our out of an interface but your output/input on a layer 2 interface would be frames not ip packets so RITE has nothing to actually capture on it so that's why I think its only working for you on the main interface as you have specified an ip for it to work with

Span is different that captures all traffic that goes in our out of interface regardless of whether its ip/frame or application level everything is captured and viewed through pcap on wireshark but unfortunately span is not supported on most routers, with routers most use 3rd party applications to record there traffic like CA,NetQos,Prime etc  , erspan would works as well on switch but only on some higher end switches like 6500s

Check if you have EPC on the router on some newer models that's available and if so you could use that and export it to you pc to view

monitor capture

With monitor capture ruselt the same, i see traffic only of the interface GigabitEthernet0/1.

monitor capture buffer 1 size 10000

monitor capture point associate 1 1

 

 

monitor capture point ip cef 1 bvi 10 both

or

monitor capture point ip cef 1 gigabitEthernet 0/1.10 both