FYI, Bird version is 1.4.5. — Cédric Lemarchand
> On 23 Feb 2017, at 14:45, Cedric Lemarchand <[email protected]> wrote: > > Hello, > > I am trying to distribute 2 static routes between 2 hosts, not directly > connected, and I am having hard time to make it works … > > host1 10.10.1.1 (eth0) own subnet 192.168.1.0/24 ( 192.168.1.1 on eth1) > host2 10.10.2.1 (eth0) own subnet 192.168.2.0/24 ( 192.168.2.1 on eth1) > > I get the following error : > > host1 bird: bgp1 < rejected by protocol 192.168.2.0/24 unreachable > host1 bird: bgp1 > updated [best] 192.168.2.0/24 unreachable > > Bellow the bird.conf of both hosts : > > log syslog all; > router id 10.10.1.1; > debug protocols all; > protocol direct { > interface "*"; # Restrict network interfaces it works with > } > protocol kernel { > learn; # Learn all alien routes from the kernel > #persist; # Don't remove routes on bird shutdown > scan time 20; # Scan kernel routing table every 20 seconds > import all; # Default is import all > export all; # Default is export none > } > protocol device { > scan time 10; # Scan interfaces every 10 seconds > } > protocol static { > debug all; > route 192.168.1.0/24 via 10.10.2.254; > export all; > } > protocol bgp { > multihop; > #gateway recursive; > import all; > export all; > #export where proto = "static1"; > local as 3000; > neighbor 10.10.2.1 as 3000; > #next hop self; > } > > — > > log syslog all; > router id 10.10.2.1; > protocol direct { > interface "*"; # Restrict network interfaces it works with > } > protocol kernel { > learn; # Learn all alien routes from the kernel > #persist; # Don't remove routes on bird shutdown > scan time 20; # Scan kernel routing table every 20 seconds > import all; # Default is import all > export all; # Default is export none > } > protocol device { > scan time 10; # Scan interfaces every 10 seconds > } > protocol static { > route 192.168.2.0/24 via 10.10.1.254; > export all; > } > protocol bgp { > multihop; > #gateway recursive; > import all; > #export where proto = "static1"; > export all; > local as 3000; > neighbor 10.10.1.1 as 3000; > #next hop self; > } > > > — > Cédric Lemarchand >
