BIRD

CONFIGURATION

/etc/bird.conf

include "/etc/bird.d/*.conf";

protocol direct direct1 {
    interface "lo";
        debug all;
        export none;
        import where net ~ MY_NETWORKS;  # from the protocol to the RIB
}

protocol bgp NORTH {
        disabled no;
        description "North peer";
        neighbor fd00::1 as 65000;
        source address fd00::2;
        import all;
        export none;   # From the routing table to protocol
        direct;
        next hop self;
        local as 64512;
}

/etc/bird.d/anycast-networks.conf

define MY_NETWORKS =
   [
       192.168.0.0/24{32,32},
       192.168.1.0/24{32,32}

   ];

REMOTE CONTROL

$ sudo birdc6

> show status
> show protocols all
> show route
> configure # reload config file

Show advertised routes:

bird>
bird> show protocols
Name       Proto      Table      State  Since         Info
device1    Device     ---        up     2019-07-18 17:57:57 1563465477
bfd1       BFD        ---        up     2019-07-18 17:57:57 1563465477
bgp_ipv4   BGP        ---        up     2019-07-18 17:58:02 1563465482  Established
direct1    Direct     ---        up     2019-07-18 17:57:57 1563465477
bird>
bird> show route export  bgp_ipv4
bird>

More commands

show protocols                    # list all configured protocols
show protocol bgp_up2             # get the status information for protocol bgp_up2
show protocol all bgp_up2         # get full status information for protocol bgp_up2
show route export bgp_up2         # list all exported networks to peer bgp_up2
show route all export bgp_up2     # list all exported networks to peer bgp_up2 and their attributes
show route for 185.117.82.104     # get the routes for 185.117.82.104
show route all for 185.117.82.104 # get the routes for 185.117.82.104 and its path info
show route filtered               # list all prefixes that are filtered 
show route protocol bgp_up2       # list all prefixes that you receive from peer bgp_up2
show memory                       # get the memory usage of Bird