BGP import route
RICCARDO RUSSO
riccardo.russo79 at gmail.com
Wed Apr 11 17:51:40 CEST 2018
Hello,
I'm not able to import route from BGP (CentOS 7). In log file I read "Got
UPDATE" but "import updates" is always 0. With TCPDUMP I see that BGP
receive the routes
Rr
------------------------------------------------------------
# more bird.conf
log syslog all;
log stderr all;
log "/var/log/bird.logg" all;
debug protocols all;
protocol kernel {
persist; # Don't remove routes on bird shutdown
scan time 20; # Scan kernel routing table every 20 seconds
}
protocol device {
scan time 10; # Scan interfaces every 10 seconds
}
router id 192.168.200.6;
protocol bgp bgp1 {
local as 64521;
neighbor 192.168.200.1 as 64520;
import filter all;
}
------------------------------------------------------------
------------------------------------------------------------
# tail -f /var/log/bird.logg
2018-04-11 17:46:53 <TRACE> kernel1 < interface lo goes up
2018-04-11 17:46:53 <TRACE> kernel1 < interface eth0 goes up
2018-04-11 17:46:53 <TRACE> kernel1 < interface eth1 goes up
2018-04-11 17:46:53 <TRACE> kernel1: State changed to up
2018-04-11 17:46:53 <TRACE> bgp1: Started
2018-04-11 17:46:53 <TRACE> bgp1: Connect delayed by 5 seconds
2018-04-11 17:46:53 <TRACE> kernel1: Scanning routing table
2018-04-11 17:46:53 <TRACE> kernel1: 0.0.0.0/0: [alien] ignored
2018-04-11 17:46:53 <TRACE> kernel1: 192.168.44.0/24: [alien] ignored
2018-04-11 17:46:53 <TRACE> kernel1: Pruning table master
2018-04-11 17:46:57 <TRACE> bgp1: Connecting to 192.168.200.1 from local
address 192.168.200.6
2018-04-11 17:46:57 <TRACE> bgp1: Connected
2018-04-11 17:46:57 <TRACE> bgp1: Sending
OPEN(ver=4,as=64521,hold=240,id=c0a8c806)
2018-04-11 17:46:57 <TRACE> bgp1: Connection closed
2018-04-11 17:46:57 <TRACE> bgp1: Connect delayed by 5 seconds
2018-04-11 17:47:03 <TRACE> device1: Scanning interfaces
2018-04-11 17:47:03 <TRACE> bgp1: Connecting to 192.168.200.1 from local
address 192.168.200.6
2018-04-11 17:47:03 <TRACE> bgp1: Connected
2018-04-11 17:47:03 <TRACE> bgp1: Sending
OPEN(ver=4,as=64521,hold=240,id=c0a8c806)
2018-04-11 17:47:03 <TRACE> bgp1: Got OPEN(as=64520,hold=90,id=a3a2e686)
2018-04-11 17:47:03 <TRACE> bgp1: Sending KEEPALIVE
2018-04-11 17:47:03 <TRACE> bgp1: Got KEEPALIVE
2018-04-11 17:47:03 <TRACE> bgp1: BGP session established
2018-04-11 17:47:03 <TRACE> bgp1: Connected to table master
2018-04-11 17:47:03 <TRACE> bgp1: State changed to feed
2018-04-11 17:47:03 <TRACE> bgp1: State changed to up
2018-04-11 17:47:03 <TRACE> bgp1: Sending End-of-RIB
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE
2018-04-11 17:47:03 <TRACE> bgp1: Got UPDATE
2018-04-11 17:47:03 <TRACE> ...
------------------------------------------------------------
------------------------------------------------------------
# birdc show protocols all bgp1
BIRD 1.4.5 ready.
name proto table state since info
bgp1 BGP master up 17:47:03 Established
Preference: 100
Input filter: ACCEPT
Output filter: REJECT
Routes: 0 imported, 0 exported, 0 preferred
Route change stats: received rejected filtered ignored
accepted
Import updates: 0 0 0 0
0
Import withdraws: 0 0 --- 0
0
Export updates: 0 0 0 ---
0
Export withdraws: 0 --- --- ---
0
BGP state: Established
Neighbor address: 192.168.200.1
Neighbor AS: 64520
Neighbor ID: 163.162.230.134
Neighbor caps: restart-aware
Session: external
Source address: 192.168.200.6
Hold timer: 62/90
Keepalive timer: 22/30
------------------------------------------------------------
------------------------------------------------------------
# tcpdump -i eth1 tcp port 179 -vvv -XX
17:37:51.260061 IP (tos 0x0, ttl 1, id 49246, offset 0, flags [DF], proto
TCP (6), length 1353)
192.168.200.1.bgp > vm-1.59873: Flags [P.], cksum 0xad25 (correct), seq
61:1362, ack 69, win 210, options [nop,nop,TS val 1643220008 ecr 25496328],
length 1301: BGP
Update Message (2), length: 66
Origin (1), length: 1, Flags [T]: Incomplete
0x0000: 02
Next Hop (3), length: 4, Flags [T]: 192.168.200.1
0x0000: c0a8 c801
Multi Exit Discriminator (4), length: 4, Flags [O]: 100
0x0000: 0000 0064
AS Path (2), length: 4, Flags [T]: 64520
0x0000: 0201 fc08
Multi-Protocol Reach NLRI (14), length: 14, Flags [OE]:
AFI: IPv4 (1), SAFI: Unicast (1)
nexthop: 192.168.200.1, nh-length: 4, no SNPA
163.162.230.199/32
0x0000: 0001 0104 c0a8 c801 0020 a3a2 e6c7
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180411/e0b57598/attachment.html>
More information about the Bird-users
mailing list