Edit the details of a port mirroring session, including name, description, status, sources, and destinations.

Procedure

  1. In the vSphere Web Client, navigate to the distributed switch.
  2. Click the Manage tab and select Settings > Port Mirroring.
  3. Select a port mirroring session from the list and click Edit.
  4. On the Properties page, edit the session properties.

    Depending on the type of port mirroring session being edited, different options are available for configuration.

    Option

    Description

    Name

    You can enter a unique name for the port mirroring session, or accept the automatically generated session name.

    Status

    Use the drop-down menu to enable or disable the session.

    Normal I/O on destination ports

    Use the drop-down menu to allow or disallow normal I/O on destination ports. This property is only available for uplink and distributed port destinations.

    If you do not select this option, mirrored traffic will be allowed out on destination ports, but no traffic will be allowed in.

    Encapsulated VLAN ID

    Enter a valid VLAN ID in the field. This information is required for Remote Mirroring Source port mirroring sessions.

    Mark the check box next to Preserve original VLAN to create a VLAN ID that encapsulates all frames at the destination ports. If the original frames have a VLAN and Preserve original VLAN is not selected, the encapsulation VLAN replaces the original VLAN.

    Mirrored packet length (Bytes)

    Use the check box to enable mirrored packet length in bytes. This puts a limit on the size of mirrored frames. If this option is selected, all mirrored frames are truncated to the specified length.

    Description

    You have the option to enter a description of the port mirroring session configuration.

  5. On the Sources page, edit sources for the port mirroring session.

    Depending on the type of port mirroring session being edited, different options are available for configuration.

    Option

    Description

    Add existing ports from a list

    Click the Select distributed ports… button. A dialog opens with a list of existing ports. Select the check box next to the distributed port and click OK. You can choose more than one distributed port.

    Add existing ports by port number

    Click the Add distributed ports… button, enter the port number and click OK.

    Set the traffic direction

    After adding ports, select the port in the list and click the ingress, egress, or ingress/egress button. Your choice is displayed in the Traffic Direction column.

    Specify the source VLAN

    If you selected a Remote Mirroring Destination sessions type, you must specify the source VLAN. Click the Add button to add a VLAN ID. Edit the ID by either using the up and down arrows, or clicking in the field and entering the VLAN ID manually.

  6. In the Destinations section, edit the destinations for the port mirroring session.

    Depending on the type of port mirroring session being edited, different options are available for configuration.

    Option

    Description

    Select a destination distributed port

    Click the Select distributed ports… button to select ports from a list, or click the Add distributed ports… button to add ports by port number. You can add more than one distributed port.

    Select a uplinks

    Select an available uplink from the list and click Add > to add the uplink to the port mirroring session. You can select more than one uplink.

    Select ports or uplinks

    Click the Select distributed ports… button to select ports from a list, or click the Add distributed ports… button to add ports by port number. You can add more than one distributed port.

    Click theAdd uplinks... button to add uplinks as the destination. Select uplinks from the list and click OK.

    Specify IP address

    Click the Add button. A new list entry is created. Select the entry and either click the Edit button to enter the IP address, or click directly into the IP Address field and enter the IP address. A warning dialog opens if the IP address is invalid.

  7. Click OK.