Windows Network Command Line Flashcards
ipconfig
- Most of your troubleshooting starts with your IP address
– Ping your local router/gateway - Determine TCP/IP and network adapter information
– And some additional IP details - View additional configuration details
– DNS servers, DHCP server, etc.
ping
ping
* Test reachability
– Determine round-trip time
– Uses Internet Control Message Protocol (ICMP)
netstat
Network statistics
– Many different operating systems
*netstat -a
Show all active connections
*netstat -b
– Show binaries (Windows)
netstat -n
Do not resolve names
nslookup
Lookup information from DNS servers
– Canonical names, IP addresses, cache timers, etc
net
Windows network commands
* View network resources
– net view \<servername>
– net view /workgroup:<workgroupname>
* Map a network share to a drive letter
– net use h: \\<servername>\<sharename>
* View user account information and reset passwords
– net user <username>
– net user <username> * /domain</username></username></sharename></servername></workgroupname></servername>
tracert
- Determine the route a packet takes to a destination
– Map the entire path - Takes advantage of ICMP Time to Live Exceeded
message
– The time in TTL refers to hops, not
seconds or minutes
– TTL=1 is the first router, TTL=2 is
the second router, etc.
pathping
Combine ping and traceroute