Unix virtual interfaces
Hello, I'm running bird 2.0.2 on centOS I've configured 2 virtual interfaces (eth1:1 and lo:1) When I run show protocol I don't see them. Are virtual interfaces supported by bird? I need it in order to advertise by BGP lo:1 R --- # ifconfig eth0: flags=4163mtu 1500 inet 163.162.230.198 netmask 255.255.255.240 broadcast 163.162.230.207 inet6 fe80::2e:a6ff:fe66:5a27 prefixlen 64 scopeid 0x20 ether 02:2e:a6:66:5a:27 txqueuelen 1000 (Ethernet) RX packets 14271 bytes 996507 (973.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2746 bytes 314846 (307.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163 mtu 1500 inet 192.168.200.8 netmask 255.255.255.0 broadcast 192.168.200.255 inet6 fe80::9034:56ff:feee: prefixlen 64 scopeid 0x20 ether 92:34:56:ee:ee:ee txqueuelen 1000 (Ethernet) RX packets 16109 bytes 1066648 (1.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 7805 bytes 514801 (502.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1:1: flags=4163 mtu 1500 inet 10.10.10.10 netmask 255.255.255.255 broadcast 10.255.255.255 ether 92:34:56:ee:ee:ee txqueuelen 1000 (Ethernet) lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1 (Local Loopback) RX packets 6 bytes 416 (416.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6 bytes 416 (416.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo:1: flags=73 mtu 65536 inet 163.162.35.89 netmask 255.255.255.255 loop txqueuelen 1 (Local Loopback) --- # birdc show interfaces BIRD 2.0.2 ready. lo up (index=1) MultiAccess AdminUp LinkUp Loopback Ignored MTU=65536 127.0.0.1/8 (Preferred, scope host) 163.162.35.89/32 (scope univ) ::1/128 (Preferred, scope host) eth0 up (index=2) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 163.162.230.198/28 (Preferred, scope univ) fe80::2e:a6ff:fe66:5a27/64 (Preferred, scope link) eth1 up (index=3) MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 192.168.200.8/24 (Preferred, scope site) 10.10.10.10/32 (scope site) fe80::9034:56ff:feee:/64 (Preferred, scope link) Rr
Re: BGP import route
Ok. I have installed bird via epel on Centos The router sending BGP announcement is Juniper Open Contrail Virtual Router (on Openstack). I downloaded and installed the 2.0.2 and used this config: - # more /usr/local/etc/bird.conf log syslog all; log stderr all; log "/var/log/bird.logg" all; debug protocols all; protocol kernel { ipv4 { import all; export all; }; persist; scan time 20; } 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; ipv4 { import all; export all; }; } - And finally I see all routes: - [root@vm-1 bird-2.0.2]# birdc show route BIRD 2.0.2 ready. Table master4: 163.162.35.131/32unicast [bgp1 20:48:36.342] * (100) [AS64520?] via 192.168.200.1 on eth1 163.162.35.80/32 unicast [bgp1 20:48:36.342] * (100) [AS3269i] via 192.168.200.1 on eth1 100.64.3.28/32 unicast [bgp1 20:48:36.342] * (100) [AS64520?] via 192.168.200.1 on eth1 ... - Rr 2018-04-11 19:21 GMT+02:00 Jan Maria Matějka <jan.mate...@nic.cz>: > Hello! > > First of all, we don't support this old version. Please upgrade, either to > 1.6.4 or to 2.0.2. > > Second, the other side seems to send multiprotocol NLRI to you. BIRD in > 1.x versions AFAIK does not support this extension and should not announce > it. What is the remote software? > > Writing from my phone with no access to source code, trying to recall it > from my memory. I might be wrong. > > Maria > > Quidquid latine dictum sit, altum videtur. > > -Original Message- > From: RICCARDO RUSSO <riccardo.russ...@gmail.com> > To: bird-users@network.cz > Sent: Wed, 11 Apr 2018 6:10 PM > Subject: BGP import route > > 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 kernel1 < interface lo goes up > 2018-04-11 17:46:53 kernel1 < interface eth0 goes up > 2018-04-11 17:46:53 kernel1 < interface eth1 goes up > 2018-04-11 17:46:53 kernel1: State changed to up > 2018-04-11 17:46:53 bgp1: Started > 2018-04-11 17:46:53 bgp1: Connect delayed by 5 seconds > 2018-04-11 17:46:53 kernel1: Scanning routing table > 2018-04-11 17:46:53 kernel1: 0.0.0.0/0: [alien] ignored > 2018-04-11 17:46:53 kernel1: 192.168.44.0/24: [alien] ignored > 2018-04-11 17:46:53 kernel1: Pruning table master > 2018-04-11 17:46:57 bgp1: Connecting to 192.168.200.1 from local > address 192.168.200.6 > 2018-04-11 17:46:57 bgp1: Connected > 2018-04-11 17:46:57 bgp1: Sending > OPEN(ver=4,as=64521,hold=240,id=c0a8c806) > 2018-04-11 17:46:57 bgp1: Connection closed > 2018-04-11 17:46:57 bgp1: Connect delayed by 5 seconds > 2018-04-11 17:47:03 device1: Scanning interfaces > 2018-04-11 17:47:03 bgp1: Connecting to 192.168.200.1 from local > address 192.168.200.6 > 2018-04-11 17:47:03 bgp1: Connected > 2018-04-11 17:47:03 bgp1: Sending > OPEN(ver=4,as=64521,hold=240,id=c0a8c806) > 2018-04-11 17:47:03 bgp1: Got OPEN(as=64520,hold=90,id=a3a2e686) > 2018-04-11 17:47:03 bgp1: Sending KEEPALIVE > 2018-04-11 17:47:03 bgp1: Got KEEPALIVE > 2018-04-11 17:47:03 bgp1: BGP session established > 2018-04-11 17:47:03 bgp1: Connected to table master > 2018-04-11 17:47:03 bgp1: State changed t
BGP import route
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 kernel1 < interface lo goes up 2018-04-11 17:46:53 kernel1 < interface eth0 goes up 2018-04-11 17:46:53 kernel1 < interface eth1 goes up 2018-04-11 17:46:53 kernel1: State changed to up 2018-04-11 17:46:53 bgp1: Started 2018-04-11 17:46:53 bgp1: Connect delayed by 5 seconds 2018-04-11 17:46:53 kernel1: Scanning routing table 2018-04-11 17:46:53 kernel1: 0.0.0.0/0: [alien] ignored 2018-04-11 17:46:53 kernel1: 192.168.44.0/24: [alien] ignored 2018-04-11 17:46:53 kernel1: Pruning table master 2018-04-11 17:46:57 bgp1: Connecting to 192.168.200.1 from local address 192.168.200.6 2018-04-11 17:46:57 bgp1: Connected 2018-04-11 17:46:57 bgp1: Sending OPEN(ver=4,as=64521,hold=240,id=c0a8c806) 2018-04-11 17:46:57 bgp1: Connection closed 2018-04-11 17:46:57 bgp1: Connect delayed by 5 seconds 2018-04-11 17:47:03 device1: Scanning interfaces 2018-04-11 17:47:03 bgp1: Connecting to 192.168.200.1 from local address 192.168.200.6 2018-04-11 17:47:03 bgp1: Connected 2018-04-11 17:47:03 bgp1: Sending OPEN(ver=4,as=64521,hold=240,id=c0a8c806) 2018-04-11 17:47:03 bgp1: Got OPEN(as=64520,hold=90,id=a3a2e686) 2018-04-11 17:47:03 bgp1: Sending KEEPALIVE 2018-04-11 17:47:03 bgp1: Got KEEPALIVE 2018-04-11 17:47:03 bgp1: BGP session established 2018-04-11 17:47:03 bgp1: Connected to table master 2018-04-11 17:47:03 bgp1: State changed to feed 2018-04-11 17:47:03 bgp1: State changed to up 2018-04-11 17:47:03 bgp1: Sending End-of-RIB 2018-04-11 17:47:03 bgp1: Got UPDATE 2018-04-11 17:47:03 bgp1: Got UPDATE 2018-04-11 17:47:03 bgp1: Got UPDATE 2018-04-11 17:47:03 bgp1: Got UPDATE 2018-04-11 17:47:03 bgp1: Got UPDATE 2018-04-11 17:47:03 ... # birdc show protocols all bgp1 BIRD 1.4.5 ready. name prototablestate since info bgp1 BGP master up 17:47:03Established Preference: 100 Input filter: ACCEPT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filteredignored 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 0x: 02 Next Hop (3), length: 4, Flags [T]: 192.168.200.1 0x: c0a8 c801 Multi Exit Discriminator (4), length: 4, Flags [O]: 100 0x: 0064 AS Path (2), length: 4, Flags [T]: 64520 0x: 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 0x: 0001 0104 c0a8 c801 0020 a3a2 e6c7