set interface ethernet-switching-options analyzer erspan input


The set interface ethernet-switching-options analyzer erspan input command configures the input port of ERSPAN. Parameter ingress indicates mirroring traffic in the inbound direction of the input port, egress indicates mirroring traffic in the outbound direction of the input port. You can configure to mirror both the ingress and egress traffic at the same time or only one direction.

The delete interface ethernet-switching-options analyzer erspan input command deletes the configuration.


Command Syntax

set interface ethernet-switching-options analyzer <mirror-name> erspan input ingress<port-name>

set interface ethernet-switching-options analyzer <mirror-name> erspan input egress<port-name>


Parameters

Parameter

Description

analyzer <mirror-name>

Specifies a name of the ERSPN. The value is a string.

<port-name>

Specifies the input port on which the traffic will be mirrored. Only physical interfaces are supported, any other interfaces, such as LAG interface, VLAN interfaces, are not supported.


Example

  • The following example commands mirror all packets that te-1/1/4 receives, and copy and transmit the packets from source IP address 100.1.1.1 to destination IP address 200.1.1.2 through a GRE tunnel:
admin@Xorplus# set interface ethernet-switching-options analyzer 111 erspan input ingress te-1/1/4
admin@Xorplus# set interface ethernet-switching-options analyzer 111 erspan output source-ip 100.1.1.1
admin@Xorplus# set interface ethernet-switching-options analyzer 111 erspan output dest-ip 200.1.1.2
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.