Windows under Network command Ping, netstat, ipconfig, ARP, tracert finishing (i)

Source: Internet
Author: User
Tags fully qualified domain name

Network command Ping, netstat, ipconfig, ARP, tracert usage collation

1.Ping

Ping is a command under Windows,Unix , and Linux systems. Ping also belongs to a communication protocol and is part of the TCP/IP protocol. the ping command allows you to check if the network is connected and helps us to analyze and determine network failures.

2.netstat

In the Internet RFC Standard,Netstat is defined as: Netstat is the program that accesses the network and related information in the kernel, it can provide related reports for TCP connections,TCP and UDP snooping, and process memory management.

the function of the netstat command is to display network connections, routing tables, and network interface information to let users know which network connections are in operation. When used without parameters,netstat Displays the active TCP connection.

The general format of the command is:

netstat [-a][-e][-n][-o][-p Protocol][-r][-s][interval]

Options

The meanings of the options in the command are as follows:

-a displays all sockets, including those being monitored.

  - C each interval 1 seconds to display it again until the user interrupts it.

  - I. display information for all network interfaces, format "Netstat-i" .

  - N with Network IP the address replaces the name, which shows the network connection situation.

  - R Displays the core routing table, in the same format as "Route-e" .

  - T Show TCP connection of the Protocol

  - u Show UDP the connection condition of the protocol.

  - v displays the work in progress.

  - P displays the name of the program that established the connection and PID .

  - b Displays the executable program involved in creating each connection or listening port.

  - e Displays Ethernet statistics. This option can be used in conjunction with the- s option.

  - F displays the fully qualified domain name of the external address (FQDN) .

  - o show the owning process associated with each connection ID .

-S displays statistics for each protocol.

  - x Show Networkdirect connections, listeners, and shared endpoints.

  - y displays all the connected TCP The connection template. cannot be used in conjunction with other options.

  interval re-display the selected statistics, the number of seconds between each display pause. Press CTRL + C to stop displaying the statistics again. If omitted, netstat Prints the current configuration information once.

Example

3.Ipconfig

IPConfigutility and its equivalent graphical user interface--windows 95/98in theWINIPCFGcan be used to display the currentTCP/IPthe setting value for the configuration. This information is typically used to test the manually configuredTCP/IPis set correctly. However, if your computer and your local area network are using the Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol,dhcp--windows NTone of the lessIPaddresses are assigned to more hosts using protocols similar to the dynamic of dial-up internetIPThe information displayed by this program may be more practical.

Summary of the general parameters ( You can also enter the DOS mode Ipconfig/? ) make a parameter query )

Ipconfig/all: Displays the details of the native TCP/IP configuration;

Ipconfig/release: TheDHCP Client manually releases the IP address;

Ipconfig/renew:theDHCP Client manually refreshes the request to the server;

Ipconfig/flushdns: Clears local DNS cache content;

Ipconfig/displaydns: Display local DNS content;

Ipconfig/registerdns:theDNS Client manually registers with the server;

Ipconfig/showclassid: Displays DHCP class information for the network adapter ;

Ipconfig/setclassid: Sets the DHCP class for the network adapter .

Ipconfig/renew " Local area Connection": Updated by the DHCP Distribution IP configuration of the address

Ipconfig/showclassid local*: Displays the DHCP class ID of all adapters whose names start with Local

Ipconfig/setclassid " Local area Connection" TEST: Connect the DHCP class ID set to TEST

4.Arp

Address Resolution Protocol, which isARP(Address Resolution Protocol), is based onIPaddress gets the physical address of aTCP/IPagreement. The host will contain the target when sending the messageIPAddress ofARPThe request broadcasts to all hosts on the network and receives the return message, which determines the physical address of the target, and when the return message is received, theIPaddress and physical address are stored in this machineARPcached and reserved for a certain period of time, the next request directly queryARPcache to conserve resources.

Common usage

Arp-a or arp–g

Used to view all items in the cache. -Aand the- GThe result of the parameter is the same, over the years- Ghas been aUNIXthe platform is used to displayARPThe options for all items in the cache, andWindowswith thearp-a( -Acan be considered All, that is, the full meaning), but it can also accept the more traditional- Goptions.

Arp-a Ip

If you have more than one network card, you can display only the arp cache items associated with the interface by using arp-a plus the IP address of the interface .

Arp-s Ip Physical Address

You can manually enter a static item into the ARP cache. The project will remain in a valid state during computer boot, or the physical address will automatically update the project if an error occurs.

Arp-d Ip

Use this command to manually delete a static item.

5.tracert

Tracert(Trace routing) is a route trace utility that is used to determine The path taken by an IP packet access target. the Tracert command uses the IP time -to-Live (TTL) field and the ICMP Error message to determine the route from one host to another host on the network.

Usage : tracert [-d] [-h maximum_hops] [-j host-list] [-W timeout][-r] [-S srcaddr] [-4] [-6] target_name

Options :

-D does not resolve addresses to host names.

-h maximum_hops The maximum number of hops for the search target.

-j host-list Loose source routing along with the host list ( IPv4 only ).

-w timeout waits for the time -out ( in milliseconds )for each reply.

-R tracks the round trip path ( only for IPv6).

-S srcaddr the source address to use ( only for IPv6).

-4 Force the use of IPv4.

-6 Force the use of IPv6.

Target_name the name or IP address of the target host .

Windows under Network command Ping, netstat, ipconfig, ARP, tracert finishing (i)

Related Article

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.