1. The most basic and commonly used physical network testing
Ping 192.168.0.8-t. The-t parameter is used to wait for the user to interrupt the test.
2. View DNS, IP, Mac, etc.
A. Win98: winipcfg
B. Win2000 or above: Ipconfig/all
C. NSLOOKUP: for example, view the DNS in Hebei
C:> nslookup
Default Server: ns.hesjptt.net.cn
Address: 202.99.160.68
> Server 202.99.41.2: Change DNS to 41.2
> Pop.pcpop.com
Server: ns.hesjptt.net.cn
Address: 202.99.160.68
Non-authoritative answer:
Name: pop.pcpop.com
Address: 202.99.160.212
3. Network messenger
Net send computer name/IP * (broadcast) transfer content, note that cross-network segment is not allowed
Net stop messenger stops the messenger service, or you can modify the service on the panel.
Net start messenger starts the messenger Service
4. Detect the peer computer name, group, domain, and current user name (Working Principle of tracing)
Ping-a IP-t to display only NetBios names
Nbtstat-a 192.168.10.146
5. netstat-a shows all the ports currently open to your computer
Netstat-s-e displays your network information in detail, including statistics on TCP, UDP, ICMP, and IP addresses.
6. Check the arp binding (Dynamic and Static) list. All the computers connected to me are displayed.
Arp-
7. On the proxy server side
Bind IP addresses and MAC addresses to prevent IP address theft in the LAN! :
ARP-s 192.168.10.59 00-50-ff-6c-08-75
Unbind the IP address of the NIC from the MAC address:
Arp-d nic ip Address
8. Hide your computer on the network neighbor
Net config server/hidden: yes
Net config server/hidden: no is enabled
9. Several net commands
A. The net view of the current workgroup server list is displayed. When you use this command without the option, it displays the list of computers in the current domain or network.
For example, you can view the shared resources on this IP address.
C:> net view 192.168.10.8
Share resources on 192.168.10.8
Resource Sharing name type usage comment
--------------------------------------
Website Service Disk
The command is successfully completed.
B. view the user account list on the computer. net user
C. view the network connection. net use
For example, net use z: 192.168.10.8movie maps the movie shared directory of this IP address to a local Z disk.
D. Record the link to the net session
Example: C:> net session
Computer User Name customer type open idle time
-------------------------------------------------------------------------------
192.168.10.110 ROME Windows 2000 2195 0 00:03:12
192.168.10.51 ROME Windows 2000 2195 0 00:00:39
The command is successfully completed.
10. Route Tracking command
A. tracert pop.pcpop.com
B. In addition to displaying routes, pathping pop.pcpop.com also provides S analysis to calculate the % of the dropped packets.
11. Several commands on shared security
A. view the shared resources of your machine. net share
B. manually delete the share (you can compile a bat file, start the instance and run it, and delete all the shares !)
Net share c $/d
Net share d $/d
Net share ipc $/d
Net share admin $/d
Note that there is a space after $.
C. Add a share:
C: et share mymovie = e: downloadsmovie/users: 1
Mymovie is shared successfully.
At the same time, the number of connected users is limited to 1.
[NextPage]
12. Set static IP addresses in DOS lines
A. Set static IP addresses
CMD
Netsh
Netsh> int
Interface> ip
Interface ip> set add "Local Link" static ip Address mask gateway
B. View IP settings
Interface ip> show address
Arp
Displays and modifies the items in the "Address Resolution Protocol (ARP)" cache. The ARP cache contains one or more tables, which are used to store IP addresses and Their resolved physical IP addresses over Ethernet or card rings. Each Ethernet or ring network adapter installed on the computer has its own independent table. If no parameters are available, the arp command displays help information.
Syntax
Arp [-a [InetAddr] [-N IfaceAddr] [-g [InetAddr] [-N IfaceAddr] [-d InetAddr [IfaceAddr] [-s InetAddr EtherAddr [IfaceAddr]
Parameters
-A [InetAddr] [-N IfaceAddr]
Displays the current ARP cache table for all interfaces. To display the ARP cache entry of the specified IP address, use arp-a with the InetAddr parameter. InetAddr here represents the specified IP address. To display the ARP cache table for the specified interface, use the-N IfaceAddr parameter. IfaceAddr here represents the IP address assigned to the specified interface. The-N parameter is case sensitive.
-G [InetAddr] [-N IfaceAddr]
Same as-.
-D InetAddr [IfaceAddr]
Delete the specified IP address. InetAddr here represents the IP address. To delete an item in a table for the specified interface, use the IfaceAddr parameter. IfaceAddr here represents the IP address assigned to the interface. To delete all items, use the asterisk (*) wildcard to replace InetAddr.
-S InetAddr EtherAddr [IfaceAddr]
Add a static entry that parses the IP address InetAddr into the physical address EtherAddr to the ARP cache. To add a static ARP cache entry to the table of the specified interface, use the IfaceAddr parameter. IfaceAddr here represents the IP address assigned to the interface.
Display help at the command prompt.
Note
The IP addresses of InetAddr and IfaceAddr are represented in decimal notation with dots.
The physical address EtherAddr consists of six bytes expressed in hexadecimal notation and separated by a hyphen (for example, 00-AA-00-4F-2 A-9C ).
The items added through the-s parameter are static items that do not time out in the ARP cache. If the TCP/IP protocol is terminated and then started, these items will be deleted. To create a permanent static ARP cache entry, use the appropriate arp command in the batch processing file and run the batch processing file at startup through the scheduler program.
This command is available only when the Internet Protocol (TCP/IP) is installed as a component of the network adapter attribute in a network connection.
Example
To display the ARP cache tables for all interfaces, type:
Arp-
For an interface with the assigned IP address 10.0.0.99, to display its ARP cache table, type:
Arp-a-N 10.0.0.99
To add a static ARP cache entry that resolves an IP address 10.0.0.80 to a physical address 00-AA-00-4F-2 A-9C, type:
Arp-s 10.0.0.80 000-aa-00-4f-2 A-9C
At
It is planned to run commands and programs on the computer at the specified time and date. The at command can only be used when the "scheduler" service is running. If you use it without parameters, at lists the scheduled commands.
Syntax
At [ComputerName] [{[ID] [/delete]/delete [/yes]}]
At [[ComputerName] hours: minutes [/interactive] [{/e