We help IT Professionals succeed at work.
Get Started

Purpose of BGP route-map statements?

615 Views
Last Modified: 2012-05-09
when I run sh ip bgp summary I have two peers 1.2.3.4 and 5.6.7.8

If the updates from the network statements coming from this router match the access-list 130 what happens?

If they don't match 130 do they then get checked against 131?

Why does the AS abcde get prepended 5 times?

What is the purpose of the route-map set-prepend?

Any other information would be helpful as I am trying to learn BGP enough to get by at work and pass the BSCI.

router bgp abcde
 no synchronization
 bgp log-neighbor-changes
 network x.x.164.0 mask 255.255.255.0
 network x.x.192.0 mask 255.255.224.0
 network x.x.192.0 mask 255.255.255.0
 network x.x.201.0 mask 255.255.255.0
 network x.x.202.0 mask 255.255.255.0
 network x.x.205.0 mask 255.255.255.0
 network x.x.206.0 mask 255.255.255.0
 network x.x.207.0 mask 255.255.255.0
 network x.x.x.0 mask 255.255.255.0
 neighbor ibgp-mesh peer-group
 neighbor ibgp-mesh remote-as abcde
 neighbor ibgp-mesh update-source Loopback0
 neighbor ibgp-mesh version 4
 neighbor ibgp-mesh next-hop-self
 neighbor 5.6.7.8 peer-group ibgp-mesh
 neighbor 1.2.3.4 remote-as fghi
 neighbor 1.2.3.4 password 7 mypassword
 neighbor 1.2.3.4 send-community both
 neighbor 1.2.3.4 route-map set-prepend out
 no auto-summary


access-list 130 permit ip host x.x.192.0 host 255.255.255.0
access-list 130 permit ip host x.x.201.0 host 255.255.255.0
access-list 130 permit ip host x.x.202.0 host 255.255.255.0
access-list 130 permit ip host x.x.205.0 host 255.255.255.0
access-list 130 permit ip host x.x.192.0 host 255.255.224.0
access-list 130 permit ip host x.x.206.0 host 255.255.255.0
access-list 130 permit ip host x.x.207.0 host 255.255.255.0
access-list 130 permit ip host x.x.209.0 host 255.255.255.0
access-list 131 permit ip host x.x.224.0 host 255.255.255.0
access-list 131 permit ip host x.x.225.0 host 255.255.255.0
access-list 131 permit ip host x.x.224.0 host 255.255.224.0
access-list 131 permit ip host x.x.160.0 host 255.255.224.0
access-list 131 permit ip host x.x.164.0 host 255.255.255.0
!
route-map set-prepend permit 10
 match ip address 130
!
route-map set-prepend permit 20
 description adding community attributes to ISP
 match ip address 131
 set as-path prepend abcde abcde abcde abcde abcde
 set community fghi:80

Comment
Watch Question
Top Expert 2009
Commented:
This problem has been solved!
Unlock 4 Answers and 7 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE