When you check in for your first flight you should ensure that the boarding card for the second flight is issued to you. If you are using two different airlines, you need to collect your luggage, go through security and customs and check in for the second flight where you will get the second boarding pass.