For each successful ping command, include the IP header data of an outgoing ICMP Echo Request message and an incoming ICMP Echo Reply message (with respect to the private network).

What will be an ideal response?

On PC1: PC1% ping –c 3 10.0.1.3
succeeds as both the hosts are in the same local network. No port or IP address mapping takes place.
PC1% ping –c 3 128.143.136.1
succeeds as evident from the following IP header dump on eth0 and eth1 interfaces.
```
Internet Protocol, Src Addr: 10.0.1.2 (10.0.1.2), Dst Addr: 128.143.136.1
(128.143.136.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 84
Identification: 0x0000
Flags: 0x04
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: ICMP (0x01)
Header checksum: 0x2817 (correct)
Source: 10.0.1.2 (10.0.1.2)
Destination: 128.143.136.1 (128.143.136.1)
128.143.136.1 (128.143.136.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 84
Identification: 0x0000
Flags: 0x04
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 63
Protocol: ICMP (0x01)
Header checksum: 0x2a73 (correct)
Source: 128.143.136.22 (128.143.136.22)
Destination: 128.143.136.1 (128.143.136.1)
```
On Router1:
Router1# ping 10.0.1.2 succeeds as both the hosts are in the same local network. No port or IP address mapping takes place.
Router1# ping 128.143.136.1 succeeds as evident from the following IP header dump on eth0 and eth1 interfaces.
```
Internet Protocol, Src Addr: 10.0.1.3 (10.0.1.3), Dst Addr: 128.143.136.1
(128.143.136.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 100
Identification: 0x000b
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: ICMP (0x01)
Header checksum: 0xa8fa (correct)
Source: 10.0.1.3 (10.0.1.3)
Destination: 128.143.136.1 (128.143.136.1)
Internet Protocol, Src Addr: 128.143.136.22 (128.143.136.22), Dst Addr:
128.143.136.1 (128.143.136.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 100
Identification: 0x000b
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 254
Protocol: ICMP (0x01)
Header checksum: 0xab57 (correct)
Source: 128.143.136.22 (128.143.136.22)
Destination: 128.143.136.1 (128.143.136.1)
```
On PC4:
PC4% ping –c 3 10.0.1.2
The ping command is not successful as the host 10.0.1.2 lies in the private network and hence is not
visible to any machine in the public network. Moreover there is no direct entry for any such network
in PC4’s routing table. Also it does not have an entry for a default gateway. Hence the command doesn’t succeed.

Computer Science & Information Technology

You might also like to view...

The ____ metacharacter is used to specify a range of values in a character class.

A. (-) B. (+) C. (@) D. (‘)

Computer Science & Information Technology

The mail merge function is located on this tab.

A. Home B. Insert C. References D. Mailings

Computer Science & Information Technology