The following example is not a complete configuration, but shows all the steps needed to configure port mirroring on an L2VPN using family ccc.
- [edit]
- bridge-domains {
-
- port-mirror-bd { # Contains an external traffic analyzer
- interface ge-2/2/9.0; # External analyzer
- }
- }
- [edit]
- protocols {
-
- mpls {
- interface all;
- }
-
- connections {
-
- interface-switch if_switch {
- interface ge-2/0/1.0;
- interface ge-2/0/1.1;
- }
- }
- }
- [edit]
- forwarding-options {
-
- port-mirroring {
-
- input {
- rate 1;
- maximum-packet-length 200;
- }
-
- family ccc {
-
- output {
- interface ge-2/2/9.0; # Mirror packets to the external
analyzer
- }
- }
-
- instance {
-
- inst1 {
-
- input {
- rate 1;
- maximum-packet-length 300;
- }
-
- family ccc {
-
- output {
- interface ge-2/2/9.0;
- }
- {
- }
- }
- }
- }
- [edit]
- firewall {
-
- family ccc {
-
- filter pm_ccc {
-
- term pm {
- then port-mirror;
- }
- }
- }
- }
- [edit]
- chassis {
-
- fpc 2 {
- port-mirror-instance inst1;
- }
- }
- [edit]
- interfaces {
-
- ge-2/0/1 {
- vlan-tagging;
- encapsulation extended-vlan-ccc;
-
- unit 0 {
- vlan-id 10;
-
- family ccc {
-
- filter {
- input pm_ccc;
- }
- }
- }
-
- unit 1 {
- vlan-id 20;
-
- family ccc {
-
- filter {
- output pm_ccc;
- }
- }
- }
- }
-
- ge-2/2/9 {
- encapsulation ethernet-bridge;
-
- unit 0 {
- family bridge;
- }
- }
- }