TCP/IP Administration and Troubleshooting Tools in Windows
Welcome, Guest. Please login or register. Did you miss your activation email?


Britec Computer Tech Help Support Forums  « Tutorials « Tutorials and How-to « TCP/IP Administration and Troubleshooting Tools in Windows
Pages: [1]
  Print  
Author Topic: TCP/IP Administration and Troubleshooting Tools in Windows  (Read 756 times)
Britec
Administrator
Hero Member
*****
Posts: 3497



View Profile
« on: December 16, 2010, 08:52:44 AM »

TCP/IP Administration and Troubleshooting Tools in Windows

Microsoft Windows provides a set of built-in utilities for administering and troubleshooting TCP/IP networks. Windows XP contains many of the standard network troubleshooting tools found on most other computers as well as some additional, more advanced ones.

Each of these utilities runs from the Windows command prompt. From the Start menu, choose Run and type 'cmd' to open a command window, then type in the name of the utility to run.

These include:

    * ping
    * arp
    * ipconfig
    * tracert ( traceroute in Linux )
    * getmac.exe
    * Hostname
    * Nslookup
    * Net.exe
    * Netstat
    * Pathping.exe
    * Netsh.exe
    * Nbtstat.exe
    * Route.exe
    * Finger


These protocols are run from the command prompt in Windows. One way to get to a command prompt:

Windows logo
Run
cmd.exe

You can find out more about these protocols by appending /? to the name

ping:

ping /? returns this:



ping sends a request for a response to a network device. If the device is configured to respond, ping tells you how long it took to make the round trip.
This is the result of a ping to the IP address of google:



You can also ping URLs:



If you can ping an IP but not the associated URL, you have a DNS problem.

If you want to ping non stop until the device responds, add a -t between ping and the IP address:

ping -t 74.125.95.99

    * To pause this continuous ping: CTRL-Break
    * To terminate this continuous ping: CTRL-C


arp:

ARP – Address Resolution Protocol – keeps a table of IP addresses assigned to MAC addresses.

Arp /? returns:



The one to use is arp -a



If you know a device is on line but it does not show up, ping it. This will put the device in the arp table

A breakdown of the results:

Interface 192.168.1.26 is the wired ethernet card in my laptop. It sees:

    * 192.168.1.16; the wireless router
    * 192.168.1.25; the desktop PC
    * 192.168.1.255; the network broadcast address

and some IPs that will be used in the future when TCP – IP gets upgraded.

Interface 192.168.1.254 is the wireless card in my laptop. It sees:

    * 192.168.1.16; the wireless router
    * 192.168.1.17; another wireless device
    * 192.168.1.25; the desktop PC
    * 192.168.1.255; the network broadcast address

and some IPs that will be used in the future when TCP – IP gets upgraded.

ipconfig:

ipconfig is a tool for determining the IP configuration of your own computer.

The three commands you will use the most

    * ipconfig /all; tells you the configuration status of your computer
    * ipconfig /release; releases all values assigned by DHCP
    * ipconfig /renew; requests fresh configuration info from DHCP.


ipconfig /?:



ipconfig /all, truncated to fit:



There is too much here to break it all down. Certain highlights:

IP routing enabled: No; I do not have Internet sharing set up

DHCP is enabled on the wireless card, DHCP is off on the wired card. If I perform an ipconfig /release and an ipconfig /renew, I may get a different wireless IP, but the static IP on the wired card will remain the same.


tracert:

tracert /?




A tracert to googles IP:



There are 14 hops from My router to google

first hop; 192.168.1.16: my router

second hop; FTW, 192.168.2.1: my wireless bridge.
the third hop is configured to conceal information about itself. That is my ISP.

This is DSL connection through qwest.

Hop 6, 205.171.151.61 has a similar IP to the DNS server at the top of the page. If you tracert to a known IP when the internet is down, you typically see 67.42.200.219 ( in NM, using qwest ), or another similar IP, but you don't see 205.171.XXX.XXX. This indicates that the local ISP is OK, the connection to Albuquerque is good, and DNS is down.

tracert to a web site when your network is working well. Do a screen capture. When things stop working, do another tracert and compare to the known good trace. Learn the various hops in the early part of the journey, the end thats under your control. Learn the hops in your ISPs system.

netsh:

This is a Windows protocol.

netsh/?



The variant that interests us is:

netsh wlan show networks mode=bssid

This command shows APs in operation, and in range. Too long to screen capture all of it:



Freeware Utilities

All of these utilities share certain problems:

    * You can't edit. If you type

      ping 173.234.65.211


      you get to do it all over again, because it wont work with the extra i.
    * The white on black display is not user friendly
    * The results are not displayed in a user friendly fashion


There are solutions to these problems. Programmers have generated programs that perform these functions in a kinder, gentler way.

Selected freeware network utilities:

Sam Spade 1.14

type an IP or URL in the box at the top left. Once. Just once. If you want to ping or traceroute again a little later, just select it from the drop down box.

Compare this traceroute to google through sam Spade with the one above:



Note that it picked up the IP of my WISP, missing in tracert.

Does ping, tracert, other worthwhile network things.

Netscan:

does what arp should do, and better:

It sorted by IP addresses because I asked it to. It shows me public directories. Some of these devices are configured via internal web pages. Right click on the IP address, you get a pop-up box that takes you to the configuration page.

Vistumbler

For Vista and windows 7. Does what netsh does, and more. Interfaces with a GPS. Plots its findings in Google Earth.




The Dude

Does what Netscan does, and draws network layouts:





There is loads of others these are just some of the free tools available

IP Configuration Utility (Ipconfig.exe) Displays all current Transmission Control Protocol/Internet Protocol network configuration values, and refreshes Dynamic Host Configuration Protocol (DHCP) and DNS settings.

Name Server Lookup (Nslookup.exe) Displays information about Domain Name System records for specific IP addresses and host names for troubleshooting DNS problems. Check records, domain host services, domain host aliases, and operating system information by querying DNS servers.

Net services commands
(Net.exe) Performs a broad range of network tasks that is use to set, view, access and determine the network settings. Type net with no parameters (or by using net /?) to see the full list of available command-line options.

Netstat (Netstat.exe) Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, and protocol statistics for IPv4/IPv6. Click Here to read the article for viewing the current connection.  

Network Command Shell (Netsh.exe) Displays and modifies the network configuration of a currently running local or remote computer using thirteen sets of commands called contexts for performing a wide range of network configuration.

PathPing (Pathping.exe) Trace a path to a remote system and report packet losses at each router along the way to identify problems at a router or network link.  Basically, It combines the functions of Traceroute and Ping.

TCP/IP NetBIOS Information (Nbtstat.exe) is a command-line tool to troubleshoot NetBIOS name-resolution problems. It Displays statistics for the NetBIOS over TCP/IP (NetBT) protocol, NetBIOS name tables for both the local computer and remote computers, and the NetBIOS name cache.

Get MAC Address (Getmac.exe) Displays the Media Access Control (MAC) address for all network cards either locally or across a network.

Hostname (Hostname.exe) Display the name of the current host. Note: It does not display the computers fully qualified domain name (FQDN).

IP Configuration Utility
(Ipconfig.exe) Displays all current Transmission Control Protocol/Internet Protocol network configuration values, and refreshes Dynamic Host Configuration Protocol (DHCP) and DNS settings.

Finger Displays information about a user on a specified remote computer or system that is running the Finger service. The output varies on the remote system.
« Last Edit: December 16, 2010, 09:05:44 AM by Britec » Logged



cyber24
Full Member
***
Posts: 116



View Profile
« Reply #1 on: December 17, 2010, 05:38:33 AM »

This networking tutorial/review was very good Brian! I'm starting to slowly learn the networking  side and this is all good info!
Logged



BJseal91
Hero Member
*****
Posts: 699



View Profile
« Reply #2 on: December 17, 2010, 08:26:34 AM »

Great Information Brian
this was even good for me I never new about finger untill today another tutorial saved to my collection and added to the information folder Top Man Smiley

Bradley
Logged
Britec
Administrator
Hero Member
*****
Posts: 3497



View Profile
« Reply #3 on: December 17, 2010, 02:06:03 PM »

It should help those who dont know what these tools are and what they do...but for most its basic stuff.
Logged



Pages: [1]
  Print  
 
Jump to: