We wish to run private bgp as' at our sites and we need our internet router to also run a private as but advertise our public as to our upstream isp. is this possible
I agree with Mohammed and slidersv, you need both commands:
router bgp [your private ASN]
neighbor x.x.x.x local-as [your public as-number] no-prepend replace-as
neighbor x.x.x.x remove-private-as
This will solve the problem for you because it will strip out the private AS in the path.
Try this in a small lab and let us know.
Try playing with the keywords [no-prepend [replace-as [dual-as]]], with the local-as command.