Thanks very much
I have another concern about this is :
actually AS2 and AS3 are 2 internet gateway for AS1
I may want to use as-path length to affect which AS for inbound traffic,for example when export route prefixes to AS3 ,prepend as-path 100 100.
policy-statement only-my-routes {
term just-my-as {
from {
protocol bgp;
as-path null-as;
}
then {
as-path-prepend “100 100”;
accept;
}
term nothing-else {
then reject;
}
}
1:if I use it in this way, will null as-path "()" work as expected?
2:if AS1 is a private AS number, how to affect inbound traffic while AS2 and 3 are public AS.
it seems private AS number can't transit in public.