Use ethernet on MacBook with regular USB port

If you have an older MacBook with no USB C ports but only a regular USB A port, you can use a USB to Ethernet adapter like the one below.

TECKNET Aluminum 3-Port USB 3.0 Hub with RJ45 10/100/1000 Gigabit Ethernet Adapter Converter LAN Wired USB Network Adapter for Ultrabooks, Notebooks, Tablets and More
https://www.amazon.com/dp/B0178HOTOU/

 

If you have USB C, there are lots of options for USB C hubs. Example below:
https://www.amazon.com/dp/B07X8ZLYLR/