Configuration Guide
Network Management and Monitor...
Traffic Mirroring Configuration
4 min
traffic mirroring configuration traffic mirroring configuration introduction introduction port mirroring allows users to use the data monitoring device to analyze the copied messages for network monitoring and troubleshooting by copying messages from a specified port to a port connected to the data monitoring device mirror source is the object being monitored, i e , the port that receives and sends the messages that need to be monitored, called the source port the mirroring destination is the destination to which the mirroring message is destined, i e , the port connected to the data monitoring device, called the destination port mirror direction refers to which direction messages can be copied on the mirror source inbound direction is to copy only copy the messages received by the mirror source outbound direction is to copy only the messages sent by the mirror source bidirectional is to copy both the received and outgoing messages of the mirror source configuration example configuration example network requirements network requirements device a and another device on the network communication abnormalities, the need to mirror the device connected to the external network interface ethernet49 to analyze the sending and receiving of messages, mirroring the destination port is connected to the server ethernet50 port procedure procedure \# create a mirror group, specify the mirror source as ethernet49, the mirror destination as ethernet50, and the mirror direction as bidirectional sonic(config)# mirror session 1 span dst ifname ethernet50 src ifname ethernet49 both verify configuration verify configuration view configuration sonic# show mirror session + + + + + + \| session name | destination port | source port | type | direction | +================+==================+=============+========+============+ \| 1 | ethernet21 | ethernet20 | span | both | + + + + + + capture packets on the server to view, and so on to capture all the messages sent and received on ethernet port 49
