<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I am trying to distribute 2 static routes between 2 hosts, not directly connected, and I am having hard time to make it works … </div><div class=""><br class=""></div><div class="">host1 10.10.1.1 (eth0) own subnet 192.168.1.0/24 ( 192.168.1.1 on eth1)</div><div class="">host2 10.10.2.1 (eth0) own subnet 192.168.2.0/24 ( 192.168.2.1 on eth1)</div><div class=""><br class=""></div><div class="">I get the following error : </div><div class=""><br class=""></div><div class=""><div class="">host1 bird: bgp1 < rejected by protocol 192.168.2.0/24 unreachable</div><div class="">host1 bird: bgp1 > updated [best] 192.168.2.0/24 unreachable</div></div><div class=""><br class=""></div><div class="">Bellow the bird.conf of both hosts :</div><div class=""><br class=""></div><div class=""><div class="">log syslog all;</div><div class="">router id 10.10.1.1;</div><div class="">debug protocols all;</div><div class="">protocol direct {</div><div class=""> interface "*"; # Restrict network interfaces it works with</div><div class="">}</div><div class="">protocol kernel {</div><div class=""> learn; # Learn all alien routes from the kernel</div><div class=""> #persist; # Don't remove routes on bird shutdown</div><div class=""> scan time 20; # Scan kernel routing table every 20 seconds</div><div class=""> import all; # Default is import all</div><div class=""> export all; # Default is export none</div><div class="">}</div><div class="">protocol device {</div><div class=""> scan time 10; # Scan interfaces every 10 seconds</div><div class="">}</div><div class="">protocol static {</div><div class=""> debug all;</div><div class=""> route 192.168.1.0/24 via 10.10.2.254;</div><div class=""> export all;</div><div class="">}</div><div class="">protocol bgp {</div><div class=""> multihop;</div><div class=""> #gateway recursive;</div><div class=""> import all;</div><div class=""> export all;</div><div class=""> #export where proto = "static1";</div><div class=""> local as 3000;</div><div class=""> neighbor 10.10.2.1 as 3000;</div><div class=""> #next hop self;</div><div class="">}</div></div><div class=""><br class=""></div><div class="">—</div><div class=""><br class=""></div><div class=""><div class="">log syslog all;</div><div class="">router id 10.10.2.1;</div><div class="">protocol direct {</div><div class=""> interface "*"; # Restrict network interfaces it works with</div><div class="">}</div><div class="">protocol kernel {</div><div class=""> learn; # Learn all alien routes from the kernel</div><div class=""> #persist; # Don't remove routes on bird shutdown</div><div class=""> scan time 20; # Scan kernel routing table every 20 seconds</div><div class=""> import all; # Default is import all</div><div class=""> export all; # Default is export none</div><div class="">}</div><div class="">protocol device {</div><div class=""> scan time 10; # Scan interfaces every 10 seconds</div><div class="">}</div><div class="">protocol static {</div><div class=""> route 192.168.2.0/24 via 10.10.1.254;</div><div class=""> export all;</div><div class="">}</div><div class="">protocol bgp {</div><div class=""> multihop;</div><div class=""> #gateway recursive;</div><div class=""> import all;</div><div class=""> #export where proto = "static1";</div><div class=""> export all;</div><div class=""> local as 3000;</div><div class=""> neighbor 10.10.1.1 as 3000;</div><div class=""> #next hop self;</div><div class="">}</div></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">—</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Cédric Lemarchand</div></div>
</div>
<br class=""></div></body></html>