May I suggest parking your car at the Metro Train lot on HUGHES BLVD (there's a bus that travels between the Metro Train and LAX). Take the Metro Train to Downtown LA Union Station and transfer to a Metro Train / Amtrak that goes to Ontario.
Many of my friends from the Inland Empire do this to avoid driving in LA when catching a flight at LAX.
Good luck and safe travels!