Assuming you booked both flights together on one itinerary (as opposed to two separate itineraries) you will get both boarding passes when you check in for your first flight. When you land at your layover airport, you need to look at the departures board and find the gate for your next flight.