Classic Network command line (from: http://www.konun.com /? Q = taxono'my/Term/5 & from = 110)

Source: Internet
Author: User
Tags net send nslookup

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 (frequently asked ~)
Net send computer name/IP | * (broadcast) transmits content, note that it cannot cross-network segment
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 (to make people invisible to you !)
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.8 \ movie maps the movie shared directory of this IP address to a local Z disk.

D. Record the link to the net session
For 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: \ net share mymovie = E: \ downloads \ movie/users: 1
Mymovie is shared successfully.
At the same time, the number of connected users is limited to 1.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.