Install libnet-rawip-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnet-rawip-perl
Perl interface to lowlevel TCP/IP
Net::RawIP gives you the ability to create and manipulate arbitrary IP packages and fiddle around with every bit in the protocol header. . This module is useful if you want to implement a "traceroute" or "ping" in PERL or you just want to learn about TCP/IP protocol suite but are afraid of the C language.