You can create a custom port mirroring switching profile with a different destination and key value.

Prerequisites

Procedure

  1. From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
  2. Click Switching in the navigation panel.
  3. Click the Switching Profiles tab.
  4. Click Add and select Port Mirroring.
  5. Complete the port mirroring switching profile details.

    Option

    Description

    Name and Description

    Assign a name to the custom port mirroring switching profile.

    You can optionally describe the setting you modified to customize this profile.

    Direction

    Select an option from the drop-down menu to use this source for Ingress, Egress, or Bidirectional traffic.

    Ingress is the outbound network traffic from the VM to the logical network.

    Egress is the inbound network traffic from the logical network to the VM.

    Bidirectional is the two-way of traffic from the VM to the logical network and from the logical network to the VM. This is the default option.

    Packet Truncation

    Optional. The range is 60 - 65535.

    Key

    Enter a random 32-bit value to identify mirrored packets from the logical port.

    This Key value is copied to the Key field in the GRE header of each mirror packet. If the Key value is set to 0, the default definition is copied to the Key field in the GRE header.

    The default 32-bit value is made of the following values.

    • The first 24-bit is a VNI value. VNI is part of the IP header of encapsulated frames.

    • The 25th bit indicates if the first 24-bit is a valid VNI value. One represents a valid value and zero represents an invalid value.

    • The 26th bit indicates the direction of the mirrored traffic. One represents an ingress direction and zero represents an egress direction.

    • The remaining six bits are not used.

    Destinations

    Enter the destination ID of the collector for the mirroring session.

    The destination IP address ID can only be an IPv4 address within the network or a remote IPv4 address not managed by NSX-T. You can add up to three destination IP addresses separated by a comma.

  6. Click Save.

Results

A custom port mirroring switching profile appears as a link.

What to do next

Attach the switching profile to a logical switch or logical port. See Associate a Custom Profile with a Logical Switch or Associate a Custom Profile with a Logical Port.

Verify that the customized port mirroring switching profile works. See Verify Custom Port Mirroring Switching Profile.