i am trying to send an echo-request to the default gateway with 2nd layer broadcast address in Scapy.
i wrote this code:
packet = Ether(dst='FF:FF:FF:FF:FF:FF') / IP(dst='192.168.1.1') / ICMP()
sendp(packet)
but no response is returned
as i understand the process of sending a packet inside the network, the frame should had gone to the switch since the ip address of the destination is in the same network, and then the switch should had sent it to everyone connected to it since it sees the broadcast address.
what is wrong with this theory?
btw, I was sniffing the traffic using wireshark, there i could see the captured ping request but couldnt find the reponse for that answer which probably means this is a network problem and not a software one.