Practice. Ride on roads that do not have as much high speed traffic and get used to dealing with the automobiles. As your confidence level builds, start taking short trips on the main motorways. Over time, increase the length of your rides. Soon you will be riding on them as well as if you were riding on a bicycle only trail. It is all just a matter of getting accustomed to the high speed traffic.