Hello all,

I was reading Cisco command reference on BGP and came across the
following configuration example.  I believe that we do not need the
remove-private-as command in this example. However, it is there.

----------------------------------------------------------------------------------------------------------------------------------------------------------------
Replace-AS Configuration Example
The following example strips private autonomous system 64512 from
outbound routing updates for the
172.20.1.1 neighbor and replaces it with autonomous system 600:

router bgp 64512
address-family ipv4 unicast
neighbor 172.20.1.1 local-as 600 no-prepend replace-as
neighbor 172.20.1.1 remove-private-as

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The way I understand replace-as is that it only prepends the LOCAL-AS
in the outbound routing updates instead of pre-pending both the
autonomous system (i.e one from the BGP router command and one with
LOCAL-AS).

Can somebody help me understand as to why we need both the commands here.


Suresh

Reply via email to