Solved

BGP and Cisco 7206: Problem with inbound

Posted on 2009-05-12
5
432 Views
Last Modified: 2012-05-06
Hello:

I´m running a two-providers topology with BGP4 in a Router Cisco 7206 VXR NPE-G2.

Provider A: 100 Mbit (premium BW)
Provider B: 1000 Mbit (worst routes but more Bandwidth).

Actually, our network have assigned a /22 (4 blocks /24) and filters for /24 has been removed from the provider routers.

I would like to use Provider B for inbound/outbound always for the range 192.168.141.0 and 192.168.142.0. ProviderA (premium bw)  must be used with 192.168.140.0 and 192.168.143.0.

At this moment, inbound is using providerb but outbound is using the best route.

My configuration is:

   router bgp 10000

    no synchronization
    bgp log-neighbor-changes
    network 192.168.140.0 mask 255.255.255.0
    network 192.168.141.0 mask 255.255.255.0
    network 192.168.142.0 mask 255.255.255.0
    network 192.168.143.0 mask 255.255.255.0
    aggregate-address 192.168.140.0 255.255.252.0
    neighbor 10.165.1.41 remote-as 21148
    neighbor 10.165.1.41 description bgp providera
    neighbor 10.165.1.41 soft-reconfiguration inbound
    neighbor 10.165.1.41 weight 300
    neighbor 10.165.1.41 route-map providera in
    neighbor 10.165.2.237 remote-as 1744
    neighbor 10.165.2.237 description providerb
    neighbor 10.165.2.237 password 7 xxxx
    neighbor 10.165.2.237 soft-reconfiguration inbound
    neighbor 10.165.2.237 route-map providerbfilter in
    no auto-summary

! IP as-path access list for deny those ASN for providera and force providerb
!        ip as-path access-list 1 deny _12946$
    ip as-path access-list 1 deny _12334$
    ip as-path access-list 1 deny _12715$
    ip as-path access-list 1 deny _12338$
    ip as-path access-list 1 deny _6739$
    ip as-path access-list 1 deny _13143$
    ip as-path access-list 1 deny _16338$
    ip as-path access-list 1 permit .*
    ip as-path access-list 2 permit _12338$
    ip as-path access-list 2 permit _12946$
    ip as-path access-list 2 permit _12334$
    ip as-path access-list 2 permit _6739$
    ip as-path access-list 2 permit _13143$
    ip as-path access-list 2 permit _16338$
    ip as-path access-list 2 permit _12715$
    ip as-path access-list 2 deny .*
!
  access-list 170 permit ip 192.168.142.0 0.0.0.255 any
    access-list 170 permit ip 192.168.141.0 0.0.0.255 any
    access-list 180 permit ip any 192.168.140.0 0.0.1.255

route-map providerbfilter
    permit 10
    match as-path 2
    set weight 350
    !        route-map providerafilter permit 10
    match as-path 1
    !        route-map servers_using_providerb permit 8
    description avoid routing between servers not use providerb
    match ip address 180
    set default interface GigabitEthernet0/2
    !        route-map servers_using_providerb permit 70
    description force exit by providerb
    match ip address 170
    set ip next-hop 10.165.2.237
    set ip default next-hop 10.165.2.237

Thanks in advance
0
Comment
Question by:admin112
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:ksims1129
Comment Utility
if you also add the following access list statement it should allow traffic destined to the networks to be sent to the specified next hop address too

access-list 170 permit ip any 192.168.142.0 0.0.0.255
access-list 170 permit ip any 192.168.141.0 0.0.0.255

im have not done tom much policy routing in BGP but im pretty sure this will work.
Hope this helps
0
 

Author Comment

by:admin112
Comment Utility
Unfortunately, applying it, it use  inbound/outbound in the provider b for  the whole /22.
0
 
LVL 5

Expert Comment

by:ksims1129
Comment Utility
i apologize as i was not completely clear. If you set up a policy map you can route traffic based on destination address. for example

access-list 170 permit ip any 192.168.142.0 0.0.0.255
access-list 170 permit ip any 192.168.141.0 0.0.0.255
route-map 141AND142OUT permit 10
match ip address 170
set ip next-hop 10.165.2.237

i feel that you are knowledgable to route-maps to be able to make sure the traffic get to its destination
0
 
LVL 5

Accepted Solution

by:
ksims1129 earned 500 total points
Comment Utility
i left out a key command
interface (whatever interface traffic is sourced)
ip policy route-map 141AND142OUT
0
 

Author Comment

by:admin112
Comment Utility
Thank you.

Finally, ip prefix-list + route-map was my solution.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now