log "/var/log/bird.log" { debug, trace, info, remote, warning, error, auth, fatal, bug }; router id 192.168.1.210; debug protocols all; evpn table evpntab; eth table etab; protocol device { } protocol direct { #ipv4; # Connect to default IPv4 table ipv6; # ... and to default IPv6 table } protocol kernel { ipv4 { # Connect protocol to IPv4 table by channel export all; # Export to protocol. default is export none }; } filter VXLAN_SRC { if net ~ [2001:db8:ffff:1ad::401/128, 2001:db8:ffff:1ad::201/128] then { krt_prefsrc = 2001:db8:ffff:1ad::501; accept; } accept; } protocol kernel { ipv6 { import all; #export filter VXLAN_SRC; export all; }; } protocol static { ipv4; # Again, IPv4 channel with default options } filter SPINE_LO { if net.len = 128 then accept; reject; } protocol bgp SPINE1_BGP { ipv6 { import all; export filter SPINE_LO; }; local 2001:db8:ffff:1f3::9 as 4201005001; neighbor 2001:db8:ffff:1f3::8 as 4201003001; } protocol bgp SPINE2_BGP { ipv6 { import all; export filter SPINE_LO; }; local 2001:db8:ffff:1f3::109 as 4201005001; neighbor 2001:db8:ffff:1f3::108 as 4201003001; disabled; } protocol bgp SPINE1_EVPN { evpn { import all; #export filter { bgp_next_hop = 2001:db8:ffff:1ad::501; accept; }; export all; next hop address 2001:db8:ffff:1ad::501; }; local 2001:db8:ffff:1aa::501 as 4201005001; neighbor 2001:db8:ffff:1aa::1 as 4201003001; multihop; } protocol bgp SPINE2_EVPN { evpn { import all; export none; }; local 2001:db8:ffff:1aa::501 as 4201005001; neighbor 2001:db8:ffff:1aa::2 as 4201003001; multihop; disabled; } protocol bridge { eth { table etab; import all; export all; }; bridge device "br1"; vlan filtering; debug all; }; protocol evpn { eth { table etab; import all; export all; }; evpn; encapsulation vxlan { tunnel device "vxlan100"; #router address 2001:db8:ffff:1f3::9; router address 2001:db8:ffff:1ad::501; }; rd 1005001:10040; import target [(rt, 1004001, 10040), (rt, 1004003, 10040)]; #import target (rt, 1004003, 10040); export target (rt, 1005001, 10040); vlan 40 { vni 10040; vid 40; }; # vni 10040; vid 40; debug all; };