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

ERSPAN at ASR90x

wojciechlubas
Level 1
Level 1

Hello everybody,

 

On my ASR907 Router, with following software:

Cisco IOS XE Software, Version 16.09.02
Cisco IOS Software [Fuji], ASR900 Software (PPC_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 16.9.2, RELEASE SOFTWARE (fc4)

 

I can't achive remote L3 mirroring with ERSPAN feature. I configure it as below:

 

interface GigabitEthernet0/2/5
description monitor
mtu 9000
ip address 10.123.234.1 255.255.255.0
negotiation auto

 

monitor session 1 type erspan-source
source interface Gi0/2/0
destination
erspan-id 100
ip address 10.123.234.5
origin ip address 10.123.234.1
!

 

On source port there is some traffic:

#sh int gi0/2/0 | i minute
5 minute input rate 2000 bits/sec, 3 packets/sec
5 minute output rate 2000 bits/sec, 3 packets/sec

 

but on mirrored port there is silence:

#sh int gi0/2/5 | i minute
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec

 

The status of mirroring session seems to be ok:

#sh moni ses 1
Session 1
---------
Type : ERSPAN Source Session
Status : Admin Enabled
Source Ports :
Both : Gi0/2/0
Destination IP Address : 10.123.234.5
Destination ERSPAN ID : 100
Origin IP Address : 10.123.234.1

 

I tried also to establish any link between 2 routers, but also no success.

I increased MTU on outgoing interface, but there is totally nothing comming out.

Troubleshooting and debugging shows

 

 

x(config-mon-erspan-src)#no shut
x(config-mon-erspan-src)#
.Mar 26 15:06:46.181: SPAN-request:
cfg_mon_sess_submode_cmd, span_session_type = 4
cfg_mon_sess_submode_cmd:3751
.Mar 26 15:06:46.181: SPAN-request:
cfg_mon_sess_submode_cmd, cfg_mon_type = 17
cfg_mon_sess_submode_cmd:3848
.Mar 26 15:06:46.181: SPAN-request:
span_req_session_shut, Session [0] received a no shutdown span_req_session_shut:1094
.Mar 26 15:06:46.182: SPAN-request:
cfg_mon_sess_submode_cmd, sess_type = 10
cfg_mon_sess_submode_cmd:4288
.Mar 26 15:06:46.182: SPAN-request:
cfg_mon_sess_submode_cmd, cfg_mon_obj = 1
cfg_mon_sess_submode_cmd:4411
x(config-mon-erspan-src)#
x(config-mon-erspan-src)#end
SPAN Request @ 0x37CB5E44
-------------------------
sr_type: SPAN_REQ_ADD_SESS
session_type: SPAN_SESSION_ERSPAN_SRC
sr_desc:
sr_session: 0
sr_flag: 0x01
sr_flag_mask: 0x00
sr_force_cfg: 0
sr_dst_encap: 0
sr_ftr_in_pkt_type: 0x00
sr_ftr_eg_pkt_type: 0x00
sr_ftr_in_addr_type: 0x00
sr_ftr_eg_addr_type: 0x00
sr_dst_ingress_encap: 0
sr_dst_ingress_enabled: N
sr_dst_ingress_vlan: 0
sr_dst_learning_enabled: N
sr_dst_vlan: 0
sr_src_rspan_vlan: 0
sr_dst_vlan: 0
sr_src_port_list:
sr_src_subif_list:
sr_src_vlan_list:
sr_src_drop_cause_bitlist:
sr_dst_port_list:
sr_ftr_vlan_list:
ss_src_cpus:
CPU[0]:
sce_cpu_id: 0
sce_flags: 0x0
sce_in_q_bitmap: 0x0
sce_eg_q_bitmap: 0x0
CPU[1]:
sce_cpu_id: 0
sce_flags: 0x0
sce_in_q_bitmap: 0x0
sce_eg_q_bitmap: 0x0
sr_src_ip_addr: 0.0.0.0
sr_dst_ip_addr: 0.0.0.0
sr_origin_ip_addr: 0.0.0.0
sr_src_ip_vrf_id: 0
sr_dst_ip_vrf_id: 0
sr_src_erspan_id: 0
sr_dst_erspan_id: 0
sr_ip_prec: 8
sr_ip_dscp: 64
sr_ip_ttl: 256
sr_dst_cpu_id: 0
sr_capture_vlan: 0
sr_smac: 0000.0000.0000
sr_dmac: 0000.0000.0000
sr_ftr_sgt_list:

x#
.Mar 26 15:06:51.973: SPAN-request:
span_validate_src_vlan_list, sv =0x407E46A4, session = 0 span_validate_src_vlan_list:891
.Mar 26 15:06:51.973: SPAN-request:
span_config, current req ptr = 37CB5E44
span_config:2963
.Mar 26 15:06:51.973: SPAN-request:
In Func span_apply_req_to_session, type of request 1
span_apply_req_to_session:2764
.Mar 26 15:06:51.974: SPAN-request:
In Func span_apply_req_to_session, type of request = 1
span_apply_req_to_session:2768
.Mar 26 15:06:51.974: SPAN-request:
span_add_req_to_span_session, current request ptr = 37CB5E44
span_add_req_to_span_session:1820
.Mar 26 15:06:51.974: ERSPAN-INFO: received span_req (add=1) for session 1

.Mar 26 15:06:51.974: ERSPAN ADD request for SRC session 1
----------------------------------------------------------
sr_type: ADD_SESS
sr_flag: 0x1: ENA
sr_origin_ip_addr: 0.0.0.0
sr_dst_ip_addr: 0.0.0.0
sr_dst_erspan_id: 0
mtu: 0
sr_dst_ip_vrf_id: 0
sr_ip_prec: 8
sr_ip_dscp: 64
sr_ip_ttl: 256
sr_gre_prot: 0
smac: 0000.0000.0000
dmac: 0000.0000.0000
sr_src_port_list: 0x0, sr_src_port_count: 0
sr_src_subif_list: 0x0, sr_src_subif_count: 0
sr_src_vlan_list: 0x0, sr_src_vlan_count: 0
sr_src_drop_cause_bitlist: 0x0, sr_src_drop_cause_count: 0
sr_ftr_vlan_list: 0x0, sr_ftr_vlan_count: 0
no filter acl.

.Mar 26 15:06:51.976: ERSPAN-INFO: handling ADD_SESS request for SRC session 1 ...

 

 

The router seems to ignore configured IPs, and it doesn't matter if the session will be terminated locally or on another router.

 

Does anyone configured ERSPAN successfully on ASR90x Series routers?

0 Replies 0

Review Cisco Networking for a $25 gift card