09-21-2017 12:28 AM - edited 03-05-2019 09:09 AM
Dear Experts,
We have a setup configured with Two different links connectiong on two different routers.
Below is the BGP configuration.
Router-1 Configuration :
router bgp 200
no synchronization
bgp log-neighbor-changes
network 10.20.20.0 mask 255.255.255.0
network 10.20.30.0 mask 255.255.245.0
redistribute connected
redistribute static
neighbor 10.100.100.2 timers 7 21
neighbor 10.100.100.2 allowas-in 10
neighbor 10.100.100.2 soft-reconfiguration inbound
neighbor 10.100.100.2 route-map PL in
neighbor 10.100.100.2 route-map PSA out
route-map PSA permit 20
set as-path prepend 200 200 200
!
route-map PL permit 10
set local-preference 50
!
Router-2 Configuration :
router bgp 200
no synchronization
bgp log-neighbor-changes
network 10.20.20.0 mask 255.255.255.0
network 10.20.30.0 mask 255.255.245.0
redistribute connected
redistribute static
neighbor 192.168.100.2 timers 7 21
neighbor 192.168.100.2 allowas-in 10
neighbor 192.168.100.2 soft-reconfiguration inbound
route-map PSA permit 20
set as-path prepend 200 200 200
!
route-map PL permit 10
set local-preference 50
Bit confusion , If i am correct.....there is no meaning of route-map on Router-2 as it is not recalled and working).
For router-1 configuration. as i understand....all incoming & outgoing traffic is through this router only , Don't mind ...please help to understand command wise purpose.
Regards
****
09-21-2017 03:24 AM
09-21-2017 03:35 AM
You are correct with your understanding of the route maps in router 2. However, all traffic is going in and out of router 2.
Router 1 has the route maps applied. The inbound one that sets the local preference to 50 which is less than the default value of 100. So router 2 will be the preferred for the outbound. The outbound route-map prepends the AS to the Internet so it will be more AS hops to get to router 1 and router 2 will be preferred for the inbound.
Hope this helps
09-21-2017 04:02 AM - edited 09-21-2017 04:13 AM
Hi,
We should analyze first why this configuration is being used or implemented for, but a simple sight it can be interpretated like:
neighbor 10.100.100.2 route-map PL in <--- Everything received through this neighbor (R2) set the AS-Path prepend 200 200 200. It is commonly seen over eBGP to manipulate or create symmetric traffic not on iBGP.
neighbor 10.100.100.2 route-map PSA out <--- All the traffic outgoing to this neighbor will be set with a local preference 50, in this way the neighbor will prefer this path or other one.
If the neighbor is R2, it will receive routes from R1 with LP 50.
I assume it is for practice because the first line actually could be ommitted because they are 2 routers only.
Hope it is useful
:-)
09-21-2017 04:50 AM
Hello Konstantinoschiotakis & shrihussey ,
Could you please explore your reply against each command.
Seems some understanding gaps here.
Just highlighting.....Both Router 1 and ROuter-2 are at our premises. and connecting with Router-A and Router-B respectuvely at remote end.
Rgds
***
09-21-2017 11:03 AM
Not exactly sure what you are asking. Can you be more specific?
Thank you
09-21-2017 11:24 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: