1-8Figure 1-3 Network diagram for local port mirroring configurationSwitch C Data monitoringdeviceR&DdepartmentSwitch ASwitch BGE1/0/2GE1/0/1GE1/0/3MarketingdepartmentConfiguration procedureConfigure Switch C.# Create a local port mirroring group. system-view[SwitchC] mirroring-group 1 local# Add port GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to the port mirroring group as source ports.Add port GigabitEthernet 1/0/3 to the port mirroring group as the destination port.[SwitchC] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 GigabitEthernet 1/0/2 both[SwitchC] mirroring-group 1 monitor-port GigabitEthernet 1/0/3# Display the configuration of all the port mirroring groups.[SwitchC] display mirroring-group allmirroring-group 1:type: localstatus: activemirroring port:GigabitEthernet1/0/1 bothGigabitEthernet1/0/2 bothmonitor port: GigabitEthernet1/0/3After finishing the configuration, you can monitor all the packets received and sent by R&D departmentand Marketing department on the Data monitoring device.Remote Port Mirroring Configuration ExampleNetwork requirementsThe departments of a company connect to each other through Ethernet switches:z Department 1 is connected to GigabitEthernet 1/0/1 of Switch A.z Department 2 is connected to GigabitEthernet 1/0/2 of Switch A.z GigabitEthernet 1/0/3 of Switch A connects to GigabitEthernet 1/0/1 of Switch B.z GigabitEthernet 1/0/2 of Switch B connects to GigabitEthernet 1/0/1 of Switch C.z The data monitoring device is connected to GigabitEthernet 1/0/2 of Switch C.