Ping
Usage: Ping [-T] [-A] [-N count] [-l size] [-F] [-I TTL] [-V TOS]
[-R count] [-s count] [[-J host-list] | [-K host-list]
[-W timeout] [-R] [-s srcaddr] [-4] [-6] target_name
Option:
-T ping the specified host until it is stopped.
To view statistics and continue operations, type control-break;
To stop-type control-C.
-A resolves the address to the host name.
-N count: the number of echo requests to be sent.
-L size: size of the sending buffer.
-F set the "Do Not segment" flag in the data packet (only applicable to IPv4 ).
-I TTL survival time.
-V tos service type (only applicable to IPv4. This setting is not in use and
Does not affect the service field type in the IP header ).
-R count records the route for counting hops (only applicable to IPv4 ).
-S Count counts the timestamp of the hops (only applicable to IPv4 ).
-J host-list: A loose source route with the host list (only applicable to IPv4 ).
-K host-list: a strict source route that is used together with the host list (only applicable to IPv4 ).
-W Timeout: the timeout time (in milliseconds) for each response ).
-R also uses the Routing header to test the reverse route (only applicable to IPv6 ).
-S srcaddr source address.
-4. Use IPv4.
-6 Use IPv6 forcibly.
========================================================== ============================================
Ipconfig
Usage:
Ipconfig [/allcompartments] [/? |/All |
/Renew [adapter] |/release [adapter] |
/Renew6 [adapter] |/release6 [adapter] |
/Flushdns |/displaydns |/registerdns |
/Showclassid adapter |
/Setclassid adapter [classid] |
/Showclassid6 adapter |
/Setclassid6 adapter [classid]
Where
Adapter connection name
(Wildcards * And? are allowed ?, See examples)
Option:
/? Show this help message
/All displays the complete configuration information.
/Release releases the IPv4 address of the specified adapter.
/Release6 release the IPv6 address of the specified adapter.
/Renew updates the IPv4 address of the specified adapter.
/Renew6: update the IPv6 address of the specified adapter.
/Flushdns clear DNS resolution program cache.
/Registerdns refresh all DHCP leases and re-register DNS names
/Displaydns displays the content cached by the DNS resolution program.
/Showclassid: displays all allowed DHCP class IDs of the adapter.
/Setclassid modify DHCP class ID.
/Showclassid6: displays all IPv6 DHCP class IDs allowed by the adapter.
/Setclassid6 modify the IPv6 DHCP class ID.
By default, only the IP address, subnet mask, and
Default Gateway.
For release and renew, if no adapter name is specified, all bindings will be released or updated.
The IP address lease of the adapter to TCP/IP.
For setclassid and setclassid6, if classid is not specified, the classid is deleted.
Example:
> Ipconfig... display information
> Ipconfig/all... displays details
> Ipconfig/renew... update all adapters
> Ipconfig/Renew El *... update all names starting with El
Connection
> Ipconfig/release * con *... releases all matching connections,
For example, "Local Area Connection 1" or
"Local Area Connection 2"
> Ipconfig/allcompartments...
Information
> Ipconfig/allcompartments/all...
Details
========================================================== ============================================
ARP
Displays and modifies the "IP to physical" address translation table used by the Address Resolution Protocol (ARP.
ARP-s inet_addr eth_addr [if_addr]
ARP-D inet_addr [if_addr]
ARP-A [inet_addr] [-N if_addr] [-v]
-A displays the current ARP entry by querying the current protocol data.
If inet_addr is specified, only the specified computer is displayed.
. If more than one network
When ARP is used, items in each ARP table are displayed.
-G is the same as-.
-V displays the current ARP entry in detail mode. All invalid items
And items on the loop interface are displayed.
Inet_addr specifies the Internet address.
-N if_addr: displays the ARP entry of the network interface specified by if_addr.
-D: Delete the host specified by inet_addr. Inet_addr
To delete all hosts.
-S: add the host and set the Internet address to inet_addr.
It is associated with the physical address eth_addr. The physical address is
Six hexadecimal bytes separated by a hyphen. This item is permanent.
Eth_addr specifies the physical address.
If if_addr exists, this option specifies the interface to be modified for the address translation table.
. If it does not exist, use the first
.
Example:
> ARP-s 157.55.85.212 00-aa-00-62-c6-09... add static items.
> ARP-a... displays the ARP table.
========================================================== ============================================
Route
Operate the network route table.
Route [-F] [-p] [-4 |-6] command [destination]
[Mask netmask] [gateway] [metric] [If interface]
-F clears the route tables of all gateway entries. If
Before running the command,
Route tables should be cleared.
-P is used in combination with the Add command to set the route
Remain unchanged during system boot. By default, When you restart the system,
Do not save the route. Ignore all other commands,
This will always affect the corresponding permanent route. Windows 95
This option is not supported.
-4. Use IPv4.
-6 Use IPv6 forcibly.
Command:
Print route
Add route entry
Delete Delete route entries
Change modify existing route
Destination specifies the host.
Mask specifies the next parameter as the "network mask" value.
Netmask specifies the subnet mask value of this route entry.
If not specified, the default value is 255.255.255.255.
Gateway.
The interface number of the route.
Metric specifies the number of hops, such as the cost of the target.
All the symbols used for the target can be found in the network database.
File networks. The symbol names used for the gateway can all be in the Host Name
Find the database file hosts.
If the command is print or delete. The target or gateway can be a wildcard,
(Specify the asterisk (*) as the wildcard. Otherwise, the gateway parameter may be ignored.
If DEST contains a * Or ?, It will be treated as the shell mode, and only
Print the matched route. "*" Matches any string,
And "?" Match any character. Example: 157. *. 1, 157. *, 127. *, * 224 *.
Mode matching is only allowed in the print command.
Diagnostic information note:
An error is generated for an invalid mask, that is, when (DEST & Mask )! = DeST.
Example:> route add 157.0.0.0 mask 155.0.0.0 157.55.80.1 if 1
Failed to add route: the specified mask parameter is invalid.
(Destination & Mask )! = Destination.
Example:
> Route print
> Route print-4
> Route print-6
> Route print 157 *... only the items matching 157 * are printed.
> Route add 157.0.0.0 mask route 0.0.0 157.55.80.1 metric 3 if 2
Destination ^ mask ^ gateway metric ^
Interface ^
If if is not given, it will try to find the optimal Gateway
Interface.
> Route add 3ffe:/32 3ffe: 1
> Route change 157.0.0.0 mask route 0.0.0 157.55.80.5 metric 2 if 2
Change is only used to modify the gateway and/or the number of hops.
> Route Delete 157.0.0.0
> Route Delete 3ffe:/32
========================================================== ============================================
Telnet
Telnet [-A] [-e escape char] [-F log file] [-l user] [-t Term] [host [port]
-A attempts to log on automatically. Except the username currently logged in, it is the same as the-L option.
-E Indicates skipping characters to enter the Telnet client.
-F client login file name
-L name of the user to be hired on the remote system.
The remote system must support the Telnet ENVIRON option.
-T specifies the terminal type.
The supported terminal types are VT100, vt52, ANSI, and vtnt.
Host specifies the host name or IP address of the remote computer to be connected.
Port specifies the port number or service name.
Enter help to show usage. Enter C to close the current link, d to display operation parameters, O to display the host name, Q to exit, and set to design options, sen sends the string to the server, St prints the status information, and U is the contact setting option.
========================================================== ============================================
Netstat
Displays protocol statistics and current TCP/IP network connections.
Netstat [-A] [-B] [-E] [-F] [-N] [-O] [-P proto] [-R] [-S] [- t] [interval]
-A displays all connection and listening ports.
-B shows the executable programs involved in creating each connection or listening port.
In some cases, it is known that executable programs host multiple independent
Component. In these cases, it is displayed when a connection or listening port is created.
And component sequence. In this case, the name of the executable program
Located in the bottom [], the component it calls is located at the top until it reaches
To TCP/IP. Note that this option may be time-consuming and
If the permission is sufficient, it may fail.
-E displays Ethernet statistics. This option can be used with the-s option.
-F displays the Fully Qualified Domain Name (FQDN) of the external address ).
-N: the address and port number are displayed in numbers.
-O displays the IDs of processes associated with each connection.
-P proto shows the connection of the Protocol specified by Proto. proto can be any of the following
Which one is TCP, UDP, tcpv6, or udpv6. If you select
Items are used together to display statistics for each protocol. proto can be any of the following
He: IP, IPv6, ICMP, ICMPv6, TCP, tcpv6, UDP
Or udpv6.
-R shows the route table.
-S displays statistics for each protocol. By default
IP, IPv6, ICMP, ICMPv6, TCP, tcpv6, UDP, and udpv6
-P option can be used to specify the default subnet.
-T: The current connection uninstallation status is displayed.
Interval re-displays the selected statistics. The interval (in seconds) between display pauses.
Press Ctrl + C to stop resending statistics. If omitted, netstat
The current configuration information is printed once.
========================================================== ============================================
FTP
Transfers a file to a computer running the FTP Server Service (often called a background program) and transfers the file from this computer
Outgoing. FTP can be used for interaction.
FTP [-V] [-D] [-I] [-N] [-G] [-S: Filename] [-A] [-A] [-X: sendbuffer] [-R: recvbuffer] [-B: asyncbuffers] [-W: windowsize] [host]
-V Disable Remote Server Response display.
-N: automatic logon is prohibited during initial connection.
-I
Interactive prompt.
-D enables debugging.
-G disable wildcard file name (see the glob command ).
-S: Filename specifies the text file containing the FTP command; command
It runs automatically after FTP is started.
-A uses all local interfaces when binding data connections.
-A Anonymous logon.
-X: Send sockbuf overwrites the default so_sndbuf size of 8192.
-R: Recv sockbuf overwrites the default so_rcvbuf size of 8192.
-B: async count overwrites the default asynchronous count 3
-W: windowsize overwrites the default buffer size of 65535.
Host specifies the host name or the remote host to be connected
.
Note:
-The mget and mput commands treat y/n/Q As yes/no/quit.
-Run Ctrl-C to stop the command.
========================================================== ============================================
Netsh
========================================================== ============================================
Common network commands (1)