02-16-2024 07:53 AM
Hello Team,
I have configured bgp with my isp but is not able to see my routes advertising.kindly assist to review my configuration
router bgp 329
bgp log-neighbor-changes
neighbor 41.207.242.133 remote-as 473
neighbor 41.207.242.133 update-source GigabitEthernet0/0/0
!
address-family ipv4
network 102.110.54.0 mask 255.255.254.0
network 102.110.54.0 mask 255.255.255.0
neighbor 41.207.242.133 activate
neighbor 41.207.242.133 next-hop-self
neighbor 41.207.242.133 allowas-in
neighbor 41.207.242.133 soft-reconfiguration inbound
neighbor 41.207.242.133 route-map Orange_PUBLIC_BLOCK_TO_Tango out
exit-address-family
!
ip default-gateway 41.207.242.133
!
!
!
!
ip prefix-list Orange_PUBLIC_BLOCK_TO_Tango seq 5 permit 102.110.54.0/23
ip prefix-list Orange_PUBLIC_BLOCK_TO_Tango seq 10 permit 102.110.54.0/24
!
ip prefix-list Orange_SUPERNET seq 5 permit 102.110.54.0/23
route-map Orange_PUBLIC_BLOCK_TO_Tango permit 30
match ip address prefix-list Orange_DR_PUBLIC_BLOCK
set as-path prepend 329393 329393 329393 329393 329393
!
route-map Orange_PUBLIC_BLOCK_TO_Tango permit 10
match ip address prefix-list Orange_PUBLIC_BLOCK_TO_Tango
!
route-map Orange_PUBLIC_BLOCK_TO_Tango permit 20
match ip address prefix-list Orange_SUPERNET
!
ip prefix-list DEFAULT seq 5 permit 0.0.0.0/0
!
ip prefix-list DEFAULT_ROUTE_ONLY seq 5 permit 0.0.0.0/0
!
ip prefix-list Orange _DR_PUBLIC_BLOCK seq 5 permit 102.110.55.0/24
Solved! Go to Solution.
02-16-2024 09:59 AM - edited 02-16-2024 09:59 AM
Hi @dissai ,
As I mentioned in my previous post, the route needs to be present in the routing table for the network statement to originate the route in BGP. This could be a static route or a route coming from any routing protocol. A static route to null0 if often uses for aggregate routes, as follow:
ip route 102.220.128.0 255.255.254.0 null0
Regards,
02-16-2024 08:09 AM
There are many issue but let solve it one by one
First
Shwo ip bgp neighbor
Do you see neighbor or not?
If not
Then check
1- the bgp not use defualt route' you need static route to reach neighbor
2- ip routing enable to add if it disable
3- ebgp multihop must use if the neighbor is not direct connect
Later after we make sure the neighbor is appear we discuss the route-map I dont get why you add two line and one match /23 and other match /24 of same subnet
MHM
02-16-2024 08:21 AM
02-16-2024 08:27 AM
Then first part finish
Now bgp need you to inject prefix by network or redistrubte
I dont see these commands?
Note:- route-map out is not inject prefix it only filter it
MHM
02-16-2024 08:39 AM
I have put but still no advertisment.
router bgp 329393
bgp log-neighbor-changes
neighbor 41.207.242.133 remote-as 37349
neighbor 41.207.242.133 password iQ4ZGewGzrdT0g
neighbor 41.207.242.133 update-source GigabitEthernet0/0/0
!
address-family ipv4
network 102.110.54.0 mask 255.255.254.0
network 102.110.54.0 mask 255.255.255.0
redistribute static route-map Orange_PUBLIC_BLOCK_TO_Tango
neighbor 41.207.242.133 activate
neighbor 41.207.242.133 next-hop-self
neighbor 41.207.242.133 allowas-in
neighbor 41.207.242.133 soft-reconfiguration inbound
neighbor 41.207.242.133 route-map Orange_PUBLIC_BLOCK_TO_Tango out
exit-address-family
INTERNET-EDGE-RT1#
INTERNET-EDGE-RT1#
INTERNET-EDGE-RT1#$p neighbors 41.207.242.133 advertised-routes
Total number of prefixes 0
02-16-2024 08:51 AM
The route-map you use is wrong then it not cover the static route'
Can I see the static route you need to advertise
The subnet abd mask
MHM
02-16-2024 08:56 AM
Hi MHM,
Let say I want to advise below.
network 102.220.128.0 mask 255.255.255.0
network 102.220.128.0 mask 255.255.254.0
Kindly assist with correct bgp template to advertise above to seen by my neighbor.
Thank you.
02-16-2024 09:01 AM
Friend there is overlapping in these subnet are you sure both appear in RIB of router ? How one /24 and other /23?
MHM
02-16-2024 09:04 AM
02-16-2024 09:13 AM
Router bgp x
Redistrubte static route-map MHM
!
ip prefix-list MHM seq 5 permit 102.220.128.0/23
!
Route-map MHM permit 10
Match ip address prefix MHM
Note:- this prefix must be 100% exactly same as prefix appear in RIB otherwise BGP not redistrubte it
MHM
02-16-2024 09:33 AM - edited 02-16-2024 09:35 AM
Hi @dissai ,
The route specified in the network statement first need to be present in routing table to be injected.
Can you provide the output for the following commands:
show ip route 102.220.128.0 255.255.254.0
show bgp ipv4 uni 102.220.128.0 255.255.254.0
Regards,
02-16-2024 09:47 AM
02-16-2024 09:53 AM
I ask you if you see prefix and you confirm that ? and I send to you 100% same as in RIB ? what in not in table ?
I realy confuse here
MHM
02-16-2024 09:59 AM - edited 02-16-2024 09:59 AM
Hi @dissai ,
As I mentioned in my previous post, the route needs to be present in the routing table for the network statement to originate the route in BGP. This could be a static route or a route coming from any routing protocol. A static route to null0 if often uses for aggregate routes, as follow:
ip route 102.220.128.0 255.255.254.0 null0
Regards,
02-17-2024 04:09 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide