Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Port Mirroring (NSM Procedure)

    On all M Series, T Series, and MX Series routers, you can send a copy of an IPv4 or IPv6 packet from the routers to an external host address or a packet analyzer for analysis. This is known as port mirroring. In addition, on the M7i, M10i, M120, M320 and MX Series routers only, you can configure port mirroring for VPLS traffic. VPLS port mirroring is supported only on M7i and M10i routers with Enhanced CFEB (CFEB-E). In addition, on M320 routers, VPLS port mirroring is supported only on Enhanced III Flexible PIC Concentrators (FPCs).

    To configure port mirroring in NSM:

    1. In the NSM navigation tree, select Device Manager > Devices.
    2. Click the Device Tree tab, and then double-click the device to select it.
    3. Click the Configuration tab. In the configuration tree, expand Forwarding Options > Port Mirroring.
    4. Add or modify settings as specified in Table 1.
    5. Click one:
      • OK—Saves the changes.
      • Cancel—Cancels the modifications.

    Table 1: Port Mirroring Configuration Details

    TaskYour Action

    Configure the address type family to sample for port mirroring.

    1. In the Comment box, enter the comment for the port mirroring.
    2. Select the Mirror Once check box to configure the router to mirror packets only once.
    3. Click Family next to Port Mirroring.
    4. Expand Family.
    5. Click Inet or Inet6 next to Family.
    6. Click Output.
    7. In the Comment box, enter the comment.
    8. Select the No Filter Check check box to disable filter checking on the port-mirroring interface.
    9. Click Interface next to Output.
    10. Click Add new entry next to Interface.
    11. Expand Interface.
    12. In the Name box, enter the name of the interface.
    13. In the Comment box, enter the comment.
    14. Click Next Hop next to interface.
    15. Click Add new entry next to Next Hop.
    16. In the Name box, enter the IP address of the next-hop router.
    17. In the Comment box, enter the comment.
    18. Click Vpls next to Family.
    19. In the Comment box, enter the comment.
    20. Click Output next to Vpls.
    21. In the Comment box, enter the comment.
    22. In the Interface box, enter the name of the interface.
    23. Select the No Filter Check check box to disable filter checking on the port-mirroring interface.

    Configure input packet properties for port mirroring.

    1. In the Comment box, enter the comment for input.
    2. From the Rate list, select the ratio of the number of packets to be sampled. For example, if you specify a rate of 10, every tenth packet (1 packet out of 10) is sampled.

      Range: 1 through 65,535

    3. From the Run Length list, select the number of samples following the initial trigger event. This allows you to sample packets following those already being sampled.

      Range: 0 through 20

      Default: 0

    Configure a port-mirroring instance.

    1. Click Instance next to Port Mirroring.
    2. Click Add new entry next to Instance.
    3. In the Name box, enter the name of the port-mirroring instance.
    4. To configure the address type family to sample for port mirroring, refer Table 1.
    5. To configure input packet properties for port mirroring, refer Table 1.

    Configure traffic sampling tracing operations.

    1. In the Comment box, enter the comment for traceoptions.
    2. Click File next to Traceoptions.
    3. In the Comment box, enter the comment for the file.
    4. In the Filename box, enter the name of the file containing the trace information.

      Default: /var/log/sampled

    5. In the Size box, enter the maximum size of each traffic sampling file or trace log file, in kilobytes (KB), megabytes (MB), or gigabytes (GB).

      Syntax: xk to specify KB, xm to specify MB, or xg to specify GB

      Range: 10 KB through the maximum file size supported on your router

      Default: 1 MB for sampling data; 128 KB for log information

    6. From the Files list, select the maximum number of traffic sampling or trace log files.

      Range: 1 through 100 files

      Default: 5 files for sampling output; 10 files for trace log information

    7. Select one of the following:
      • world-readable—To enable unrestricted file access.
      • no-world-readable—To restrict file access to owner.

    Published: 2013-01-06