Ethernet issue with PLC based on ATmega1602

try running wireshark it will display the packets on the network and may give you some idea of the problem