This article provides information on how to configure Layer 2 VPLS/Bridge port mirroring in MX routers.
How to configure Layer 2 VPLS/Bridge port mirroring in MX routers.
CE1(ge-2/2/0)--vpls--(ge-2/2/1)PE1(xe-4/0/0)--Core--(ge-0/1/0)PE2(ge-0/0/0)--vpls--(ge-2/2/0)CE2
[edit forwarding-options port-mirroring ] instance { pm_instance1 { input { rate 1; } family inet { output { interface xe-4/2/0.0 { next-hop 203.203.203.2; } } } family vpls { output { interface xe-4/2/0.20; no-filter-check; } } } }
[edit interfaces xe-4/2/0] flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { vlan-id 10; family inet { address 203.203.203.1/30; } } unit 20 { encapsulation vlan-bridge; vlan-id 20; }
[edit bridge-domains] instance1 { vlan-id none; interface xe-4/2/0.20; }
[edit firewall] family vpls { filter test_vpls { term 0 { then { count vpls; accept; port-mirror-instance pm_instance1; } } } }
[edit interfaces ge-2/2/1] vlan-tagging; encapsulation vlan-vpls; unit 0 { encapsulation vlan-vpls; vlan-id 600; family vpls { filter { input test_vpls; output test_vpls; } } }
[edit chassis] fpc 2 { port-mirror-instance pm_instance1; }
jtac-ggsn-pgw-blr Seconds: 8 Time: 09:08:47 Delay: 0/0/4 Interface: xe-4/2/0.20, Enabled, Link is Up Flags: SNMP-Traps 0x20004000 Encapsulation: VLAN-Bridge VLAN-Tag [ 0x8100.20 ] Local statistics: Current delta Input bytes: 0 [0] Output bytes: 0 [0] Input packets: 0 [0] Output packets: 0 [0] Remote statistics: Input bytes: 0 (0 bps) [0] Output bytes: 96605722 (13388600 bps) [12839750] Input packets: 0 (0 pps) [0] Output packets: 66811 (1154 pps) [8855] Traffic statistics: Input bytes: [0] lab@jtac-ggsn-pgw-blr> show firewall filter test_vpls Filter: test_vpls Counters: Name Bytes Packets vpls 88485690 61452 lab@jtac-ggsn-pgw-blr> show firewall filter test_vpls Filter: test_vpls Counters: Name Bytes Packets vpls 90915890 63128