How to capture network traffic with Network Monitor
- The source address of the computer that sent a frame onto the network. (This address is a unique hexadecimal (or base-16) number that identifies that computer on the network.)
- The destination address of the computer that received the frame.
- The protocols used to send the frame.
- The data, or a portion of the message being sent.
To use Network Monitor, your computer must have a network card that supports promiscuous mode. If you are using Network Monitor on a remote machine, the local workstation does not need a network adapter card that supports promiscuous mode, but the remote computer does.
To capture across networks, or to preserve local resources, use the Network Monitor Agent to capture information using a remote Windows NT computer. When you capture remotely, the Network Monitor Agent gathers statistics from a remote computer, and then sends these statistics to your local computer, where they are displayed in a local Network Monitor window.
Once data has been captured either locally or remotely, the data can be saved to a text or a capture file, and can be opened and examined at a later time.
Note The core functionality of Network Monitor, described in Help, is supported by Microsoft Product Support Services. Network-dependent tasks, such as interpreting data that you capture from your network, are not supported. The Network Monitor Agent is supported for Windows NT, but is unsupported on Windows 3.1 and Windows for Workgroups workstations.
Creating an address listTo use address pairs in a Capture filter, you should first build an address database. Once this database is built, you can use the addresses listed in the database to specify address pairs in a capture filter.
To create an address list, follow these steps:
- From the Capture menu, select Start. Optionally, open a .cap file in the Frame Viewer window.
- When you have finished capturing, select Stop and View from the Capture menu to display the Frame Viewer window.
- From the Display menu, select Find All Names. Network Monitor processes the frames, then adds them to the address database.
- Close the Frame Viewer window, and display the Capture window.
- From the Capture menu, select Filter to display the Capture filter dialog box.
- In the Capture Filter dialog box, double-click on the Address Pairs line. Or, choose Address in the Add groupbox.
Capturing data between two computersTo monitor traffic between two computers, follow these steps:
- From the Capture menu, choose Filter to display the Capture Filter dialog box.
- Double-click on the ANY<->ANY line to display the Address Expression dialog box.
- In the left window of the Address Expression dialog box, select the address of a computer.
- In the right window of the Address Expression dialog box, select the address of a computer.
- In the Direction window, of the dialog box, choose one of the symbols:
- Choose the <--> symbol to monitor the traffic that passes in either direction between the addresses that you have selected.
- Choose the --> symbol to monitor only the traffic that passes from the address selected in the left window to the address selected in the right window.
- Choose OK.
- In the Capture Filter dialog box, choose OK.
- From the Capture menu, choose Start.
Saving captured dataUse the Save As command to save capture statistics to a capture file or to save changes to capture files that you have modified. Later, to view frames saved to file, you can open this file and display the statistics in Network Monitor's Frame Viewer window.
To save the captured frames to a capture file or text file:
- Do one of the following:
- On the Toolbar, click the File Save button.-or-
- From the File menu, choose Save As.
- On the Toolbar, click the File Save button.
- Do one the following:
- To save the file to the current drive and directory, in the File Name box, specify a file name and an extension. If you are saving a file that you have modified, you cannot save it under its original name in the same directory.
- To save the file to a network share to which you are not connected, choose the Network button, and then use the Connect Network Drive dialog box to establish the connection.
- To save the file to a different drive or directory, do the following:
- In the Drives box, select a new drive.
- In the Directories box, select a new directory.
- Type the file name.
- To save only those frame statistics that meet the specifications of the current display filter, choose Filtered.
This option is available only if you are saving data from the Frame Viewer window.
- To save a particular range of frames, type the beginning and ending frame numbers in the From and To boxes.
- Choose OK.
Buffer size settingsThe default buffer size is 1 megabyte (MB). To increase the buffer size so that you do not lose information, follow these steps:
- Click Capture, and then click Buffer Settings.
- Increase the value for the Buffer Size (MB) setting, and then click OK.
Tracing in a WAN EnvironmentSometimes, you may be asked to make a capture of network traffic between two specific computers that are separated by one or more routers. In these cases, the support professional may want to analyze all network traffic between the first computer and its nearest router, and all network traffic between the second computer and its nearest router. Most of the time, this is done to check whether or not network packets are being lost or corrupted somewhere between the routers. To make these traces consistent and to be able to read these traces simultaneously, the system clocks must be synchronized between the two computers prior to making the trace. Use the following steps to synchronize time between two computers:
- Choose the computer against which to synchronize the time.
- From the other computer, type the command net time \\ComputerName /set /yeswhere ComputerName is the name of the computer from step 1.
- Verify the computers have the same time by typing TIME at each one.
- Proceed with the trace.
Finding Media Access Control AddressesIf the computer to be monitored is running:
- An MS-DOS-based network client, run MSD at that computer.
- Windows for Workgroups 3.11 (running TCP/IP), type IPCONFIG /ALL from the command line.
- Windows 95, run WINIPCFG from the command line at the local workstation.
- MacOS, Open Appletalk Control Panel. Select User Mode from Edit Menu, change mode to Advanced. Appletalk Control Panel now reveals Info button. Click this button to obtain the MAC address
- Windows NT, at the local console, use one of these options:
- NET CONFIG SERVER from the command line
- IPCONFIG /ALL from the command line
- IPXROUTE config from the command line
- arp -a from the command line
- Getmac.exe from the Windows NT Resource Kit
- Windows NT, remotely, run Getmac.exe from the Windows NT Resource Kit
Article ID: 148942 - Last Review: 12/04/2015 14:26:11 - Revision: 7.3
- kbnosurvey kbarchive kbhowto KB148942