<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: MetalLB BGP ECMP]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме MetalLB BGP ECMP форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Sun, 02 Aug 2026 12:07:43 -0400</pubDate>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429763">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Так какой из configmaps ты используешь? Потому что второй переписывает первый. <br />
			<i>24.02.2023 23:21:00, eset.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429763</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429763</guid>
			<pubDate>Fri, 24 Feb 2023 23:21:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429762">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Моя конфигурация тоже работает, но при подключении к одному из подов за metallb у меня появляется задержка в 5 секунд, как и у другого пользователя, который писал ранее. У вас тоже такая проблема? Единственный способ, который я нашёл, чтобы убрать эту задержку — создать правило masquerade NAT в разделе Firewall, но я не могу понять, почему так происходит. Есть идеи? <br />
			<i>17.08.2021 22:44:00, YYZ.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429762</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429762</guid>
			<pubDate>Tue, 17 Aug 2021 22:44:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429761">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Последние пару выходных пробиваюсь лбом об эту проблему. BGP устанавливает соединение, для каждого устройства создаются отдельные маршруты в ip/routes, и вроде всё работает. НО я не могу достучаться ни до чего за IP metallb из устройств моей домашней сети. Их не пингуется, и в arp-scan их нет. Зато устройства за metallb нормально пингуют устройства моей домашней сети. В режиме уровня 2 всё работает как надо.<br /><br />--------<br />ip address print &nbsp;<br />Flags: X - отключён, I - недействителен, D - динамический &nbsp;<br /> # &nbsp; ADDRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NETWORK &nbsp; &nbsp; &nbsp; &nbsp; INTERFACE &nbsp;<br /> 0 &nbsp; 10.10.0.1/20 &nbsp; &nbsp; &nbsp; 10.10.0.0 &nbsp; &nbsp; &nbsp; lan-bridge &nbsp;<br /> 1 D public-ip/24 &nbsp; &nbsp;public-ip &nbsp; &nbsp; ether1 &nbsp;<br /><br />--------<br />/ip route print &nbsp;<br /> # &nbsp; &nbsp; &nbsp;DST-ADDRESS &nbsp; &nbsp; &nbsp; &nbsp;PREF-SRC &nbsp; &nbsp; &nbsp; &nbsp;GATEWAY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DISTANCE &nbsp;<br /> 0 ADS &nbsp;0.0.0.0/0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public-ip &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp;<br /> 1 ADC &nbsp;10.10.0.0/20 &nbsp; &nbsp; &nbsp; 10.10.0.1 &nbsp; &nbsp; &nbsp; lan-bridge &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;<br /> 2 ADb &nbsp;10.10.2.1/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10.10.2.10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 &nbsp;<br /> 3 ADb &nbsp;10.10.2.10/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10.10.2.10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 &nbsp;<br /> 4 ADb &nbsp;10.10.2.100/32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10.10.2.10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 &nbsp;<br /> 5 ADC &nbsp;public-ip/24 &nbsp; &nbsp; public-ip &nbsp; &nbsp;ether1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp;<br /><br />--------<br />/routing bgp instance print &nbsp;<br />Flags: * - по умолчанию, X - отключён &nbsp;<br /> 0 *X name="default" as=60000 router-id=0.0.0.0 redistribute-connected=no redistribute-static=no redistribute-rip=no redistribute-ospf=no redistribute-other-bgp=no out-filter="" client-to-client-reflection=yes &nbsp;<br /> &nbsp; &nbsp; &nbsp;ignore-as-path-len=no routing-table="" &nbsp;<br /><br /> 1 &nbsp; &nbsp;name="k3s" as=400 router-id=10.10.0.1 redistribute-connected=no redistribute-static=no redistribute-rip=no redistribute-ospf=no redistribute-other-bgp=no out-filter="" client-to-client-reflection=yes &nbsp;<br /> &nbsp; &nbsp; &nbsp;ignore-as-path-len=no routing-table="" &nbsp;<br /><br />--------<br />/routing bgp peer print detail &nbsp;<br />Flags: X - отключён, E - установлено соединение &nbsp;<br /> 0 E name="metallb" instance=k3s remote-address=10.10.2.10 remote-as=500 tcp-md5-key="" nexthop-choice=force-self multihop=no route-reflect=no hold-time=3m ttl=default in-filter="" out-filter="" address-families=ip &nbsp;<br /> &nbsp; &nbsp; default-originate=always remove-private-as=no as-override=no passive=no use-bfd=no &nbsp;<br /><br />--------<br />/routing bgp network print &nbsp;<br />Flags: X - отключён &nbsp;<br /> # &nbsp; NETWORK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SYNCHRONIZE &nbsp;<br /> 0 &nbsp; 10.10.2.0/24 &nbsp; &nbsp; &nbsp; &nbsp; yes &nbsp;<br /><br />--------<br />/routing bgp advertisements print &nbsp;<br />PEER &nbsp; &nbsp; PREFIX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NEXTHOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS-PATH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ORIGIN &nbsp; &nbsp; LOCAL-PREF &nbsp;<br />metallb &nbsp;0.0.0.0/0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10.10.0.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;igp &nbsp;<br /><br />--------<br />metallb-bgp-config<br /><br />apiVersion: v1 &nbsp;<br />kind: ConfigMap &nbsp;<br />metadata: &nbsp;<br /> &nbsp;namespace: metallb-system &nbsp;<br /> &nbsp;name: config &nbsp;<br />data: &nbsp;<br /> &nbsp;config: | &nbsp;<br /> &nbsp; &nbsp;peers: &nbsp;<br /> &nbsp; &nbsp;- peer-address: 10.10.0.1 &nbsp;<br /> &nbsp; &nbsp; &nbsp;peer-asn: 400 &nbsp;<br /> &nbsp; &nbsp; &nbsp;my-asn: 500 &nbsp;<br /> &nbsp; &nbsp;address-pools: &nbsp;<br /> &nbsp; &nbsp;- name: mikrotik &nbsp;<br /> &nbsp; &nbsp; &nbsp;protocol: bgp &nbsp;<br /> &nbsp; &nbsp; &nbsp;avoid-buggy-ips: true &nbsp;<br /> &nbsp; &nbsp; &nbsp;addresses: &nbsp;<br /> &nbsp; &nbsp; &nbsp;- 10.10.2.0/24 &nbsp;<br /><br />--------<br />metallb-l2-config<br /><br />apiVersion: v1 &nbsp;<br />kind: ConfigMap &nbsp;<br />metadata: &nbsp;<br /> &nbsp;namespace: metallb-system &nbsp;<br /> &nbsp;name: config &nbsp;<br />data: &nbsp;<br /> &nbsp;config: | &nbsp;<br /> &nbsp; &nbsp;address-pools: &nbsp;<br /> &nbsp; &nbsp;- name: mikrotik &nbsp;<br /> &nbsp; &nbsp; &nbsp;protocol: layer2 &nbsp;<br /> &nbsp; &nbsp; &nbsp;avoid-buggy-ips: true &nbsp;<br /> &nbsp; &nbsp; &nbsp;addresses: &nbsp;<br /> &nbsp; &nbsp; &nbsp;- 10.10.2.0/24 &nbsp;<br /><br />ОБНОВЛЕНИЕ: Всё, что мне пришлось сделать — это поставить metallb в другую подсеть, чтобы всё заработало. Если бы Mikrotik ещё поддерживал ECMP-пакеты, было бы вообще супер. <br />
			<i>03.05.2021 14:49:00, jr0dd.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429761</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429761</guid>
			<pubDate>Mon, 03 May 2021 14:49:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429760">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Похоже, что использовать Mikrotik для балансировки нагрузки MetalLb в режиме BGP невозможно: <noindex><a href="http://forum.mikrotik.com/t/bgp-ecmp-multipathing/73757/1" target="_blank" rel="nofollow" >http://forum.mikrotik.com/t/bgp-ecmp-multipathing/73757/1</a></noindex> <br />
			<i>16.03.2021 22:28:00, naviset.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429760</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429760</guid>
			<pubDate>Tue, 16 Mar 2021 22:28:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429759">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Я недавно тоже пытался настроить примерно то же самое — metallb на физических машинах у себя дома, чтобы публиковать сервисы в домашней сети. Моя первая попытка прошла довольно просто: я использовал настроенный AS в Mikrotik (routing - bgp - interfaces) и настроил пира, используя свой ASN для metallb и IP-адреса нод (несколько пиров для всего кластера k8s, все с одинаковым AS). Все появлялось как опубликованное, я даже видел маршрут (в ip - routes). Он отображался с distance 20. И когда я пытался зайти по этому IP с машин в сети, получилось — правда, первые пару раз было очень медленно, загрузка страницы nginx по умолчанию занимала 5-6 секунд. Но потом, я ничего особо не менял, и это перестало работать. При этом в Mikrotik всё выглядит так же, маршрут виден, но зайти на опубликованный сервис уже не получается. Интересно, кто-нибудь из вас с тех пор что-то продвинул в этом плане? Мне гораздо больше нравится подход через BGP, а не ARP, ведь читал, что при переключении на резервный путь он работает гораздо быстрее. <br />
			<i>28.10.2020 05:48:00, SillyPosition.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429759</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429759</guid>
			<pubDate>Wed, 28 Oct 2020 05:48:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429758">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет, к сожалению, нет, я не сделал этого. В итоге я использовал уровень 2 с внутренними IP-адресами на маленькой подсети /28, а затем на Mikrotik настроил переадресацию подсети с внешних IP на внутренние с помощью NETMAP. <br />
			<i>26.10.2020 10:34:00, si458.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429758</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429758</guid>
			<pubDate>Mon, 26 Oct 2020 10:34:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429757">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет, Саймон, ты случайно не нашёл решение этой проблемы? У меня та же ситуация с Mikrotik BGP + MetalLB, и я тоже застрял на этом этапе. <br />
			<i>25.10.2020 21:25:00, pubudeux.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429757</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429757</guid>
			<pubDate>Sun, 25 Oct 2020 21:25:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>MetalLB BGP ECMP</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429756">MetalLB BGP ECMP</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Всем привет! Вопрос, возможно, слегка необычный, но все же спрошу. У меня настроен BGP с MetalLB и Kubernetes на нашем роутере Mikrotik, НО сейчас балансировка нагрузки работает не так, как обещано — трафик идет только на один узел вместо всех трёх. Я почитал по этому поводу и, похоже, нужно настроить ECMP на роутере/коммутаторе? <noindex><a href="https://metallb.universe.tf/concepts/bgp/" target="_blank" rel="nofollow" >https://metallb.universe.tf/concepts/bgp/</a></noindex> В таблице маршрутизации Mikrotik сейчас отображается один IP-адрес, который ведёт на все три узла, как и должно быть, но только один маршрут помечен как активный. При этом у всех одинаковая метрика — 200. Можно ли как-то заставить Mikrotik делать балансировку с помощью BGP? Если да, то как? С уважением, Саймон. <br />
			<i>25.09.2020 11:25:00, si458.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429756</link>
			<guid>http://mikrotik.moscow/forum/forum57/88727-metallb-bgp-ecmp/message429756</guid>
			<pubDate>Fri, 25 Sep 2020 11:25:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
