Ex - No 1
Ex - No 1
Ex - No 1
Aim:
To learn the usage of commands like tcpdump, netstat, ifconfig, nslookup and traceroute. Capture ping and
traceroute PDUs using a network protocol analyzer and examine.
Algorithm:
Step 1: Start
Step 2: Open the terminal
Step 3: Issue the Commands tcpdump, netstat, ifconfig, nslookup and traceroute with proper syntax and
perform ping and traceroute operation .
Step 4:Read the result
Step 5:Get the output
2.netstat
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.122.0 * 255.255.255.0 U 00 0 virbr0
192.168.0.0 * 255.255.0.0 U 00 0 wlan0
default 192.168.1.1 0.0.0.0 UG 00 0 wlan0
[root@localhost ~]#
3.ifconfig
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 6C:3B:E5:10:5C:11
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:20 Memory:f7c00000-f7c20000
5.ping google.com
[root@localhost ~]# ping google.com
PING google.com (172.217.163.78) 56(84) bytes of data.
64 bytes from maa05s02-in-f14.1e100.net (172.217.163.78): icmp_seq=1 ttl=114 time=42.1 ms
64 bytes from maa05s02-in-f14.1e100.net (172.217.163.78): icmp_seq=2 ttl=114 time=40.6 ms
64 bytes from maa05s02-in-f14.1e100.net (172.217.163.78): icmp_seq=3 ttl=114 time=39.2 ms
64 bytes from maa05s02-in-f14.1e100.net (172.217.163.78): icmp_seq=4 ttl=114 time=45.8 ms
64 bytes from maa05s02-in-f14.1e100.net (172.217.163.78): icmp_seq=5 ttl=114 time=43.9 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4675ms
rtt min/avg/max/mdev = 39.289/42.373/45.858/2.331 ms
Result:
Thus the commands are successfully executed and verified.