Ethernet does not work on battery mode, but works when the power is plugged in

You haven’t provided any system information. Is it a USB ethernet adapter or a NIC?