Need Quagga help with bgp

I have a base config and when tested...we received all full/internet routes from "Main Peer"---but we weren't passing those routes on to our other peer "Customer" they weren't seeing any/all full internet routes.
Whats missing in this config to pass routes onto our "Customer"?

The "Main Peer" did see the advertised (IP_RANGE/20)  that the Customer wanted advertised.

I'm going to use fictitious AS and IP's

We're running a Imagestream router.


!Our Config
router bgp 30001
  bgp router-id 192.168.0.235
  bgp log-neighbor-changes



# Begin configuration for Main-Peer
 neighbor 192.168.1.225 remote-as 19000
 neighbor 192.168.1.225 soft-reconfiguration inbound
 neighbor 192.168.1.225 description Main-peer
 neighbor 192.168.1.225 route-map rm_peer_1_in in
 neighbor 192.168.1.225 route-map rm_peer_1_out out

# Begin configuration for customer
  neighbor 10.1.1.138 remote-as 29000
  neighbor 10.1.1.138 soft-reconfiguration inbound
  neighbor 10.1.1.138 description customer
  neighbor 10.1.1.138 route-map rm_peer_2_in in
  neighbor 10.1.1.138 route-map rm_peer_2_out out
!

ip prefix-list pl_peer_1_out seq 5 permit IP_RANGE/20
ip prefix-list pl_peer_1_out seq 10 permit IP_RANGE/20

ip prefix-list pl_peer_2_out seq 5 permit IP_RANGE/20
ip prefix-list pl_peer_2_out seq 10 permit IP_RANGE/20
!
route-map rm_peer_1_out permit 5
  match ip address prefix-list pl_peer_1_out
  set as-path prepend 30001
!
route-map rm_peer_1_in permit 5
  set local-preference 100
!
route-map rm_peer_2_out permit 5
  match ip address prefix-list pl_peer_2_out
  set as-path prepend 30001
!
route-map rm_peer_2_in permit 5
 set local-preference 100
!
spiz79Asked:
Who is Participating?
 
Nayyar HH (CCIE RS)Connect With a Mentor Network ArchitectCommented:
I think your route-map logic should be:
 

ip prefix-list pl_peer_2_in seq 5 permit IP_RANGE/20
ip prefix-list pl_peer_2_in seq 10 permit IP_RANGE/20
!
route-map rm_peer_2_out permit 5
set as-path prepend 30001
!
route-map rm_peer_2_in permit 5
match ip address prefix-list pl_peer_2_in
set local-preference 100
!
0
 
spiz79Author Commented:
Ok...that would allow just the /20s in from the customer - correct? If so thats great...

How would I get the customer all of the routes we have from our ISP/Main Peer?

thanks
0
 
Nayyar HH (CCIE RS)Network ArchitectCommented:
Yes, Thats correct.

The route-map rm_peer_2_out does'nt have a prefix-list tied to it, so all networks would be sent to the customer prepended with 30001.



0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
spiz79Author Commented:
nazsky,
First off...thanks for taking your time helping me here, just from this has really helped me get a better grasp here of all this...I hope anyways!

The config below is the new config..one thing the Main/ISP did say is that they didn't want to see the prepend ...is that possible to even take that out?


!Our Config
router bgp 30001
  bgp router-id 192.168.0.235
  bgp log-neighbor-changes



# Begin configuration for Main-Peer
 neighbor 192.168.1.225 remote-as 19000
 neighbor 192.168.1.225 soft-reconfiguration inbound
 neighbor 192.168.1.225 description Main-peer
 neighbor 192.168.1.225 route-map rm_peer_1_in in
 neighbor 192.168.1.225 route-map rm_peer_1_out out

# Begin configuration for customer
  neighbor 10.1.1.138 remote-as 29000
  neighbor 10.1.1.138 soft-reconfiguration inbound
  neighbor 10.1.1.138 description customer
  neighbor 10.1.1.138 route-map rm_peer_2_in in
  neighbor 10.1.1.138 route-map rm_peer_2_out out
!

ip prefix-list pl_peer_1_out seq 5 permit IP_RANGE/20
ip prefix-list pl_peer_1_out seq 10 permit IP_RANGE/20

ip prefix-list pl_peer_2_in seq 5 permit IP_RANGE/20
ip prefix-list pl_peer_2_in seq 10 permit IP_RANGE/20
!
route-map rm_peer_1_out permit 5
  match ip address prefix-list pl_peer_1_out
  set as-path prepend 30001
!
route-map rm_peer_1_in permit 5
  set local-preference 100
!
route-map rm_peer_2_out permit 5
set as-path prepend 30001
!
route-map rm_peer_2_in permit 5
match ip address prefix-list pl_peer_2_in
set local-preference 100
!
0
 
spiz79Author Commented:
typo on that first route map
should be

route-map rm_peer_1_out permit 5
  match ip address prefix-list pl_peer_1_out
  set as-path prepend 19000
0
 
Nayyar HH (CCIE RS)Network ArchitectCommented:
No problem at all spiz79, its always a pleasure.

Its possible, before you do might you know why it was there? any particular reason?

What is the AS topolgy? Is it as shown below? How many physical links?

[ISP AS 19000] ------[You  AS30001]------- [Customer AS 29000]

0
 
spiz79Author Commented:
yes thats the exact AS topology

[ISP AS 19000] ------[You  AS30001]------- [Customer AS 29000]


that would make it two physical links...
0
 
Nayyar HH (CCIE RS)Network ArchitectCommented:
In that case i believe its OK to take it out.

But I should ask why does the Customer need full Internet routing table if theres only one path? Why not just a default route?
0
 
spiz79Author Commented:
nazsky:

This BGP thing got thrown in my lap and all I know is the Customer wanted all "Internet Routes"
And they are expecting to see all these "Internet Routes" from us...So I just figured it would be done in the BGP config.

Would this default route be in my BGP config or in my network config?


0
 
Nayyar HH (CCIE RS)Network ArchitectCommented:
You can advertise a default route to the customer via BGP.

But since thats the customers requirements i suggest you go with that and maybe ask the question when you're done.
0
 
spiz79Author Commented:
Helped me through more then just my initial question.
nazsky is the what makes EE great!
0
All Courses

From novice to tech pro — start learning today.