I have a task on which I have spent a lot of time. I am not fluent in Linux, but I can manage basic things.
The task is to gather different types of ICMP packets. I can harvest them by tcpdump (which I prefer) or Wireshark.
I am able get the ICMP types of echo reply and echo request using ping, and time exceeded using tracepath or traceroute. Now, what I am trying to get is unreachable or timestamp or something else. I need two more types, however I don't know a way to produce.
I have tried pinging a nonexistent host or wrong port, and using tracepath the same way, but I am not getting anything.
Can someone advise me or tell me what commands I can use, and in which way, to obtain two more types of ICMP packets?