예: MX 시리즈 및 PTX 시리즈 라우터에 대한 논리적 시스템에서 활성 모니터링 구성
이 예는 MX 시리즈 또는 PTX 시리즈 라우터에서 실행되는 논리적 시스템에 대한 액티브 모니터링을 위한 샘플 구성을 보여줍니다.
다음 섹션은 기본 라우터의 구성을 보여줍니다.
[edit forwarding-options]
sampling {
instance inst1 {
input {
rate 1;
}
family inet;
output {
flow-server 198.51.100.2 {
port 2055;
version9 {
template {
ipv4;
}
}
}
}
interface sp-0/1/0 {
source-address 10.11.12.13;
}
}
}
family mpls;
output {
flow-server 198.51.100.2 {
port 2055;
version9 {
template {
mpls;
}
}
}
}
interface sp-0/1/0 {
source-address 10.11.12.13;
}
}
}
services {
flow-monitoring {
version9 {
template ipv4 {
flow-active-timeout 60;
flow-inactive-timeout 60;
ipv4-template;
template-refresh-rate {
packets 1000;
seconds 10;
}
option-refresh-rate {
packets 1000;
seconds 10;
}
}
template mpls {
mpls-template;
}
}
}
}
논리적 시스템의 구성은 기본 라우터에서 샘플링을 위해 입력 매개 변수와 출력 인터페이스를 사용합니다. 각 논리적 시스템에는 구성 문에 대한 별도의 템플릿 정의가 flow-server 있어야 합니다. 다음 섹션은 논리적 시스템의 구성을 보여줍니다.
logical-systems {
ls-1 {
firewall {
family inet {
filter test-sample {
term term-1 {
then {
sample;
accept;
}
}
}
}
}
interfaces {
ge-0/0/1 {
unit 0 {
family inet {
filter {
input test-sample;
output test-sample;
}
}
}
}
}
forwarding-options {
sampling {
instance sample-inst1 {
family inet;
output {
flow-server 198.51.100.2 {
port 2055;
version9 {
template {
ipv4-ls1;
}
}
}
}
}
}
family mpls;
output {
flow-server 198.51.100.2 {
port 2055;
version9 {
template {
mpls-ls1;
}
}
}
}
}
}
}
services {
flow-monitoring {
version9 {
template ipv4-ls1 {
flow-active-timeout 60;
flow-inactive-timeout 60;
ipv4-template;
template-refresh-rate {
packets 1000;
seconds 10;
}
option-refresh-rate {
packets 1000;
seconds 10;
}
}
template mpls-ls1 {
mpls-template;
}
}
}
}
}
}