<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:228542726;
mso-list-type:hybrid;
mso-list-template-ids:150343870 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1
{mso-list-id:431976747;
mso-list-type:hybrid;
mso-list-template-ids:2078421812 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello Bird Users,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Hope you will be able to help me. I have 8 bgp peers which use the same bgp template with below import filter:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">filter IMPORT__SPINE__TO__LEAF<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> bgp_community.add(LOOP_DETECTION);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> <b>gw = bgp_next_hop; -> I use it to set ipv6 bgp next hop to global ipv6 address (not link local)<o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> if (net = 0.0.0.0/0 || net = ::/0) then<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> reject;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> … <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> else<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> reject;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">1.First Peer -> this look good<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">r14.spine101.fra02.fab> bird show protocols all 2a02:26f0:3700:1101::1__r01.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">BIRD 2.0.7 ready.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Name Proto Table State Since Info<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1101::1__r01.leaf101 BGP --- up 09:58:55.848
<b>Established</b><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">…<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Channel ipv6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> State: UP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Table: master6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Preference: 100<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Input filter: IMPORT__SPINE__TO__LEAF<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Output filter: EXPORT__SPINE__TO__LEAF<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> <b>Routes: 27 imported, 4 exported, 25 preferred -> I expect to import 27 routes<o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Route change stats: received rejected filtered ignored accepted<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Import updates: 27 0 0 0 27<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Import withdraws: 0 0 --- 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Export updates: 15846 50 15791 --- 5<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Export withdraws: 11 --- --- --- 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> BGP Next hop: 2a02:26f0:3700:1101::<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">2.Second Peer -> this does not look good:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">r14.spine101.fra02.fab> bird show protocols all 2a02:26f0:3700:1102::1__r02.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">BIRD 2.0.7 ready.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Name Proto Table State Since Info<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1102::1__r02.leaf101 BGP --- up 09:58:56.676
<b> Established<o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Channel ipv6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> State: UP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Table: master6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Preference: 100<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Input filter: IMPORT__SPINE__TO__LEAF<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Output filter: EXPORT__SPINE__TO__LEAF<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"> Routes: 4 imported, 4 exported, 0 preferred -> bird imports only 4 routes<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"> Route change stats: received rejected filtered ignored accepted<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"> Import updates: 27 0 23 0 4 -> bird reject 23 routes<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">After I reload this protocol all looks good and bird import 27 routes<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">In logs I see “</span></b><span style="font-size:9.0pt">Invalid gw address”<b>, therefore I suspect issue with “gw = bgp_next_hop”<o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2020-07-22 09:58:56.801 <ERR> filters, line 169: Invalid gw address<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2020-07-22 09:58:56.801 <ERR> filters, line 169: Invalid gw address<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2020-07-22 09:58:56.801 <ERR> filters, line 169: Invalid gw address<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2020-07-22 09:58:56.801 <ERR> filters, line 169: Invalid gw address<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2020-07-22 09:58:56.801 <ERR> filters, line 169: Invalid gw address<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">I am able to reproduce issue on more routers, please find below out from another router:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">r16.spine101.fra02.fab> show bgp summary -> <b>it parse “show protocols all”</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">IPv6 Peers: 10 Down: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Peer AS State (Im/Filt/Exp/Pref) Up/Down Protocol<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:211:: 20940 Established (8480/0/35/8480) 00:36:46 2a02:26f0:3700:211::__r01.border101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:311:: 20940 Established (7131/0/34/7) 00:36:48 2a02:26f0:3700:311::__r02.border101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1301::1 20940 Established (28/0/4/26) 00:36:51 2a02:26f0:3700:1301::1__r01.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">2a02:26f0:3700:1302::1 20940 Established (4/0/4/0) 00:36:49 2a02:26f0:3700:1302::1__r02.leaf101 -> 4 routes are imported but should be 28<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1303::1 20940 Established (28/0/4/1) 00:36:53 2a02:26f0:3700:1303::1__r03.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">2a02:26f0:3700:1304::1 20940 Established (4/0/4/0) 00:36:50 2a02:26f0:3700:1304::1__r04.leaf101<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1305::1 20940 Established (28/0/4/1) 00:36:47 2a02:26f0:3700:1305::1__r05.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1306::1 20940 Established (28/0/4/1) 00:36:46 2a02:26f0:3700:1306::1__r06.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1307::1 20940 Established (28/0/4/1) 00:36:47 2a02:26f0:3700:1307::1__r07.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">2a02:26f0:3700:1308::1 20940 Established (28/0/4/1) 00:36:46 2a02:26f0:3700:1308::1__r08.leaf101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">After protocol reload all looks good.<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Did you face similar problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt">Dariusz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>