<div dir="ltr">Maybe this is caused by 'no ip route' command? So is there some command like 'no ip route XXX type=static'<div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div>:~# vtysh -c 'show ip bgp <a href="http://177.0.1.102/32">177.0.1.102/32</a>'</div><div>BGP routing table entry for <a href="http://177.0.1.102/32">177.0.1.102/32</a></div><div>Paths: (3 available, best #3, table Default-IP-Routing-Table)</div><div> Advertised to non peer-group peers:</div><div> 100.0.28.231 100.0.30.232</div><div> 235 229</div><div> 100.0.30.232 from 100.0.30.232 (1.1.1.252)</div><div> Origin incomplete, localpref 100, valid, external</div><div> Last update: Tue Mar 24 09:08:57 2020</div><br><div> 235 229</div><div> 100.0.28.231 from 100.0.28.231 (100.0.28.231)</div><div> Origin incomplete, localpref 100, valid, external</div><div> Last update: Tue Mar 24 09:08:55 2020</div><br><div> Local</div><div> 0.0.0.0 from 0.0.0.0 (1.1.1.230)</div><div> Origin incomplete, metric 1, localpref 100, weight 32768, valid, sourced, best</div><div> Community: 0:100</div><div> Last update: Tue Mar 24 08:45:32 2020</div><br><div>:~# vtysh -c 'show ip route <a href="http://177.0.1.102/32">177.0.1.102/32</a>'<br></div><div>Routing entry for <a href="http://177.0.1.102/32">177.0.1.102/32</a></div><div> Known via "static", distance 1, metric 0, best</div><div> * directly connected, Vlan100</div><br><div>:~# vtysh -c 'configure terminal' -c 'no ip route <a href="http://177.0.1.102/32">177.0.1.102/32</a> Vlan100'<br></div><div><br></div><div>:~# vtysh -c 'show ip route <a href="http://177.0.1.102/32">177.0.1.102/32</a>'</div><div>% Network not in table</div><div><br></div><div>:~# vtysh -c 'show ip bgp <a href="http://177.0.1.102/32">177.0.1.102/32</a>'</div><div>% Network not in table</div><div><br></div><div>:~# vtysh -c 'show ip bgp <a href="http://177.0.1.102/32">177.0.1.102/32</a>'</div><div>BGP routing table entry for <a href="http://177.0.1.102/32">177.0.1.102/32</a></div><div>Paths: (2 available, best #2, table Default-IP-Routing-Table)</div><div> Advertised to non peer-group peers:</div><div> 100.0.30.232</div><div> 235 229</div><div> 100.0.30.232 from 100.0.30.232 (1.1.1.252)</div><div> Origin incomplete, localpref 100, valid, external, multipath</div><div> Last update: Tue Mar 24 09:25:54 2020</div><br><div> 235 229</div><div> 100.0.28.231 from 100.0.28.231 (100.0.28.231)</div><div> Origin incomplete, localpref 100, valid, external, multipath, best</div><div> Last update: Tue Mar 24 09:25:50 2020</div></div><div><br></div><div>----<div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr">Simon Jones</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Simon Jones <<a href="mailto:batmanustc@gmail.com">batmanustc@gmail.com</a>> 于2020年3月24日周二 上午10:56写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Hi all,</div><div><br></div><div>Now I need a feature, I have to import neighbor as vlink route into bgpd.</div><div><br></div><div>So I use static route like this:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">vtysh<br>ip route <a href="http://1.1.1.1/32" target="_blank">1.1.1.1/32</a> Vlan100<br>redistribute static route-map XXX</blockquote><div><br></div><div>But I encounter a problem:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">before I add static route, there are B route like this:<br>B <a href="http://2.2.2.100/32" target="_blank">2.2.2.100/32</a> [20/0] via 100.0.28.231, Ethernet52, src 1.1.1.230, 3d03h18m<br>after I add static route, there are two route like this:<br>S>* <a href="http://2.2.2.100/32" target="_blank">2.2.2.100/32</a> [1/0] is directly connected, Vlan100<br>B <a href="http://2.2.2.100/32" target="_blank">2.2.2.100/32</a> [20/0] via 100.0.28.231, Ethernet52, src 1.1.1.230, 3d03h18m<br>after I redistribute, there are only one route like this:<br>S>* <a href="http://2.2.2.100/32" target="_blank">2.2.2.100/32</a> [1/0] is directly connected, Vlan100</blockquote><div><br></div><div>But what I need is to keep two route.</div><div>Because if there is only one route, I have to relearn B route after I delete static route, which will cause package loss in long time(like 20 second).</div><div><br></div><div>For some producer like huawei, thay have 'import route' command, which will combine redistributed route and learned route, like this:</div><div><a href="https://support.huawei.com/enterprise/en/doc/EDOC1000178171/cc777bfe/configuring-bgp-to-import-routes" target="_blank">https://support.huawei.com/enterprise/en/doc/EDOC1000178171/cc777bfe/configuring-bgp-to-import-routes</a><br></div><div><br></div><div>So will FRR support this feature ?</div><div>How to import route and NOT withdraw existing route ?<br></div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>----</div>Simon Jones</div></div></div></div></div></div>
</blockquote></div>