[Contents] [Prev] [Next] [Index] [Report an Error]


Examples: Configure Filters or Sampling on Aggregated SONET Links

Configure filtering on aggregated SONET/SDH interfaces:

[edit interfaces]
asx {
    unit 0 {
        family inet {
            address 10.2.11.1/32 {
                destination 10.2.11.3;
            }
            filter {
                input input-filter-name;
                output output-filter-name;
            }
        }
    }
}

Define the filter

[edit firewall]
filter input-filter-name {
    term match-any-input {
        then {
            accept;
        }
    }
}
filter output-filter-name {
    term match-any-output {
        then {
            accept;
        }
    }
}

Configure sampling on aggregated SONET/SDH interfaces

[edit interfaces]
asx {
    unit 0 {
        family inet {
            address 10.2.11.1/32 {
                destination 10.2.11.3;
            }
            filter {
                input input-sampler-name;
            }
        }
    }
}

Define the sampling filter and the forwarding action

[edit firewall]
filter input-sampler-name {
    term match-any-input {
        then {
            sample;
            accept;
        }
    }
}

[edit forwarding-options]
sampling {
    input {
        family inet {
            rate 10000;
            run-length 1;
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]