There's a tool out there called "tracesroute" (note the "s") that will also provide the AS number of every ip it lists.