We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 651 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)

470 Sign Ups in the last 30 days

100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Forum Replies

  1. hi Rene,

    couple of doubts on this concept :

    You said :
    "Removing the private AS number(s) will only work if there are no public AS numbers in the AS path. "
    but we have “2” which is public AS in the path right ? so why did privateAS 64512 got removed after applying the remove-priv-as command.

       Network          Next Hop            Metric LocPrf Weight Path
    *&gt;                           0 <strong>2 64512</strong> i
    1. should ping work from R3 to using config you gave ?


  2. Hi Abhishek,

    It’s about the updates that R2 receives from R1, in this AS path you shouldn’t see any public AS numbers.

    If you do have any public AS numbers there then the router won’t remove them unless you use the remove-private-as all command.

    The ping will not work unless you advertise network on R2 or R3 so that R1 can learn it. Otherwise, R1 doesn’t know how to reach


  3. Hello Rene,
    Great lesson however, I have a question if R3 learns about from R1 then why do we need to remove private AS# command at R2. Please clarify.


  4. Hello Hamood

    R3 learns about from R2. This can be seen in the output from the show ip bgp command executed on R3. The next hop IP is which is that of R2. Also, when BGP neighbour relationships are configured, R3 and R2 are configured to be neighbours.

    So the remove private-as command that’s implemented at R2 will have the result of removing the private AS’s from BGP updates from R2 to R3.

    As a general rule, the remove private-as command is implemented on the router that is in a public AS but is directly connected to a router in a private

    ... Continue reading in our forum

  5. why we remove the private as ? it create any problem ?

3 more replies! Ask a question or join the discussion by visiting our Community Forum