摘要 |
A method and router for implementing mirroring, said method including: configuring a remote mirroring port on a source router, establishing a corresponding layer two virtual interface, and specifying a data stream requiring mirroring and a corresponding physical egress port; establishing a layer two virtual interface corresponding to the layer two virtual interface of said source router on a destination router; forming one VPWS tunnel between the layer two virtual interfaces of said source router and said destination router; filtering out the mirroring data stream from the packet received at the remote mirroring port of said source router, and sending obtained mirroring packet from the physical egress port on said source router to said destination router; searching the layer two virtual interface on said destination router after receiving mirroring packet, and sending mirroring packet without a label from its corresponding physical port to a monitoring port, thereby implementing router remote mirroring. |