How to copy from the command prompt window to a text file. Example: you want to copy the output of IPCONFIG command to a file named ipconfig.txt.
Open a command line window.
Make a new folder on the E partition.Type e:
e:\cntstudent\> CD\
E:\> MD  TEST1
Now locate the file in the root directory of your computer D: drive.

         Use the ipconfig /all utility to identify the TCP/IP address, subnet mask, default gateway of a computer, the DHCP server that provide the IP address of a computer, and to determine when the lease for that address was obtained and when it will expire..

·         Use the ping utility to contact other computers on the network and remote computers.

·         Use tracert (trace route) to view the path communications take between two systems (computers, routers)..

1.      Select Start, Programs, Command Prompt . If Command Prompt is not available, select Start, Run, type cmd and press Enter or select OK.

2.      To obtain the IP address for your computer, at the C:\ prompt, type ipconfig   /all and press Enter.
List the:
Physical address (MAC address):_____________
that's the address embedded in your network card, analogous to your VIN on your car.
IP address: _______________
the IP address is changeable, unlike the MAC address.
Subnet Mask address: _______________
the subnet mask number tells your computer whether it is located on a subnetwork, a part of a larger network.
Default Gateway: _________________ That's the computer or router that connect to the rest of the world, outside your subnet or LAN.
IP address of the DHCP server: ______________ That's the computer that issues IP addresses to any computer that is powered up.
When was the lease for the IP address obtained: _________________
When will the lease expire: ______________
To send the results of the command to a text file, type:
E:\> ipconfig  /all  >  ipconfig.txt
You will find the file in the root of the current directory.

3.      Note the name of the computer next to yours in the class room on the upper right corner of the monitor. Ping it by name and by ip address.

4.      At the C:\ prompt, type ping and the IP address of the other computer listed in step 3 and press Enter.
Ping is a utility that sends a message out to another computer of device on the network and receives a message back to let you know that your computer is communicating with other devices on the network. If a computer is not able to connect to a particular server or to another network, the ping utility is used as a troubleshooting tool to determine where the network communication is failing.

5.      Ping What is the IP address of the computer you pinged?

6.      Ping What is the IP address of the computer you pinged? what was the average round trip time?
Ping (Yahoo in China). What is the IP address of the computer you pinged? what was the average round trip time? . Compare the roundtrip time.
Type ping  /? and try other variants. Ping -t will ping until stopped. To stop, use Control + C on your keyboard.
Get the name of a computer by using ping. Example:Ping  -a

7.      At the C:\ prompt, type tracert How many jumps (hops) did it take for you to reach that site? __________
What is the IP address of first computer you are routed to? ______________

8.      Trace the route to
What IP address are you going to: ____________
# of jumps: ____________

ARP (address resolution protocol)
At the prompt type:
E:\>arp   -a
This arp command shows the arpcache contents. The interface is the MAC address, the permanent address on the network card..
Physical address (MAC address):_____________
IP address: _______________

9.      At the c:\ prompt, type exit to return to Windows.