Here is the core simulation of the ARP(Address Resolution Protocol) and RARP(Reverse Address Resolution Protocol) ARP used to map the ip address with the corresponding MAC address and RARP do that in reverse. it maps the MAC with the ip. #include "stdio.h" #include "string.h" int main() { char table[3][2][40]; char ipin[10],macin[30]; int i,j,found; strcpy(table[0][0],"127.0.0.1"); strcpy(table[0][1],"44:dd:22:11:33"); strcpy(table[1][0],"10.1.1.8"); strcpy(table[1][1],"33:aa:fe:4e:2d"); strcpy(table[2][0],"10.1.8.5"); strcpy(table[2][1],"23:a3:5d:33:9d"); printf("IP address\t MAC address\n"); for(i=0;i