router id 172.16.16.60; log "/var/log/bird/bird6.log" all; debug protocols { states, routes, filters, interfaces } protocol kernel { #import none; export all; learn; preference 254; } protocol device { # defaults... scan time 10; } protocol direct { interface "vlan2200"; }; filter ospfexport { if (source = RTS_DEVICE) || (net = 0.0.0.0/0) then accept; else reject; }; protocol ospf { export filter ospfexport; import all; area 0 { interface "lo" { stub; }; # BGP vlan interface "vlan2008" { stub; }; interface "vlan2210" { stub; }; interface "vlan2211" { stub; }; #interface "vlan2200" { # type broadcast; #}; interface "vlan2220" { }; interface "vlan2221" { }; }; }; ### # eBGP to R5 table originate_table; protocol static originate { table originate_table; import all; # Access subnets route 2400:5000:6148:2aa0::/60 blackhole; # Router subnets route 2400:5000:6148:2af0::/60 blackhole; } protocol bgp ebgp_r5 { table originate_table; neighbor 2400:5000:6148:2acc::5 as 64090; local 2400:5000:6148:2acc::60 as 65044; import all; import keep filtered on; export where source = RTS_STATIC ; } protocol pipe p_mater_to_r5 { table master; peer table originate_table; import where source = RTS_BGP; export none; } #### # iBGP ## R10 protocol bgp ibgp_r10 { import none; export where source = RTS_BGP; local 2400:5000:6148:2af0::60 as 65044; neighbor 2400:5000:6148:2af0::10 as 65044; } protocol bgp ibgp_r20 { import none; export where source = RTS_BGP; local 2400:5000:6148:2af0::60 as 65044; neighbor 2400:5000:6148:2af0::20 as 65044; } protocol bgp ibgp_r40 { import none; export where source = RTS_BGP; local 2400:5000:6148:2af3::60 as 65044; neighbor 2400:5000:6148:2af3::40 as 65044; } protocol bgp ibgp_r50 { import none; export where source = RTS_BGP; local 2400:5000:6148:2af0::60 as 65044; neighbor 2400:5000:6148:2af2::50 as 65044; }