Networking Command
Networking Command
(3350704)
Networking Command
1. Ping :- The Ping command allows you to test the reachability of a device on
a network. Pinging a host should return four data packets, if the data
packets are not returned you know there is a problem with your network
connection.
Syntax : ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
Options:
1|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Header).
Per RFC 5095 the use of this routing header has been
Example
2|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Options
NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [-x] [-y] [interval]
and so forth until TCP/IP was reached. Note that this option
permissions.
option.
addresses.
3|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the -s
shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
endpoints.
4|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Syntax:
/showclassid adapter |
/showclassid6 adapter |
where
Options:
5|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
/showclassid Displays all the dhcp class IDs allowed for adapter.
/showclassid6 Displays all the IPv6 DHCP class IDs allowed for adapter.
Example
6|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Syntax: Hostname
Example
5. Tracert :- This command will trace the route a data packet takes before
reaching its destination, displaying information on each hop along the
route. Each hop of the route will display the latency between your device
and that particular hop and the IP address of the hop .
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]
Options:
7|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Example
Syntax: NSLookUp
8|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
Syntax: arp /a
8. Route :- IP networks use routing tables to direct packets from one subnet
to another. The Windows Route utility allows you to view the device’s
routing tables. To do so, simply type Route Print.
The cool thing about the Route command is that it not only shows you the
routing table, it lets you make changes. Commands such as Route Add,
Route Delete, and Route Change allow you to make routing table
modifications on an as needed basis. The changes that you make can be
persistent or nonpersistent, depending on whether you use the -P switch.
ROUTE [-f] [-p] [-4|-6] command [destination]
-p When used with the ADD command, makes a route persistent across
9|Page
Dhruvik Tank 206170307025 C.N.S. (3350704)
10 | P a g e
Dhruvik Tank 206170307025 C.N.S. (3350704)
Options:
11 | P a g e
Dhruvik Tank 206170307025 C.N.S. (3350704)
10. Getmac :- Every network capable device on the internet has a unique
identifying number called its MAC address. The number is assigned during
manufacture and is established in the hardware of the device. Using the
Getmac command, a user can determine the MAC address of their various
network devices.
Syntax: getmac
12 | P a g e