Common commands in network management.

zhaozj2021-02-16  102

1. The most basic, most common, test physical network

Ping 192.168.0.8 -t, parameter -t is waiting for the user to interrupt the test

2. View DNS, IP, Mac, etc.

A.WIN98: WiniPCFG

B.Win2000 or above: IPConfig / All

C.NSLOOKUP: See if 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 letter (often someone asking ~)

NET send computer name / ip * (broadcast) transfer content, pay attention to stop the letter to stop the letter from the network segment Net Stop Messenger, or you can start the messenger service

4. Detect each other computer name, the group, domain, and the current username (the pursuit of working principle)

Ping -a ip -t, only display NetBIOS name nbtstat -a 192.168.10.146 is relatively full

5.NetStat -a Shows all ports of your computer now open

NetStat -s -e is more detailed to display your network information, including TCP, UDP, ICMP, and IP statistics, etc.

6. Detect the ARP binding (dynamic and static) list, display all connected to my computer, display the other party IP and MAC address

ARP -A

7. Bundle IP and MAC address on the proxy server, solve the Pirate IP of the local area network! :

ARP -S 192.168.10.59 00 -50-FF-6C-08-75

Remove the iP and MAC address of the NIC: ARP -D NIC IP

8. Hide your computer in the network neighbors (let people see you!)

NET Config Server / Hidden: Yes Net Config Server / Hidden: No is open

9. Several net commands

A. Display the current Workgroup Server List Net View, when you use this command without an option, it displays a list of computers on the current domain or network.

For example: view shared resources on this IP, you can

C: /> Net View 192.168.10.8

Shared resources in 192.168.10.8

Resource Shared Name Type Turmphones Note Website Service Disk

The command successfully completed.

B. Check the user account list NET User on your computer

C. View Network Link Net Use

For example: Net Use z: //192.168.80.8/Movie maps this IP Movie shared directory to a local Z disk

D. Record Link Net Session

E.g:

C: /> net session

Computer username customer type opens free 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 successfully completed.

10. Routing Tracking Command

A.tracert pop.pcpop.com

B.Pathping pop.pcpop.com In addition to the display route, 325S analysis is provided, and the% of the lost package is calculated.

11. Several orders about sharing security

A. View your machine's shared resource NET Share

B. Manually delete sharing (you can make a BAT file, turn it on, delete the sharing!)

NET Share C $ / d

NET Share D $ / d

NET Share IPC $ / D

NET Share Admin $ / D

Note that there is a space behind it.

C. Add a sharing:

C: / Net Share mymovie = E: / Downloads / Movie / Users: 1

MyMovie shared success.

At the same time, the number of limited link users is 1 person.

12. Set static IP in DOS

A. Set static IP

Cmd

Netsh

Netsh> int

Interface> IP

Interface IP> Set Add Add "Static IP Address Mask Gateway

B. View IP settings

Interface IP> show address

ARP

Displays and modify the items in the Address Resolution Protocol (ARP) "cache. One or more tables are included in the ARP cache that stores the IP address and its resolved Ethernet or token ring physical address. Each Ethernet or token ring network adapter installed on a computer has its own separate table. If you use without parameters, the ARP command will display the help information.

grammar

Arp [-a [inetaddr] [-n ifceaddr]] [-g [inetaddr] [-n ifceaddr]] [-d inetaddr [ifaceddddddddddddr]] [-s inetaddr etheraddr [iFaceaddr]]

parameter

-A [inetaddr] [-ifceaddr]

Displays the current ARP cache table for all interfaces. To display the ARP cache item for the specified IP address, use the ARP -A with the inetaddr parameter, which is the INetAddr represents the specified IP address. To display the ARP cache table for the specified interface, use the -n ifceaddr parameter, which the IFACEADDR represents the IP address assigned to the specified interface. -N parameter is case sensitive.

转载请注明原文地址:https://www.9cbs.com/read-10832.html

New Post(0)