Show Menu
Cheatography

Windows Command Line-Networking Cheat Sheet (DRAFT) by

command line, cmd, networking

This is a draft cheat sheet. It is a work in progress and is not finished yet.

ipconfig

ipconfig /displ­aydns
ipconfig /regis­terdns
ipconfig /flushdns

ping - [cls clears the screen]

ping
[name, ip or address]
-t
192.16­8.1.144
[conti­nuous ping until cease command sent]
-n
10 LT-4151
[for 10 replies]
-
6
192.16­81.1.144
[forces the use of IPv6]
-l
[edit the packet]
-f
[do not fragment packet]
i.e.
usage ping -f -l 1300 8.8.8.8
 
errors if receiver MTU is lower than sender

tracert [all router hops from sen to rec]

tracert
[ip or hostname]
-d
[drops the dns request]
-h
[changes the max hops]
pathping
[tracert with a 25 sec ping on each hop]
-h
[max number of hops]

arp [address resolution protocol

arp -a
[arp table cached on current host]
[static - user or system created]
[dynamic - learned from a neighbor]
arp -d
192.16­8.1.1
 [deletes this address from apr table]
*
by default the broadcast MAC is FF:FF:­FF:­FF:­FF:FF
arp -s 192.16­8.1.1 00-AA-­22-­BB-­33-CC
[adds entry to arp table]

Telnet [test for establ­ished TCP session]

telnet 104.47.48.36 25
[tests connec­tivity to email or relay server via port 25]
telnet google.com 80
tests connec­tivity to a web server via port 80
searched for ats.coop mx record = 104.47.48.36
default port for telnet is 23 but for smtp it is 25
 

netstat [assists with port & session issues]

netstat
[reply provides protocol, local IP:port #, remote host:port # and state of connection
-a
[includes listening ports]
-b
[includes applic­ation listening 'in brackets'
-o
[includes process id for listening applic­ation
 
a listening port may be "­loc­ked­" open, blocking other connection attempts
 
if a host listens on 0.0.0.0, it will respond to all requests
-n
[places list in numerical order]
-s
provides statis­tical inform­ation
 
i.e. IPv4, IPv6, TCP, UDP and ICMP inform­ation

nbtstat

nbtstat
name resolution via netbios
-c
[displays interface and local netbios cache]
-a
[displays the netbios name table of this host]
-s
lists open sessions

nslookup

nslookup
[inter­active mode]
nslookup www.go­ogl­e.com
[returns FQDN]
opens an intera­ctive window allowing other commands i.e.
set q=mx
ats.coop
set q=cname
ats.coop

route

route print
route delete 192.16­8.1.1
route add 192.16­8.1.1
*
route table should always have the default route of 0.0.0.0 to 10.0.0.2

Still Pending

pathping
netdiag
hostname

Other Tools

speedt­est.com
throughput tester
enviro­nmental monitors
cable certifier
network sniffer [protocol analyzer]
cable tester
BER = bit errors­/bits transf­erred
bit error rate tester [BERT] t1
wireless analyzer
looking glass sites Board gateway protoc­ol[BGP]
Microsoft Network Monitor