Remote Packet Capture (rpcap)
How it Works
- Set the mirror on BOLT
- This defines what traffic will be mirrored to the target port.
- Eth2 is the port on the OLT that is used for capture
- Standard Port 2002 is used on OLT for remote wireshark connection
- Enable rpcap - this begins exposing the wireshark interface to the user.
- Start wireshark on the remote computer.
- Use wireshark remote pcap interface to connect to the OLT.
- Connect to eth2, port 2002.
- Perform capture.
- Disable RPCAP on the OLT.
Video
Command Syntax
Mirror Command
- Tolt diagnostics flowmirror
- Dir – ingress/egress/both, defines the direction to mirror.
- Mac-filter – A mac to filter on so can constrain to a single source/destination.
- Net-interface – Use a NET as the source of the mirror.
- Nni-interface – Mirror an individual uplink port.
- Pon-interface – Mirror a PON port's traffic
- Target – The target port to send the mirror to. Default is the cpu (eth2). It can also mirror to ports to allow surveillance for applications such as forescout.
- Vlan – A vlan number 2..4094 or any.
Rpcap Command
- Tolt diagnostics rpcap
- Enable – Enable the OLT to expose rpcap interface
- Disable – Disable rpcap and close rpcap port
Remote Packet Capture Example
The following example will show how to capture a packet from the BOLT.
- The first step will display the available completions of the flowmirror command.
- From the MDS1-ESUA# command line, input tolt diagnostics flowmirror enable, and question mark Output similar to the following is displayed showing all the action parameters:
MDS1-ESUA# tolt diagnostics flowmirror enable <enter>
Possible completions:
dir Traffic direction of source interface to mirror from.
mac-fiIter
net-interface Select a NET interface to mirror packet flows from
Nmi-interface Select an NNI interface to mirror packet flows from.
pon-interface Select a PON interface to mirror packet flows from
target Select an NNI interface as mirror-to target (CPU is used if target is not selected).
vlan VLAN ID or 'any' for untagged/mixed traffic.
MDSl-ESUA#_
|
- The next step will enable packets in both directions on net-interface NET1 and display the available completions of the target action.
- From the MDS1-ESUA# command line, input tolt diagnostics flowmirror enable dir both net-interface NET1 target?, and press Enter. Output similar to the following is displayed:
MDS1-ESUA# tolt diagnostics flowmirror enable dir both net-interface NET1 target ? <enter> Possible completions: Description: Select an NNI interface as mirror-to target(CPU is used if target is not selected). QSFPl-2-1 QSFPl-2-2 QSFPl-2-3 QSFPl-2-4 QSFPl-2-5 QSFPl-2-6 SFPl-1-1 SFPl-1-2 SFPl-1-3 SFPl-1-4 MDS1-ESUA# _
Note: Should no target be selected, the system will default the target as the cpu (eth2)
- The next step will enable packets in both directions on net-interface NET1 and capture all the vlans.
The following are the caprure options. Only one can be used at a time.- net-interface – will capture all the vlan packets
- nni-interface – will capture packets a single uplink port
- pon-interface – will capture what packets are going up and down the pon.
- From the MDS1-ESUA# command line, input tolt diagnostics flowmirror enable dir both net-interface NET1 vlan any, and press Enter. Output similar to the following is displayed:
MDS1-ESUA# tolt diagnostics flowmirror enable dir both net-interface NET1 vlan any <enter> Action success true reason MDS1-ESUA# _ - Success true, validates that the flowmirror is running with all traffic on the selected uplink going to the cpu.
- Now that the flowmirror is set up, we will enable rpcap.
- From the MDS1-ESUA# command line, input tolt diagnostics rpcap enable, and press Enter. Output similar to the following is displayed:
MDS1-ESUA# tolt diagnostics rpcap enable <enter> Action success true reason MDS1-ESUA# _ - The next steps will use Wireshark on a remote computer to view the captured packets.
- Click on an interface to display the Capture Options.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgyMykucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=qMtiLjB~J8sxQk8DkvS3gQVnGkpoaHSnwp2d1SHFKe~ruyWhDEBpXBpgS4aJnRlwlj7lkEIIMxfd8DWfB3ggnS43f9~0vgjTZxNjfoTI0HNpPYOtpqa8cTx3YsgNIHZL9UdvINnji7qvXa3t~fldmnOYKpo1iZRBXI2-cQjppwkkzIQ7FbFLiW9fdvupzAxrREKwIpWeSpDVPQYmwRiNP9Ce4mPxojTXbiBYIzTLWv2VK2cfJwEh~-FtsR4D3USo4K55EsvXbSZ~b-7xfpYQBXdzXBO6RR3cQbOfws6GG~uppcS9kju5b0beexc2iyy1rEXPFoUMdrtlHtDllTtPqQ__&Key-Pair-Id=K2TK3EG287XSFC)
- Click on the Manage Interfaces button to access Remote Interfaces.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgyNCkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=nubZenUf-E0klDo2pSuasO8vJOUIEHpEEess3N2PkABdV1SVfgJHkUup1uGH69gJ-2ivFanOlI~RCvH6lREwptX8~rkGowGCHQSp-xLfYUGuLu~az17hzBLvWU4VfNKpYNdjObq9Q4~siGY5xQwBT6wnuK6NA9VKF85muB7Nh8RaU~6sTcRmWxs2viK9InigFtLrqYDgd6F3buFutWtlBHd855gKbcBUNHXmYmWYPHUHogTbqgZAPCV6jr21wDJCCaSKB8kryKNXxXpmJEYmZNv1q9h5hz3fmTlcaGu0gkcdqfY8ETMpzNcKsoOAMoXiag78uHGGGsbAosqqYVOzDQ__&Key-Pair-Id=K2TK3EG287XSFC)
- Click on the Remote Interfaces button to add an interface.
. - Add an interface.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxNikucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=M4DBMNd1kVsrObFMOZOzA4MmVgCb-lKtGl5WYkLuS6famUNYpZ8i0h45Cl-bJQuxlQl3FPJ1am9E1YMzLA53I~BLUyfZhmMeD~tL6h1qCvigM1IN7rdzGUBDI1di7rJAbH94z0PkUPPeweiaYj6K-6z2kNObRpYS83dxvhsgiRkcbqsWPm1Ip3sc7m9vawvTsIxUfHBt1omcUGp1843Fl9LTx0KlUu9xW3dQksSdIn1hANgdUw3472F3Or2eU~TQakD0wPxnxNaHRXgJYXbF5ixGzvU2ln94nYptypXey2~XcWN2TUDWcUQAg4hdAN0Mjkz3bsrcaJn7pQJ1ilsPUg__&Key-Pair-Id=K2TK3EG287XSFC)
- Add the IP address of the Host. In this case, it will be the IP address of the OLT (i.e. 172.29.122.141).
- The port number will be the default Wireshark port of 2002.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxNykucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=E06nxLt-UGnlUnQx1NPqthXWxwyst4dCSLCVbgETJoXOpDnbUh3qJekca1AIGKDkcUzgj0hE7OgI6IjoaLbE2irkBV9~Wkr3gogZTqk3LKQgXOctEwQEUeEglg-l~F~EV2HbIXSYfQScTUXh8SeULPDgLInrLs0Eg9pAgpkuAFTI~x7BqIVqPLnSp30osqmLxSmSlRYnvB7-dOJ5AdNsUIlx58UhS7q9oAPRDRJy6PLU08lNPCzTA-aDFSSYN64Xt-eyPvdTurbYxzZ5dqsBaBcBFkD~xUwE6JwHn88mwwzwnCMOz~mfEml~vtKE6qQ2G8GgM2GGiEyNon123YRDlA__&Key-Pair-Id=K2TK3EG287XSFC)
- There will be a short delay while Wireshark connects to the OLT, then all the interfaces are displayed.
- We will want to click on eth2 (cpu), which is our mirror target, then select the OK button.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxOCkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=INPBzn5ON9np3DsmhadqQ7TY5HoTFa6TUfN3EHNFsHreZMEnLILU~jS76PmcRnrFVvAGKozu4GY6Jg-ROwYhVOfl2Zd5ZdlBeak5DYOTvQi2hdNjWf5DWplOqiEpmBOoVDIHQhZjLTK8k8iz11MTUlpaA0wicBnkOR8xodUcC0wAeS8VewkTuf3iTHrfC-ISJNCbLWCHGqDFwGSk5yy0rPiUlIwr9URvwtWZDlNDHePyfa1MK2GlnU7WNpwn34qV4KKTCO2FNg422d8eIj-DJEzfkYVA1ghR6FEl0LRk-47bKcghAf-sDzyzLe2n7io531FTYYp12drYxOuL1~e4YA__&Key-Pair-Id=K2TK3EG287XSFC)
- The next screen will display the available interfaces. Scroll down to display eth2 and double-click to access live captures of the uplink.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgxOSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=pYTFew6cAG470zCZNZ9C2r6vgEqd7j~U7B1AEQ2gK3-CZz5yGMqB~C1rr6K6aFjk4lLZlhiJpa-IhKXF6usKg9KxRihQZ89DBl92q8kD2hhYVtMt6amuTIdCsGPTANRLL1vjN76nfon4y531mEaFyx-tEbGcAhURNRvsmwdGAQkFrNP~jXdeHX4B8HQhqhXnBTyjoiU3hb2YnID2VDEPyHmyMg5laztJOmaB0AMLecWwICCA4YSRfm35hGAdZHxGhuGGdftHjtRnqRAMyM3NGGCwM4Lexh7sFv1QElFy6tvBi2affxcdNsWDGOc3NDFkKwQRoPji0IQWj-TES2Ai0g__&Key-Pair-Id=K2TK3EG287XSFC)
- We are now getting live captures of our uplink.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgyMCkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=MHh-ZNyndXxeXv1ETseWNmJcq9CtYEXPyIx8g3IGaFdxD7AQZJr2mrz1GdQSGNvIHl81J02Un2Qf7HZweR3GbRgpZD83GQT8fnwKND-1LEczPsJl52E5tPf4JXv~3FNCtp0cWnrYBbOcjzonu6RclIl2Ma2S0cMsNB~enbl9tZ2QdCtagnaBTQoSwW~ElFJZK97A9mgqDU6b436HM8ZbEwzaa2bHaPYlNODkisrnlyth4dY8bDEFrdC1TROKgJKvwaCbOHULJ0aqo5tdBZvTZJ-8LeylOZImBPfYNkClnLuz6pVg6u36u5eS4qS5TFMAlwEoycL0GG-r1to9RL-GrQ__&Key-Pair-Id=K2TK3EG287XSFC)
- We will now validate the connection by pinging the OLT by going to the command screen and ping our gateway.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgyMSkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=q4HwpHPDmwxHCnLUVeM9f7tuZIWDafHz1HUeKoVk0~1Qxds0kLXQHNxIxQBMkpCH8qyGtnL2mR~jm1smOUnLuWzfJlM9WaZOZVye15Yncsd0~DPtemjPcMq4Lh-wwjvqTaHsakcUX7GOy6WYj93X~OahbkctDtO80Cz~k9s6Z0q1bHodmPB6OP5KhkZ3S3N-0H9GET4sv0g8ga~xLSjZ5JQ0zhtWG2N33F0LPQ8ugvaWSIhmRR2I-AL68fVQRkOdhLubV2RQw8yWJ2HzOrHRdW7MPuzopCv9fcNEckzVrH3hbop62IYIvG9LP6AtBr0NqWUB9z78UjUwqY2e0kCofA__&Key-Pair-Id=K2TK3EG287XSFC)
- On Wireshark the display screen will display, in real time, the ping activity.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy80MTcwMy81NDk1Mi9ja2ZpbmRlci9pbWFnZXMvcXUvMjAyNi9pbWFnZSgyMikucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzk0NDU4NjQzfX19XX0_&Signature=L9oKCba2kW6WP5amIwfpFJmaTqO1qVa6VxPtVpi9gNgTyJ3mSME~YCSaSrWSc-yFyKfZbB4sCzjBlCX~EKbsEmnT1UbaLQxZQ~advmsxKaX~ylRlC3mf2LrMyhomJGNQXCvPDN7HT59P58dc7YiYbd2Uj1LI6VgsEAp9PeLko9iHeR4pQlS6p1IoWWKq58j05kbYPLRpY8jOm~CsumPJoPEp7vB7kB5JdW2fOXh-Ay8h0bHvWyb7~B5yQjgoIi7aM8rafu-L3nCSNdgxAzRSBdSFg02S8s3YuDiSwZn3w5QRrKQMdFSkRI3IkD90yvdFvM904NfWh9UufenoVd0j8w__&Key-Pair-Id=K2TK3EG287XSFC)
- When the session is complete, we will disable the rpcap and the flowmirror.
Note: Should the rpcap and flowmirror remain running, it will slow down the cpu and introduce unnecessary heat to the system.
- From the MDS1-ESUA# command line, input tolt diagnostics rpcap disable, and press Enter. Output similar to the following is displayed.
MDS1-ESUA# tolt diagnostics rpcap disable <enter>
action-success true
reason
MDS1-ESUA# _
|
- From the MDS1-ESUA# command line, input tolt diagnostics flowmirror disable, and press Enter. Output similar to the following is displayed.
MDS1-ESUA# tolt diagnostics flowmirror disable <enter>
action-success true
reason
MDS1-ESUA# _
|
- Session complete
FEEDBACK: Are you happy with this material?
Thank you Your feedback helps us to continually improve our content.