set interface ethernet-switching-options analyzer erspan output source-ip


The set interface ethernet-switching-options analyzer erspan output source-ip command configures the source IPv4 address for ERSPAN encapsulation.

The delete interface ethernet-switching-options analyzer erspan output source-ip command deletes the configuration.

NOTE:

The configured source IPv4 address and destination IPv4 address are used for the IP header encapsulation in the outer layer of the GRE message. Users have to configure the routing protocol to ensure the devices at both ends of the GRE tunnel are route reachable.


Command Syntax

set interface ethernet-switching-options analyzer <mirror-name> erspan output source-ip <source-ipv4>


Parameters

Parameter

Description

analyzer <mirror-name>

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

source-ip <source-ipv4>

Specifies the source IPv4 address for the IP header encapsulation in the outer layer of the GRE message.


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.