ICMP in Linux Kernel
by sara sh from LinuxQuestions.org on (#5P7GK)
I have a question about the function of the network stack in the Linux kernel. Suppose a Linux server with two interfaces,
eth1: (IP: 192.168.42.1, MAC: 56:ab:44:0e:b8:d9) eth2: (IP: 10.20.0.3 MAC: 56:ab:44:0e:b8:d8)
I realized if an ICMP packet arrives at this host with the destination IP address of eth2 (10.20.0.3) but the MAC address of eth1 (6:ab:44:0e:b8:d9) ping works although the MAC address does not match with IP address.
So I was wondering which process is happening in Linux Kernel, that the ping reply is working?
Thanks,
eth1: (IP: 192.168.42.1, MAC: 56:ab:44:0e:b8:d9) eth2: (IP: 10.20.0.3 MAC: 56:ab:44:0e:b8:d8)
I realized if an ICMP packet arrives at this host with the destination IP address of eth2 (10.20.0.3) but the MAC address of eth1 (6:ab:44:0e:b8:d9) ping works although the MAC address does not match with IP address.
So I was wondering which process is happening in Linux Kernel, that the ping reply is working?
Thanks,