0% found this document useful (0 votes)
13 views2 pages

Windows Command Line Networking Guide

Windows Network command line code

Uploaded by

Harry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Windows Command Line Networking Guide

Windows Network command line code

Uploaded by

Harry
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Windows Command Line-Networking Cheat Sheet

by Mary F. Smith (boogie) via [Link]/86236/cs/20743/

ipconfig Telnet [test for establ​ished TCP session]

ipconfig /displ​aydns telnet [Link] 25


[tests connec​tivity to email or relay server via port 25]
ipconfig /regis​terdns
ipconfig /flushdns telnet [Link] 80
tests connec​tivity to a web server via port 80
ping - [cls clears the screen]
searched for [Link] mx record = [Link]
ping [name, ip or address] default port for telnet is 23 but for smtp it is 25

-t 192.16​8.1.144[conti​nuous ping until cease command


sent] netstat [assists with port & session issues]
-n 10 LT-4151[for 10 replies] netstat [reply provides protocol, local IP:port #, remote ho
-6 192.16​81.1.144[forces the use of IPv6] -a [includes listening ports]
-l [edit the packet] -b [includes applic​ation listening 'in brackets'
-f [do not fragment packet] i.e. usage ping -f -l 130 -o [includes process id for listening applic​ation
0 [Link]
a listening port may be "​loc​ked​" open, blocking o
errors if receiver MTU is lower than sender
if a host listens on [Link], it will respond to all

-n [places list in numerical order]


tracert [all router hops from sen to rec]
-s provides statis​tical inform​ation
tracert [ip or hostname]
i.e. IPv4, IPv6, TCP, UDP and ICMP inform​ation
-d [drops the dns request]

-h [changes the max hops]


nbtstat
pathping [tracert with a 25 sec ping on each hop]
nbtstat name resolution via netbios
-h [max number of hops]
-c [displays interface and local netbios cache]

-a [displays the netbios name table of this host]


arp [address resolution protocol
-s lists open sessions
arp -a [arp table cached on current host]

[static - user or system created]


nslookup
[dynamic - learned from a neighbor]
nslookup [inter​active mode]
arp -d 192.16​8.1.1 [deletes this address from apr ta
nslookup [Link]​ogl​[Link] [returns FQDN]
ble]
opens an intera​ctive window allowing other commands i.e
* by default the broadcast MAC is FF:FF:​FF:​FF:​FF
:FF
set q=mx [Link]
arp -s 192.16​8.1.1 00-AA-​22-​BB-​33-CC [adds entry to arp ta
set q=cname [Link]
ble]

By Mary F. Smith (boogie) Not published yet. Sponsored by [Link]


[Link]/boogie/ Last updated 8th March, 2023. Measure your website readability!
Page 1 of 2. [Link]
Windows Command Line-Networking Cheat Sheet
by Mary F. Smith (boogie) via [Link]/86236/cs/20743/

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 [Link] to 10.0.0.
2

Still Pending

pathping
netdiag
hostname

Other Tools

speedt​[Link] 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

By Mary F. Smith (boogie) Not published yet. Sponsored by [Link]


[Link]/boogie/ Last updated 8th March, 2023. Measure your website readability!
Page 2 of 2. [Link]

You might also like