Professional Documents
Culture Documents
My Commands
My Commands
My Commands
Ping
**********************************************************************************
ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS] [-
r count] [-s count] [-w timeout] [-R] [-S srcaddr] [-p]
[-4] [-6] target [/?]
Ping Google.com
ping -n 5 -l 1500 www.google.com
Ping localhost
ping 127.0.0.1
When needed, you can run the ping command with a series of options in order to adjust the
ICMP echo request’s default value. The following table gives you an overview of the command
line’s most important options.
Option
(Choice) Description
-t With option -t, the addressed target computer is pinged until you end the procedure w
Option
(Choice) Description
Ctrl + C to display the ping statistics. This is called a continuous ping (see tip below).
-a <ip> Use the ping command with option -a and the target computer’s IP address in order t
determine the target’s host name. The computer name will be displayed to you along
the ping statistics in the terminal.
-n With the -n option, you define the desired number of ICMP echo requests. It sends fo
<number> ping requests in the default setting.
-l <size> With option -l, you define the size of the ICMP echo request in bytes. The default valu
32. Ping can be used to send data packets with a maximum size of 65,527 bytes.
-f If the ping command is run with option -f, the program sets the “Do not Fragment” flag
the ICMP echo request packet’s IP header to 1. Such a request cannot be broken up
smaller units by network nodes en route to the target. This option is only available in
networks.
-i <TTL> Use the -i option if you want a user-defined TTL for your ICMP echo request. The
maximum is 255.
-4 The -4 option forces the use of IPv4 and is only employed if the recipient is addresse
the hostname.
-6 Option -6 forces the use of IPv6 and is only employed when the recipient is addresse
the hostname.
*************************************************
Ipconfig
**********************************************************************************
Article
02/04/2023
9 contributors
Feedback
Displays all current TCP/IP network configuration values and refreshes Dynamic Host
Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used
without parameters, ipconfig displays Internet Protocol version 4 (IPv4) and IPv6
addresses, subnet mask, and default gateway for all adapters.
Syntax
Copy
ipconfig [/allcompartments] [/all] [/renew [<adapter>]] [/release [<adapter>]]
[/renew6[<adapter>]] [/release6 [<adapter>]] [/flushdns] [/displaydns]
[/registerdns] [/showclassid <adapter>] [/setclassid <adapter> [<classID>]]
Parameters
Parameter Description
/all Displays the full TCP/IP configuration for all adapters. Adapters can represent
physical interfaces, such as installed network adapters, or logical interfaces, such
as dial-up connections.
/displaydns Displays the contents of the DNS client resolver cache, which includes both entries
preloaded from the local Hosts file and any recently obtained resource records for
name queries resolved by the computer. The DNS Client service uses this
information to resolve frequently queried names quickly, before querying its
configured DNS servers.
/flushdns Flushes and resets the contents of the DNS client resolver cache. During DNS
troubleshooting, you can use this procedure to discard negative cache entries
from the cache, as well as any other entries that have been added dynamically.
/registerdns Initiates manual dynamic registration for the DNS names and IP addresses that are
configured at a computer. You can use this parameter to troubleshoot a failed DNS
name registration or resolve a dynamic update problem between a client and the
DNS server without rebooting the client computer. The DNS settings in the
advanced properties of the TCP/IP protocol determine which names are registered
in DNS.
/release [<adapter>] Sends a DHCPRELEASE message to the DHCP server to release the current DHCP
configuration and discard the IP address configuration for either all adapters (if an
adapter is not specified) or for a specific adapter if the adapter parameter is
included. This parameter disables TCP/IP for adapters configured to obtain an IP
address automatically. To specify an adapter name, type the adapter name that
appears when you use ipconfig without parameters.
/release6[<adapter>] Sends a DHCPRELEASE message to the DHCPv6 server to release the current DHCP
configuration and discard the IPv6 address configuration for either all adapters (if
an adapter is not specified) or for a specific adapter if the adapter parameter is
included. This parameter disables TCP/IP for adapters configured to obtain an IP
address automatically. To specify an adapter name, type the adapter name that
appears when you use ipconfig without parameters.
/renew [<adapter>] Renews DHCP configuration for all adapters (if an adapter is not specified) or for a
specific adapter if the adapter parameter is included. This parameter is available
only on computers with adapters that are configured to obtain an IP address
Parameter Description
automatically. To specify an adapter name, type the adapter name that appears
when you use ipconfig without parameters.
/renew6 [<adapter>] Renews DHCPv6 configuration for all adapters (if an adapter is not specified) or for
a specific adapter if the adapter parameter is included. This parameter is available
only on computers with adapters that are configured to obtain an IPv6 address
automatically. To specify an adapter name, type the adapter name that appears
when you use ipconfig without parameters.
/setclassid <adapter>[<classID>] Configures the DHCP class ID for a specified adapter. To set the DHCP class ID for
all adapters, use the asterisk (*) wildcard character in place of adapter. This
parameter is available only on computers with adapters that are configured to
obtain an IP address automatically. If a DHCP class ID is not specified, the current
class ID is removed.
/showclassid <adapter> Displays the DHCP class ID for a specified adapter. To see the DHCP class ID for all
adapters, use the asterisk (*) wildcard character in place of adapter. This
parameter is available only on computers with adapters that are configured to
obtain an IP address automatically.
Remarks
If the name you supply for adapter contains any spaces, use quotation
marks around the adapter name (for example, "adapter name").
For adapter names, ipconfig supports the use of the asterisk (*) wildcard
character to specify either adapters with names that begin with a
specified string or adapters with names that contain a specified string.
For example, Local* matches all adapters that start with the string Local
and *Con* matches all adapters that contain the string Con.
Examples
Copy
ipconfig
To display the full TCP/IP configuration for all adapters, type:
Copy
ipconfig /all
Copy
ipconfig /renew Local Area Connection
To flush the DNS resolver cache when troubleshooting DNS name resolution
problems, type:
Copy
ipconfig /flushdns
To display the DHCP class ID for all adapters with names that start with Local, type:
Copy
ipconfig /showclassid Local*
To set the DHCP class ID for the Local Area Connection adapter to TEST, type:
Copy
ipconfig /setclassid Local Area Connection TEST
ARP Commands
The ARP commands to view, display, or modify the details/information in an ARP
table/cache.
The ARP cache or table has the dynamic list of IP and MAC addresses of those
devices to which your computer has communicated recently in a local network. The
purpose of maintaining an ARP table is that when you want to communicate with
another device, your device does not need to send the ARP request for the MAC
address of that device.
The ARP commands also helps to find out the duplicate IP address and invalid entries
in an ARP table/cache.
Some ARP commands are given below:
PauseNext
Unmute
Duration 18:10
Loaded: 44.76%
Â
Fullscreen
o arp -a: This command is used to display the ARP table for a particular IP address. It
also shows all the entries of the ARP cache or table.
o arp -g: This command works the same as the arp -a command.
o arp -d: This command is used when you want to delete an entry from the ARP table
for a particular interface. To delete an entry, write arp -d command along with the IP
address in a command prompt you want to delete.
o /?: This command is used to show the help at the command prompt.
o arp purge-delay: The arp purge-delay command delays the purging in the ARP
entries in an ARP table/cache when the interface goes down or slows down. When
the interface comes up within the delay time, the ARP entries are restored, and packet
loss with ECMP (Equal Cost Multipath) is restricted.
o no arp purge-delay: This command is used to turn off the purge delay.
o arp timeout: This command is used to determine how long the dynamic entries
learned on the interface resides in the ARP cache. This command is also used in the
interface configuration mode. When the timeout of an interface changes, this change
only applies to that particular interface.
o show interface: This command is used to show the ARP timeout value. The format of
the timeout value is hours: minutes: seconds.
o clear arp cache: This command deletes/removes all the dynamic entries from the
ARP table.
o proxy-arp: This command is used to enable the proxy ARP on an interface. The
network devices are able to respond to ARP requests only when the proxy ARP is
enabled.
o no proxy-arp: This command is used to disable the proxy-arp on the interface.
o show arp: This command is used to indicate the Address Resolution Protocol. ARP
creates a correspondence between network addresses and hardware addresses of
Ethernet. The record of each correspondence is stored in an ARP table for a fixed
amount of time.
o show arp traffic: This command is used to display the static traffic on the Address
Resolution Protocol (ARP).
Read
Discuss
Nslookup (stands for “Name Server Lookup”) is a useful command for getting
information from the DNS server. It is a network administration tool for querying the
Domain Name System (DNS) to obtain domain name or IP address mapping or any
other specific DNS record. It is also used to troubleshoot DNS-related problems.
Syntax:
nslookup [option]
Options of nslookup command:
nslookup google.com :
nslookup followed by the domain name will display the “A Record” (IP
Address) of the domain. Use this command to find the address record for a
domain. It queries to domain name servers and gets the details.