admin112
asked on
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
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
ASKER
Unfortunately, applying it, it use inbound/outbound in the provider b for the whole /22.
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
Finally, ip prefix-list + route-map was my solution.
Finally, ip prefix-list + route-map was my solution.
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