This post is not a full command usage, just a record when used. DOS command Network Commands ipconfig
Ipconfig/all Display full information
ipconfig/renew Update specifies adapter IPv4 address
ipconfig/release release IP
ipconfig/renew6 update ipv6
Ipconfig/flushdns Clear DNS Cache
ipconfig/displaydns display DNS Resolver cache content
netstat
NET accounts displays the current configuration of password, login restrictions, and domain information to
view a port occupancy:
Netstat-ano | find ": 8080"
Ping
-T: Always ping
-a: address resolves to NetBIOS-
N: Sends a specified number of ECHO packets, default 4-
L: Echo packet sending the specified amount of data, default 32B, maximum 65500B-
f: Send the "Do not Fragment" flag in a packet-I: Set the time-to-
live field to the value specified by Tto-
V: Set the Service Type field to the value specified by the TOS-
R: Records the route of outgoing and returned packets in the Record Routing field-
s: Specifies the count of the specified number of hops-j:tjetcomputer-list for the specified
computer list route packet. Continuous computers can be separated by an intermediate gateway-
K: Route packets with the list of computers specified by Computer-list. Consecutive computers cannot be separated by an intermediary gateway
-w:timeout Specifies the time-out interval in milliseconds
desination-list: Specifies that the remote computer to ping
can roughly determine the target host operating system type by TTL value:
Windows General TTL is between 100~130;
Unix/linux between General 240~255 or 50~60.
Netcat
Download required under Windows.
Nc-zv localhost 80: Specifies whether the port is open
telnet
tracert
Netsh
ARP
Batch processing
Echo Current drive letter:%~d0
Echo Current drive letter and path:%~dp0
Echo Current drive letter and path short name format:%~sdp0
echo Current Batch full path:%~f0
echo Current cmd default directory:%cd%