Make sure you're logged into iCloud on both devices, then on your iPhone go to Settings > Messages > Text Message Forwarding. You should see your iPad listed there; slide the selector over and it will ask you to type in a six-digit code that will appear on your iPad. Once you do that, you'll start receiving text messages on your iPad, even when they're not on the same network together. Very handy feature.