Common network command (4)

xiaoxiao2021-03-06  64

Net commands There are many functions for practical and verify the NetBIOS connection between your computer. Here I only introduce two most common: Net View and Net Use. Net View UNC - Use this command, you can view the shared point name on the target server. People in any local area can issue this command and do not need to provide user ID or password. The UNC name is always in / start, followed by the name of the target computer. For example, Net View // LX is a shared point for the computer that views the host name LX. NET USE This site target computer sharing point - This command is used to establish or uncheck the image driver of a particular shared point (if needed, you must provide the user ID or password). For example, you enter NET USE F: / LXMP3 is to connect the image drive F: Connect to / lxmp3 shared point, you can access F: You can access the / lxmp3 shared point, this is to right click "My Computer" to select mapping A network drive is similar. Command format: NET Use [DeviceName *] [// computername / sharename [/ volume] [password *] [/ user: [domainname /] username] [/ delete] [/ persistent: {yes no}] parameter introduction: Type NET USE without parameters lists network connections. DeviceName Specifies the name of the resource to be connected or the device name to be disconnected. // Computername / ShareName server and shared resources name. Password Access the password for shared resources. * Tip Type password. / User specifies another user that is connected. DomainName Specifies another domain. UserName Specifies the username of the login. / HOME connects the user to its host directory. / DELETE Cancels the specified network connection. / Persistent controls the use of permanent network connection. Simple case: (1) NET USE E: // Host / Temp Sets the // Host / Temp directory to E disk (2) NET USE E: // Host / Temp / Delete Disconnect (3) NET USE H: // Host / Temp "Password" / user: "Administrator" NBTSTAT NetBIOS is a network input / output system NBTSTAT (NetBIOS statistics on TCP / IP) utility is used to provide statistics about NetBIOS. With NetBIOS, you can view NetBIOS name forms on your local computer or remote computer. Common options: nbtstat -n - Displays the local name and service program nbtstat -c-- this command is used to display the contents of the NetBIOS name cache. The NetBIOS name cache is used to inch the NetBIOS name and IP address pair of other computers that have recently communicated with this computer. NBTSTAT -R - This command is used to clear and reload the NetBIOS name cache. NBTSTAT -A IP - Displays the physical address and name list of another computer via IP, what you display is like the other computer running NBTSTAT-N nbtstat -s ip - command lists the current NetBIOS session and its State (including statistics). Tracert TRACERT (Tracking Rout) is a routing trace utility to determine the path taken by the IP datagram access. The tracert command uses the IP Living Time (TTL) field and ICMP error messages to determine the route from one host to other hosts on the network. TRACERT Working Principle   By sending a Different IP Survival Time (TTL) value to the target, the Tracert diagnostics determines the route taken to the target. Each router on the request path will deliver at least the TTL on the packet before forwarding the packet.

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

New Post(0)