Experiment - 1: Aim: Learn To Use Commands Like Tcpdump, Netstat, Ipconfig, and Nslookup
Experiment - 1: Aim: Learn To Use Commands Like Tcpdump, Netstat, Ipconfig, and Nslookup
Experiment - 1: Aim: Learn To Use Commands Like Tcpdump, Netstat, Ipconfig, and Nslookup
3. Hostname
Description: It is used to obtain the DNS(Domain Name System) name and
set the system's hostname or NIS(Network Information System) domain
name. A hostname is a name which is given to a computer and it attached
to the network. Its main purpose is to uniquely identify over a network.
Syntax: hostname
Eg: hostname
Output:
4. Getmac
Description: Getmac is a Windows command used to display the Media
Access Control (MAC) addresses for each network adapter in the
computer.
Syntax: getmac
Eg: getmac
Output:
5. NetStat
Description: The netstat provides the statistics and information in the use
of the current TCP-IP Connection network about the protocol.
Syntax: netstat [-a] [-b] [-e] [-n] [-o] [-p <Protocol>] [-r] [-s] [<interval>]
Eg: Netstat -n
Output:
6. Tracert
Description: The tracert command is a Command Prompt command which
is used to get the network packet being sent and received and the number
of hops required for that packet to reach to target.
Syntax: tracert [-d] [-h MaxHops] [-w TimeOut] target
Eg: tracert www.google.com
Output:
7. Nslookup
Description: The Nslookup, which stands for name server lookup
command, is a network utility command used to obtain information about
internet servers. It provides name server information for the DNS (Domain
Name System), i.e. the default DNS server’s name and IP Address.
Syntax: Nslookup , Nslookup < domain name>
Eg: Nslookup www.youtube.com
Output:
8.Arp
Description: The ARP command provides information like Address, Flags,
Mask, IFace, Hardware Type, Hardware Address, etc.
Syntax: arp [/a [<inetaddr>] [/n <ifaceaddr>]] [/g [<inetaddr>] [-n
<ifaceaddr>]] [/d <inetaddr> [<ifaceaddr>]] [/s <inetaddr> <etheraddr>
[<ifaceaddr>]]
Eg: arp -a
Output:
9. Nbtstat
Description: Nbtstat is designed to help troubleshoot NetBIOS name
resolution problems.
Syntax: nbtstat < -a (name)> < -A (IP-address)> < -c>< -n> <-r> <-R><-RR>
<-S> <-s>
Eg: nbtstat -c
Output:
10.Path Ping
Description: The pathping command which provides a combination of the
best aspects of Tracert and Ping.
Syntax: pathping [/n] [/h <maximumhops>] [/g <hostlist>] [/p <Period>]
[/q <numqueries> [/w <timeout>] [/i <IPaddress>] [/4 <IPv4>] [/6
<IPv6>][<targetname>]
Eg: pathping 8.8.8.8
Output :