Summarize this article:

To do so, click the apple-shaped icon in the top-left corner of the screen. You'll see this option in the Apple Menu drop-down window. This will open the Network window. It's in the left-hand pane. It's in the lower-right area of the window. This tab is near the top of the Advanced window. If it doesn't, click the box to the right of "Configure IPv4" at the top of the screen and select Using DHCP. It's on the right side of the page. This will ensure that you're able to access the Internet while connected to Ethernet. It's in the bottom-right corner of the screen. Your Ethernet connection should now be live.
Open the Apple Menu. Click System Preferences. Click Network. Select the "Ethernet" connection. Click Advanced. Click the TCP/IP tab. Make sure the "Configure IPv4" box says "Using DHCP". Click Renew DHCP Lease. Click OK.