gateway recursive

Mikhail Mayorov mm at tagan.ru
Mon Aug 7 17:49:56 CEST 2017


Hi all!

Please help me with recursion to caclulate bgp_next_hop using IGP.
I have 2 router "A" and "B" connected to each other via iBGP. Each of 
the routers has connection to the outside world in different AS and get 
full view. "A" has a eBGP session to the neighbor "A2" and "B" has a 
eBGP session to the neighbor "B2". I configure "gateway recursive; 
direct;" on iBGP.
In this case, all the routes from the A2 got to B via A are as unreachable.

A IP: 95.174.97.1/26
A2 IP: 188.43.24.90/30
B: 95.174.97.33/26
B2: 87.245.238.204/31
This is debug from birdcl router B:

bird ~ # birdcl 'show route for 37.231.192.1' table master all
BIRD 1.6.3 ready.
37.231.192.0/22    via 87.245.238.204 on vlan91-retn [retn_ipv4 
07.08.2017 11:06:57] * (100) [AS47589i]
	Type: BGP unicast univ
	BGP.origin: IGP
	BGP.as_path: 9002 15412 9155 47589
	BGP.next_hop: 87.245.238.204
	BGP.med: 999
	BGP.local_pref: 100
	BGP.community: (9002,9002) (9002,64679) (49037,0) (49037,10001)
                    unreachable [twix_ipv4 07.08.2017 17:17:17 from 
95.174.97.1] (100) [AS47589i]
	Type: BGP unicast univ
	BGP.origin: IGP
	BGP.as_path: 20485 15412 9155 47589
	BGP.next_hop: 188.43.24.90
	BGP.med: 999
	BGP.local_pref: 100
	BGP.community: (20485,22007) (20485,22307) (49037,0)
bird ~ # birdcl 'show route for 188.43.24.90' table master all
BIRD 1.6.3 ready.
188.43.24.88/30    via 95.174.97.1 on vlan8 [twix_ipv4 07.08.2017 
17:17:17] * (100) [i]
	Type: BGP unicast univ
	BGP.origin: IGP
	BGP.as_path:
	BGP.next_hop: 95.174.97.1
	BGP.med: 0
	BGP.local_pref: 500
	BGP.community: (49037,49037)
bird ~ # birdcl 'show route for 95.174.97.1' table master all
BIRD 1.6.3 ready.
95.174.97.0/26     dev vlan8 [direct1 07.08.2017 00:20:09] * (240)
	Type: device unicast univ
                    via 95.174.97.1 on vlan8 [twix_ipv4 07.08.2017 
17:17:17] (100) [i]
	Type: BGP unicast univ
	BGP.origin: IGP
	BGP.as_path:
	BGP.next_hop: 95.174.97.1
	BGP.med: 0
	BGP.local_pref: 500
	BGP.community: (49037,49037)

-- 
Regards,
Mikhail V. Majorov



More information about the Bird-users mailing list