Configuring an ERSPAN auto mirror
For an ERSPAN auto mirror, traffic on specified ports is mirrored to the specified destination interface using ERSPAN encapsulation. The header contents are automatically configured; you only need to specify the ERSPAN collector address.
Using the GUI:
- Go to Switch > Mirror.
- Select Add Port Mirror.
- Enter a name for the mirror.
- Select Enabled to make the mirror active.
- Select from the excluded ports which ports to include for ingress mirroring and egress mirroring.
NOTE: Only one active egress mirror session is allowed. - Select ERSPAN Auto for the mode.
- Enable Strip VLAN Tags from Mirrored Traffic if you want to remove VLAN tags from mirrored traffic.
- In the Collector IP field, enter the IP address for the ERSPAN collector.
- In the IPv4 TTL field, enter the IPv4 time-to-live (TTL) value in the ERSPAN IP header.
- In the IPv4 TOS field, enter the type of service (ToS) value or enter the DSCP and ECN values in the ERSPAN IP header.
- In the GRE Protocol field, enter the protocol value in the ERSPAN GRE header.
- In the TPID field, enter the TPID for the encapsulating VLAN header.
The default value, 0x8100, is for an IEEE 802.1Q-tagged frame. - In the Priority field, enter the CoS bits in the ERSPAN VLAN header.
- In the CFI/DEI field, enter the CFI or DEI bit in the ERSPAN VLAN header.
- Select Create to create the mirror.
Using the CLI:
config switch mirror
edit <mirror session name>
set mode ERSPAN-auto
set encap-gre-protocol <hexadecimal_integer>
set encap-ipv4-tos <hexadecimal_integer>
set encap-ipv4-ttl <0-255>
set encap-vlan-cfi <0-1>
set encap-vlan-priority <0-7>
set encap-vlan-tpid <0x0001-0xfffe>
set erspan-collector-ip <0.0.0.1-255.255.255.255>
set src-egress <interface_name>
set src-ingress <interface_name>
set strip-mirrored-traffic-tags {disable | enable}
set status active
end