The active monitoring application was initially intended for port-mirroring packets on an interface on a normal network router to single or multiple destinations. By port-mirroring these packets to a tunnel interface and using filter-based forwarding on the tunnel interface, port-mirrored packets can be load-balanced across set of interfaces. This method employs existing configuration statements for passive monitoring.
The configuration consists of the following parts; sample values are included for illustration only.
For more information about firewall filters, see the JUNOS Policy Framework Configuration Guide.
- [edit interfaces]
- ge-1/3/0 {
-
- unit 0 {
-
- family inet {
-
- filter {
- input PORT-MIRROR-TO-VT;
- }
- address 10.38.0.2/30;
- }
- }
- }
- vt-3/2/0 {
-
- unit 0 {
-
- family inet {
-
- filter {
- input catch;
- }
- }
- }
- }
- mo-6/1/0 {
-
- unit 0 {
- family inet;
- }
- }
- mo-6/2/0 {
-
- unit 0 {
- family inet;
- }
- }
- mo-6/3/0 {
-
- unit 0 {
- family inet;
- }
- }
- mo-7/1/0 {
-
- unit 0 {
- family inet;
- }
- }
- mo-7/2/0 {
-
- unit 0 {
- family inet;
- }
- }
- mo-7/3/0 {
-
- unit 0 {
- family inet;
- }
- }
For more information on configuring interface properties, see the JUNOS Network Interfaces Configuration Guide.
For more information on routing instance configuration, see the JUNOS Routing Protocols Configuration Guide.
For more information on routing table groups, see the JUNOS Routing Protocols Configuration Guide.
For more information on routing policy groups, see the JUNOS Policy Framework Configuration Guide.
- [edit forwarding-options]
- port-mirroring {
-
- input {
- rate 1;
- }
-
- family inet {
-
- output {
- interface vt-3/2/0.0;
- no-filter-check;
- }
- }
- }
- monitoring group1 {
-
- family inet {
-
- output {
- export-format cflowd-version-5;
- flow-active-timeout 60;
- flow-inactive-timeout 15;
- cflowd 10.36.252.1 port 2055;
-
- interface mo-6/1/0.0 {
- source-address 10.36.252.2;
- }
-
- interface mo-6/2/0.0 {
- source-address 10.36.252.2;
- }
-
- interface mo-6/3/0.0 {
- source-address 10.36.252.2;
- }
-
- interface mo-7/1/0.0 {
- source-address 10.36.252.2;
- }
-
- interface mo-7/2/0.0 {
- source-address 10.36.252.2;
- }
-
- interface mo-7/3/0.0 {
- source-address 10.36.252.2;
- }
- }
- }
- }
- hash-key {
-
- family inet {
- layer-3;
- }
- }
For more information on hash keys, see the JUNOS Policy Framework Configuration Guide.