02-25-2019 08:25 AM
Hello dear community of CISCO,
My name is Vinicio. I am currently configuring a Cisco ASR9010 device but I am having difficulty configuring the BGP protocol, I would greatly appreciate it if someone could give me the steps and the sequence of steps to configure BGP.
The data of my router are the following.
* ASR 9010 8 Line Card Slot Chassis with V1 DC PEM
* Cisco IOS XR Software, Version 5.3.4
02-25-2019 08:30 AM
find below an example of the configuration i am trying to applied on my router
prefix-set PASS
192.168.232.0/24,
192.168.233.0/24,
192.168.234.0/24,
192.168.235.0/24
end-set
!
route-policy GCA
pass
end-policy
!
route-policy incoming
pass
end-policy
!
route-policy outgoing
pass
end-policy
!
router bgp 100000
address-family ipv4 unicast
network 192.168.232.0/24
network 192.168.233.0/24
network 192.168.234.0/24
network 192.168.235.0/24
!
neighbor 10.0.11.1
remote-as 200000
update-source GigabitEthernet0/1/0/5
address-family ipv4 unicast
send-community-ebgp
route-policy incoming in
route-policy GCA out
send-extended-community-ebgp
default-originate
next-hop-self
!
!
!
end
02-25-2019 08:56 AM
Hello,
router bgp 100000
address-family ipv4 unicast
network 192.168.232.0/24
network 192.168.233.0/24
network 192.168.234.0/24
network 192.168.235.0/24
!
neighbor 10.0.11.1
remote-as 200000
update-source GigabitEthernet0/1/0/5
address-family ipv4 unicast
send-community-ebgp
route-policy incoming in
route-policy GCA out
send-extended-community-ebgp
default-originate
next-hop-self
there is a special case for apply on this interface? Because if your interfaces fail, your routing table will reset entries. I will suggest to use a loopbackup for it to more stability.
02-25-2019 08:31 AM
Try this link and let me know if it helps.
02-25-2019 09:05 AM
What is the issue you are having?
is the neighbor down? not able to establish?
is the neighbor up? not able to advertise networks?
02-25-2019 10:20 AM
02-25-2019 10:23 AM
Please ping 10.0.11.1 sourcing ip of the gig interface, verify connectivity
show tcp brief | inc 179 , please verify that port is open
this looks like ebgp, please remember ebgp needs to be 1 hop away, packet is sent with ttl 1
under neighbor we can try
ebgp-multihop 10
let me know if you have any questions
Thanks!
02-25-2019 10:48 AM
@tkarnani, thanks for the reply. I attach the results of the commands.
02-25-2019 11:08 AM
it looks like a tcp session is closed sourced from 2.2.2.2, is this the correct ip?
02-25-2019 11:34 AM
that is a Loopback0 interface. What IP address should be assigned?
excuse me asking, what happens is that I'm not an expert in BGP.
02-25-2019 11:44 AM
BGP relies on TCP to handle its communication.
from the show tcp session it looks like there is a BGP session trying to establish from the loopback interface 2.2.2.2 rather than the gigabit interface which you specified.
can we check the forwarding to verify that we are using the gig interface?
show cef 10.0.11.1 detail
also can you provide a traceroute to 10.0.11.1
traceroute 10.0.11.1
02-25-2019 12:53 PM
@tkarnani , i made some changes in the configuration.
router bgp 267768
address-family ipv4 unicast
network 192.168.232.0/24
network 192.168.233.0/24
network 192.168.234.0/24
network 192.168.235.0/24
!
neighbor 10.0.11.1
remote-as 27708
address-family ipv4 unicast
send-community-ebgp
route-policy incoming in
route-policy GCA out
send-extended-community-ebgp
default-originate
next-hop-self
end
With these changes I see that already tcp has an established. But the bgp session is not yet established.
02-26-2019 06:40 AM
if TCP is up that is a step in the right direction.
what is the neighborship status?
under show bgp ipv4 unicast summary, what state do we see?
02-26-2019 07:24 AM
02-26-2019 07:25 AM
so right now the neighbor seems to be up for 00:04:38 minutes and receiving 1 prefix
show bgp ipv4 unicast
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