Pipe with scope link

David Haupt pdjopensource at gmail.com
Mon May 4 20:34:38 CEST 2020


Hi

First time user of bird here so please be gentle. :)
I am trying to use bird for a project and I'd like to use it for creating
separate routing tables in linux.

I tried to simplify my setup as much as possible like this:

[root at host1 etc]# cat bird.conf
log stderr all;

router id 172.30.2.20;

protocol device {
  scan time 2;    # Scan interfaces every 2 seconds
}

protocol kernel {
  learn;          # Learn all alien routes from the kernel
  persist;        # Don't remove routes on bird shutdown
  scan time 2;    # Scan kernel routing table every 2 seconds
  graceful restart;
  export all;     # Default is export none
  merge paths;    # enable ecmp
}

protocol direct {
   debug all;
   interface "-dummy0", "dummy1", "eth*", "em*", "en*", "br-mgmt";
}

table extra;
protocol kernel kernelextra {
  learn;
  persist;
  scan time 2;
  table extra;
  kernel table 100;
  import all;
  export all;
}

protocol pipe {
  table extra;
  peer table master;
  import all;
  export all;
}
[root at host1 etc]# ip link add mylink type dummy
[root at host1 etc]# ip link set mylink up
[root at host1 etc]# ip route add 10.0.2.3/32 dev mylink
[root at host1 etc]# systemctl restart bird
[root at host1 etc]# ip r
default via 172.29.0.1 dev eth1
10.0.2.3 dev mylink scope link
172.29.0.0/25 dev eth1 proto kernel scope link src 172.29.0.20
172.30.2.0/25 dev eth0 proto kernel scope link src 172.30.2.20
[root at host1 etc]# ip r show table 100
default via 172.29.0.1 dev eth1 proto bird

Is there any way that I can have the 10.0.2.3/32 route show up in kernel
table 100?

[root at host1 etc]# bird --version
BIRD version 1.6.8

Thank you so much for an awesome piece of software!

//Per
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200504/5f532d88/attachment.htm>


More information about the Bird-users mailing list