R3 with private AS
If we use this command "remove-private-as" at R2 to remove private AS while it advertise R3 prefixes to its neighbors.
I think if there is IBGP between R2 and R1 then R2 wonnt strip the private AS from R3 prefixs.
Its only when R1 and R2 have an EBGP session then R2 will strip off the private AS from R3 prefixs.
I read the cisco doc saying that this command is only applicable to the EBGP neighbors, that OK but it doesnt discuss this kinda scenario ..
expecting a discussion frm experts or anybody who has already tested this :)
What did you mean when you said: "If we use this command "remove-private-as" at R2 to remove private AS while it advertise R3 prefixes to its neighbors." ? If you use the command at R2 for the R3 neighbor, its ok (eBGP session), but it will remove the private AS numbers for routes that are advertised towards R3 (not from routes received from R3). You cannot configure the command in the session between R2 and R1, since this is iBGP. You should have removed the private ASs in R3, before they reach R2. This is more of an outbound command (for updates sent to the neighbor). In the documentation this is refered to as "removal of private AS numbers from outgoing eBGP updates". Note the word "outgoing".