In a large-scale LAN, the function of a core switch is to connect different LAN segments together, allowing for high-speed communication between devices across the network. The core switch acts as a central point for managing and routing traffic within the LAN, ensuring efficient data transfer between devices and providing connectivity to the outside network. It is responsible for handling large amounts of data traffic and ensuring that communication between various network segments is seamless and reliable.