H,i,
I'm currently studdying for my next Juniper certification exam and as for business need around ASPATH override feature and similar function. I know my design do not respect BGP best practice at some point, my only gold was to experiment AS-OVERRIDE feature with Juniper v-lab .
So to understand AS override I used Juniper V-LAB "Multi-AS with Dual Route Reflectors" topologie esased all router and replace their configuration with the one attached. At the beginning of my lab all BGP session were established and routeur are exchange as expected.
So to experiment AS-override feature I added the following
on lo0 I added multiple secondary ip on each router VMX4, VM5 & VMX6
VMX4 10.1.101.1/24 10.1.102.1/24..... UP TO 10.1.105.1/24
VMX5 10.15.101.1/24 10.16.102.1/24..... UP TO 10.16.105.1/24
VMX6 10.16.101.1/24 10.16.102.1/24..... UP TO 10.16.105.1/24
After alterated export policy to respective ASN router were exchanged everywhere as expected.
After that I change the ASN of VMX4 from ASN 64501 to 64515 same as for VMX5, change the respect export policy to ASN64512 on VMX4 and commit the change. I also update peering configuration of VMX3 & VMX1 for peering configuration with vmx4 and also commit the change.
As expected, routes from VMX4 now appear in all router part of ASN64515 except on VMX5 since BGP path prenvention mecanism was prevent the advertisement of these route form VMX2 and VMX6 to VMX5.
On VMX2 I wasn't seen even route been advertised from router VMX2 to VMX5 which this behavior is different from other vendor like who in case vmx2 would be advertising these route to vmx5 and let vmx5 to not accepting theses routes due of BGP path loop prevention function.
After I add the command "advertise-peer-as" in the group to VMX5 and commit the configuration
I seen the route from VMX4 been advertived to VMX5 but on VMX5 I did not seen them as received but not been put in the routing table due of BGP loop prevention.
on VMX6 I updated the peering configuration to VMX5 with "advertise-peer-as as-override" command.
------------------------------
Xine
------------------------------