Saturday, 27 December 2014

Network Troubleshooting

Network Troubleshooting windows env

open command prompt

#ipconfig

The ipconfig command displays all current TCP/IP network configuration values

It gives you basic information to get your IP address,your routers IP address,
DNS Server IP Address,DHCP Server IP address etc..

Default gateway is router

cls --to clear screen'

#ipconfig/all

#Ping

Allows you to send a signal to another device on the network to see if it is active

Uses the ICMP (Internet Control Message Protocol) to send out an echo request
to the destination device,and gets back an echo response , if the device you are
trying reach of in fact Active.


#ping <routeripaddress> <DNSIPaddress> <www.siteaddress.com>

#Tracert

tracert gives the step-by-step route a packet takes to the destination
you speicfy

So if you send a packet to google.com , before the packet
actually reaches google.com servers,it will go through many diffrent
routers before it finally reaches google.com

You can also use the term HOPS instead of routers.So,if it takes 10
routers to get to google.com, you can instead say: "it took 10 hops
"

#tracert <webaddress.com>

#NSLOOKUP
This command will fetch the DNS records for a given domain name or
IP Address.Remeber , the IP Addresses and domain names are
stored in DNS servers,so the NSLOOKUP command lets you query the DNS Records to gather information

#nslookup <webaddress.com>

---------------------------------
cmd prmpt basic commands
c:\>dir
c:\>cd users
c:\users>cd krishna
c:\users\krishna>dir
c:\users\krishna\pics>dir
c:\users\krishna\pics>pic.jpg
c:\users\krishna\pics>cd..
c:\users\krishna>cd\
c:\>cls
c:\>cd program files
c:\program files>dir
c:\program files>cd internet explorer
c:\programfiles\Internet Explorer>dir
c:\programfiles\internet explorer>iexplore.exe
c:\programfiles\internet explorer>cd\
c:\>color y
c:\>color 1e
c:\>color 0f
c:\>systeminfo
---------------------------------------------------
c:\>whomami
c:\>systeminfo
os name , os version,install date,system boot time
c:\>ipconfig\flushdns
to flush dns
c:\>ping krishna.com -n 10
pings 10 times
c:\>tasklist
c:\Users\krishna\Desktop>mkdir example
c:\users\krishna\Desktop\example>cd ..
c:\users\krishna\desktop>copy text.txt c:\users\krishna\desktop\example
 c:\users\krishna\Desktop\example>del test.txt
c:\users\krishna\Desktop\example>dir
c:\users\krishna\Desktop\example>rename test.txt test1.txt
c:\users\krishna\Desktop\example>notepad test.txt
c:\users\krishna\Desktop\example>tasklist
c:\users\krishna\Desktop\example>taskkill /im notepad.exe

No comments:

Post a Comment