Hello ,
I am trying the understand the BGP policy . I have a Site called Remote office having an SRX Firewall . The AS number of site is 65111
I have two datacenters to which i have VPN from Remote site- Data center name as DC1 and DC2
set policy-options policy-statement EXPORT-VPN-DC1 term MATCH-direct from protocol direct
set policy-options policy-statement EXPORT-VPN-DC1 term MATCH-direct then as-path-prepend "65111 65111 65111 65111 65111"
set policy-options policy-statementEXPORT-VPN-DC1 term MATCH-direct then accept
set policy-options policy-statement EXPORT-VPN-DC1 term AS-path-prepend from protocol bgp
set policy-options policy-statement EXPORT-VPN-DC1 term AS-path-prepend then as-path-prepend "65111 65111 65111 65111 65111"
set policy-options policy-statement EXPORT-VPN-DC1 term AS-path-prepend then accept
set policy-options policy-statement EXPORT-VPN-DC2 term MATCH-direct from protocol direct
set policy-options policy-statement EXPORT-VPN-DC2 term MATCH-direct then as-path-prepend "65111 65111 65111 65111 65111 65111"
set policy-options policy-statement EXPORT-VPN-DC2 term MATCH-direct then accept
set policy-options policy-statement EXPORT-VPN-DC2 term AS-path-prepend from protocol bgp
set policy-options policy-statement EXPORT-VPN-DC2 term AS-path-prepend then as-path-prepend "65111 65111 65111 65111 65111 65111"
set policy-options policy-statement EXPORT-VPN-DC2 term AS-path-prepend then accept
My query is while prepending AS path - can we write any number other than 65111 .?
Also for DC1 , it is written as 5 times
for DC2 , it is written 6 times
making DC2 path longer . But is there any logic of using it 5 and 6 times .; can i use 7 and 8 times ? the goal is to have more number of entries for DC2 to make path longer ?
------------------------------
skywalker
------------------------------