router id 172.16.16.5; 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 "vlan2100"; }; 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; }; interface "vlan2004" { }; interface "vlan2007" { }; interface "vlan2008" { stub; }; #interface "vlan2100" { type broadcast; }; }; }; ### # eBGP to R60 table t_originate; protocol static originate { table t_originate; import all; # Access subnets route 2400:5000:6148:2ae0::/60 blackhole; # Router subnets route 2400:5000:6148:2ab0::/60 blackhole; } protocol bgp ebgp_r60 { table t_originate; local 2400:5000:6148:2acc::5 as 64090; neighbor 2400:5000:6148:2acc::60 as 65044; import all; import keep filtered on; export where source = RTS_STATIC; } protocol pipe p_master_to_r60 { table master; peer table t_originate; import where source = RTS_BGP; export none; } #### # iBGP ## R15 protocol bgp ibgp_r15 { import none; export where source = RTS_BGP; local 2400:5000:6148:2ab1::5 as 64090; neighbor 2400:5000:6148:2ab1::15 as 64090; } ## R35 protocol bgp ibgp_r35 { import none; export where source = RTS_BGP; local 2400:5000:6148:2ab3::5 as 64090; neighbor 2400:5000:6148:2ab3::35 as 64090; } ## R45 protocol bgp ibgp_r45 { import none; export where source = RTS_BGP; local 2400:5000:6148:2ab1::5 as 64090; neighbor 2400:5000:6148:2ab1::45 as 64090; } ## R25 protocol bgp ibgp_r25 { import none; export where source = RTS_BGP; local 2400:5000:6148:2ab1::5 as 64090; neighbor 2400:5000:6148:2ab2::25 as 64090; }