Help! My boyfriend is moving away

Ok so like me and my boyfriend have been dating for awhile now and he just told me that his dad got a job two to three hours away from where we are. We want to stay together and try long distance relationship but I don't know how. Help please