Vmware Vsphere 6.7: Optimize and Scale: Document Version
Vmware Vsphere 6.7: Optimize and Scale: Document Version
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Prepare to Capture Mirrored Network Traffic............................................................ 6
2 Configure Port Mirroring on the Distributed Switch. ............................................... 14
3 Verify That Port Mirroring Is Capturing Traffic ......................................................... 21
4 Restore the Distributed Switch Configuration.......................................................... 22
Introduction
In this lab, you will configure port mirroring on a Distributed Switch and capture traffic.
Objectives
Lab Topology
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
In this task, you will use the Linux01 virtual machine to capture and monitor mirrored
traffic.
1. Launch the sa-student virtual machine to access the graphical login screen.
2. Log in as sysadmin using the password vmware123.
3. Launch the Mozilla Firefox web browser by either clicking on the icon shortcut
found on the bottom toolbar or by navigating to Start Menu > Internet > Firefox
Web Browser.
4. Notice the homepage is automatically configured to load the URL address of the
VMware vCenter Server Appliance (sa-vcsa virtual machine). Click on the Launch
vSphere Client (HTML5) button to launch the HTML5-based vSphere client.
5. In the User name text field, type [email protected] and in the Password text
field, type vmware123. Click on Login.
6. In the navigator pane, click on the Hosts and Clusters tab and expand the
Datacenter object.
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
10. When Linux01 is booted up, log in as root with the password VMware1!.
11. In the Linux01 console, enter tcpdump -nn icmp at the command prompt and press
the Enter key.
12. Switch back to the vSphere Client tab, leaving Linux01 running.
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
15. Wait until Linux02 is fully booted up, then log in as root with the password VMware1!.
16. At the Linux02 command prompt, enter ping 172.20.10.10 and press the Enter key.
17. Switch back to the Linux01 window. You will need to press Ctrl+Alt to release the
mouse control from the remote console.
18. If the Linux01 console is black, press any key to see the output. Notice no traffic has
been captured.
19. Press Ctrl+Alt to release the mouse control from the remote console and then
switch back to the vSphere Client tab.
20. Leave vSphere Client open to continue with the next task.
In this task, you will configure port mirroring on the Distributed Switch.
4. In the Export Configuration window, make sure the Distributed switch and all port
groups checkbox is selected and click OK.
5. In the Firefox download dialog box, select Save File and click OK.
6. With dvs-Lab selected, click the Configure tab in the right pane and select Port
Mirroring on the left.
8. In the Add Port Mirroring Session window, at the Select session type step, leave
Distributed Port Mirroring checked and click Next.
9. On the Edit properties step, select Enabled for Status and Allowed for the Normal
I/O on destination ports drop-down menus and click Next.
10. On the Select sources step, click the Select distributed ports to add to this port
mirroring session icon.
13. On the Select Destinations step, click the Select distributed ports to add to this port
mirroring session icon.
14. In the Select Ports window, select Linux01 and click OK.
17. Leave vSphere Client open to continue with the next task.
In this task, you will verify that port mirroring is capturing traffic.
2. If there is a blank screen, put your pointer on the console of Linux01, click, then
press any key to see the output. You should see ICMP echo requests and replies.
3. In the File Upload window, select the Downloads folder, then select backup.zip and
click the Open button.
4. Leave Restore distributed switch and all port groups checked and click Next.
6. Verify the restore was successful by selecting dvs-Lab, Configure, Port Mirroring,
and the port mirroring session is gone.