Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 446
  • Last Modified:

BGP and Cisco 7206: Problem with inbound

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
admin112
Asked:
admin112
  • 3
  • 2
1 Solution
 
ksims1129Commented:
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
 
admin112Author Commented:
Unfortunately, applying it, it use  inbound/outbound in the provider b for  the whole /22.
0
 
ksims1129Commented:
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
 
ksims1129Commented:
i left out a key command
interface (whatever interface traffic is sourced)
ip policy route-map 141AND142OUT
0
 
admin112Author Commented:
Thank you.

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

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now