]> git.proxmox.com Git - pve-docs.git/blame - vxlan-and-evpn.adoc
vxlan: add external bgp router documentation
[pve-docs.git] / vxlan-and-evpn.adoc
CommitLineData
445822a9
DM
1
2////
3
4This is currently not included, because
5- it requires ifupdown2
6- routing needs more documentation
7
8////
9
10
11VXLAN layer2 with vlan unware linux bridges
12~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13
14VXLAN is an overlay network to carry Ethernet traffic over an existing IP network
15while accommodating a very large number of tenants. It is defined in RFC 7348.
16Each overlay network is known as a VXLAN Segment and identified by a unique
1724-bit segment ID called a VXLAN Network Identifier (VNI).
18
47cf2d10
AD
19VXLAN encapsulation add 50bytes overhead, so you need to increase mtu on your host
20physical interfaces to 1550 at minimum. (or decrease mtu inside your vms to 1450)
21
445822a9
DM
22For BUM traffic (broadcast / unknown unicast traffic, multicast),
23we have 3 differents vxlan setup modes : multicast, unicast, bgp-evpn
24
25image::images/vxlan-l2-vlanunaware.svg["vxlan l2 bridge vlan unaware",align="center"]
26
27multicast mode
28^^^^^^^^^^^^^^
29
30This scenario relies in head end replication, meaning that end host in case
31of not having any entry for the destination MAC address will send out an ARP
32to other devices / VTEPs in the VXLAN network.
33This is done by sending the request to the VXLAN multicast group,
34remote VTEPs will get the packet and answer accordingly direct to the originating VTEP.
35
36
37* node1
38
39----
40auto eno1
41iface eno1 inet manual
47cf2d10 42 mtu 1550
445822a9
DM
43
44auto vmbr0
45iface vmbr0 inet static
46 address 192.168.0.1
47 netmask 255.255.255.0
48 bridge_ports eno1
49 bridge_stp off
50 bridge_fd 0
51
52auto vxlan2
53iface vxlan2 inet manual
edcf2118 54 vxlan-id 2
445822a9
DM
55 vxlan-svcnodeip 225.20.1.1
56 vxlan-physdev eno1
57
58auto vmbr2
59iface vmbr2 inet manual
60 bridge_ports vxlan2
61 bridge_stp off
62 bridge_fd 0
63
64auto vxlan3
65iface vxlan3 inet manual
edcf2118 66 vxlan-id 3
445822a9
DM
67 vxlan-svcnodeip 225.20.1.1
68 vxlan-physdev eno1
69
70auto vmbr3
71iface vmbr3 inet manual
72 bridge_ports vxlan3
73 bridge_stp off
74 bridge_fd 0
75----
76
77
78* node2
79
80----
81auto eno1
82iface eno1 inet manual
47cf2d10 83 mtu 1550
445822a9
DM
84
85auto vmbr0
86iface vmbr0 inet static
87 address 192.168.0.2
88 netmask 255.255.255.0
89 bridge_ports eno1
90 bridge_stp off
91 bridge_fd 0
92
93auto vxlan2
94iface vxlan2 inet manual
edcf2118 95 vxlan-id 2
445822a9
DM
96 vxlan-svcnodeip 225.20.1.1
97 vxlan-physdev eno1
98
99auto vmbr2
100iface vmbr2 inet manual
101 bridge_ports vxlan2
102 bridge_stp off
103 bridge_fd 0
104
105
106auto vxlan3
107iface vxlan3 inet manual
edcf2118 108 vxlan-id 3
445822a9
DM
109 vxlan-svcnodeip 225.20.1.1
110 vxlan-physdev eno1
111
112auto vmbr3
113iface vmbr3 inet manual
114 bridge_ports vxlan3
115 bridge_stp off
116 bridge_fd 0
117----
118
119
120* node3
121
122----
123auto eno1
124iface eno1 inet manual
47cf2d10 125 mtu 1550
445822a9
DM
126
127auto vmbr0
128iface vmbr0 inet static
129 address 192.168.0.3
130 netmask 255.255.255.0
131 bridge_ports eno1
132 bridge_stp off
133 bridge_fd 0
134
135auto vxlan2
136iface vxlan2 inet manual
edcf2118 137 vxlan-id 2
445822a9
DM
138 vxlan-svcnodeip 225.20.1.1
139 vxlan-physdev eno1
140
141auto vmbr2
142iface vmbr2 inet manual
143 bridge_ports vxlan2
144 bridge_stp off
145 bridge_fd 0
146
147
148auto vxlan3
149iface vxlan3 inet manual
edcf2118 150 vxlan-id 3
445822a9
DM
151 vxlan-svcnodeip 225.20.1.1
152 vxlan-physdev eno1
153
154auto vmbr3
155iface vmbr3 inet manual
156 bridge_ports vxlan3
157 bridge_stp off
158 bridge_fd 0
159----
160
161
162unicast mode
163^^^^^^^^^^^^
164
165We can replace multicast by head-end replication of BUM frames to a statically configured lists of remote VTEPs.
166The VXLAN is defined without a remote multicast group.
167Instead, all the remote VTEPs are associated with the all-zero address:
168a BUM frame will be duplicated to all these destinations.
169The VXLAN device will still learn remote addresses automatically using source-address learning.
170
171* node1
172
173----
174auto eno1
175iface eno1 inet manual
47cf2d10 176 mtu 1550
445822a9
DM
177
178auto vmbr0
179iface vmbr0 inet static
180 address 192.168.0.1
181 netmask 255.255.255.0
182 bridge_ports eno1
183 bridge_stp off
184 bridge_fd 0
185
186
187auto vxlan2
188iface vxlan2 inet manual
edcf2118 189 vxlan-id 2
445822a9
DM
190 vxlan_remoteip 192.168.0.2
191 vxlan_remoteip 192.168.0.3
192
193
194auto vmbr2
195iface vmbr2 inet manual
196 bridge_ports vxlan2
197 bridge_stp off
198 bridge_fd 0
199
200
201auto vxlan3
202iface vxlan2 inet manual
edcf2118 203 vxlan-id 3
445822a9
DM
204 vxlan_remoteip 192.168.0.2
205 vxlan_remoteip 192.168.0.3
206
207
208auto vmbr3
209iface vmbr3 inet manual
210 bridge_ports vxlan3
211 bridge_stp off
212 bridge_fd 0
213----
214
215
216* node2
217
218----
219auto eno1
220iface eno1 inet manual
47cf2d10 221 mtu 1550
445822a9
DM
222
223auto vmbr0
224iface vmbr0 inet static
225 address 192.168.0.2
226 netmask 255.255.255.0
227 bridge_ports eno1
228 bridge_stp off
229 bridge_fd 0
230
231auto vxlan2
232iface vxlan2 inet manual
edcf2118 233 vxlan-id 2
445822a9
DM
234 vxlan_remoteip 192.168.0.1
235 vxlan_remoteip 192.168.0.3
236
237
238
239auto vmbr2
240iface vmbr2 inet manual
241 bridge_ports vxlan2
242 bridge_stp off
243 bridge_fd 0
244
245auto vxlan3
246iface vxlan2 inet manual
edcf2118 247 vxlan-id 3
445822a9
DM
248 vxlan_remoteip 192.168.0.1
249 vxlan_remoteip 192.168.0.3
250
251
252auto vmbr3
253iface vmbr3 inet manual
254 bridge_ports vxlan3
255 bridge_stp off
256 bridge_fd 0
257----
258
259
260* node3
261
262----
263auto eno1
264iface eno1 inet manual
47cf2d10 265 mtu 1550
445822a9
DM
266
267auto vmbr0
268iface vmbr0 inet static
269 address 192.168.0.3
270 netmask 255.255.255.0
271 bridge_ports eno1
272 bridge_stp off
273 bridge_fd 0
274
275auto vxlan2
276iface vxlan2 inet manual
edcf2118 277 vxlan-id 2
445822a9
DM
278 vxlan_remoteip 192.168.0.2
279 vxlan_remoteip 192.168.0.3
280
281
282
283auto vmbr2
284iface vmbr2 inet manual
285 bridge_ports vxlan2
286 bridge_stp off
287 bridge_fd 0
288
289auto vxlan3
290iface vxlan2 inet manual
edcf2118 291 vxlan-id 3
445822a9
DM
292 vxlan_remoteip 192.168.0.2
293 vxlan_remoteip 192.168.0.3
294
295
296auto vmbr3
297iface vmbr3 inet manual
298 bridge_ports vxlan3
299 bridge_stp off
300 bridge_fd 0
301----
302
303
304bgp-evpn
305^^^^^^^^
306
307VTEPs use control plane learning/distribution via BGP for remote MAC addresses instead of data plane learning.
308VTEPs have the ability to suppress ARP flooding over VXLAN tunnels.
309
310The control plane used here is FRR, a bgp routing software.
311Each node in the proxmox cluster peer with each others nodes.
312For bigger networks, or multiple proxmox clusters,
313it's possible to use external bgp route reflector servers.
314
315* node1
316
317----
318auto eno1
319iface eno1 inet manual
47cf2d10 320 mtu 1550
445822a9
DM
321
322auto vmbr0
323iface vmbr0 inet static
324 address 192.168.0.1
325 netmask 255.255.255.0
326 bridge_ports eno1
327 bridge_stp off
328 bridge_fd 0
329
330auto vxlan2
331iface vxlan2 inet manual
edcf2118 332 vxlan-id 2
445822a9
DM
333 vxlan-local-tunnelip 192.168.0.1
334 bridge-learning off
335 bridge-arp-nd-suppress on
336 bridge-unicast-flood off
337 bridge-multicast-flood off
338
339
340auto vmbr2
341iface vmbr2 inet manual
342 bridge_ports vxlan2
343 bridge_stp off
344 bridge_fd 0
345
346
347auto vxlan3
348iface vxlan3 inet manual
edcf2118 349 vxlan-id 3
445822a9
DM
350 vxlan-local-tunnelip 192.168.0.1
351 bridge-learning off
352 bridge-arp-nd-suppress on
353 bridge-unicast-flood off
354 bridge-multicast-flood off
355
356
357auto vmbr3
358iface vmbr3 inet manual
359 bridge_ports vxlan3
360 bridge_stp off
361 bridge_fd 0
362----
363
364
365/etc/frr/frr.conf
366
367----
368router bgp 1234
369 no bgp default ipv4-unicast
c141a897 370 no bgp default ipv6-unicast
445822a9
DM
371 coalesce-time 1000
372 neighbor 192.168.0.2 remote-as 1234
373 neighbor 192.168.0.3 remote-as 1234
374 !
375 address-family l2vpn evpn
376 neighbor 192.168.0.2 activate
377 neighbor 192.168.0.3 activate
378 advertise-all-vni
379 exit-address-family
380!
381line vty
382!
383----
384
385
386* node2
387
388----
389auto eno1
390iface eno1 inet manual
47cf2d10 391 mtu 1550
445822a9
DM
392
393auto vmbr0
394iface vmbr0 inet static
395 address 192.168.0.2
396 netmask 255.255.255.0
397 bridge_ports eno1
398 bridge_stp off
399 bridge_fd 0
400
401auto vxlan2
402iface vxlan2 inet manual
edcf2118 403 vxlan-id 2
445822a9
DM
404 vxlan-local-tunnelip 192.168.0.2
405 bridge-learning off
406 bridge-arp-nd-suppress on
407 bridge-unicast-flood off
408 bridge-multicast-flood off
409
410
411auto vmbr2
412iface vmbr2 inet manual
413 bridge_ports vxlan2
414 bridge_stp off
415 bridge_fd 0
416
417auto vxlan3
418iface vxlan3 inet manual
edcf2118 419 vxlan-id 3
445822a9
DM
420 vxlan-local-tunnelip 192.168.0.2
421 bridge-learning off
422 bridge-arp-nd-suppress on
423 bridge-unicast-flood off
424 bridge-multicast-flood off
425
426
427auto vmbr3
428iface vmbr3 inet manual
429 bridge_ports vxlan3
430 bridge_stp off
431 bridge_fd 0
432----
433
434
435/etc/frr/frr.conf
436
437----
438router bgp 1234
439 no bgp default ipv4-unicast
c141a897 440 no bgp default ipv6-unicast
445822a9
DM
441 coalesce-time 1000
442 neighbor 192.168.0.1 remote-as 1234
443 neighbor 192.168.0.3 remote-as 1234
444 !
445 address-family l2vpn evpn
446 neighbor 192.168.0.1 activate
447 neighbor 192.168.0.3 activate
448 advertise-all-vni
449 exit-address-family
450!
451line vty
452!
453----
454
455
456* node3
457
458----
459auto eno1
460iface eno1 inet manual
47cf2d10 461 mtu 1550
445822a9
DM
462
463auto vmbr0
464iface vmbr0 inet static
465 address 192.168.0.2
466 netmask 255.255.255.0
467 bridge_ports eno1
468 bridge_stp off
469 bridge_fd 0
470
471auto vxlan2
472iface vxlan2 inet manual
edcf2118 473 vxlan-id 2
445822a9
DM
474 vxlan-local-tunnelip 192.168.0.3
475 bridge-learning off
476 bridge-arp-nd-suppress on
477 bridge-unicast-flood off
478 bridge-multicast-flood off
479
480
481auto vmbr2
482iface vmbr2 inet manual
483 bridge_ports vxlan2
484 bridge_stp off
485 bridge_fd 0
486
487auto vxlan3
488iface vxlan3 inet manual
edcf2118 489 vxlan-id 3
445822a9
DM
490 vxlan-local-tunnelip 192.168.0.3
491 bridge-learning off
492 bridge-arp-nd-suppress on
493 bridge-unicast-flood off
494 bridge-multicast-flood off
495
496
497auto vmbr3
498iface vmbr3 inet manual
499 bridge_ports vxlan3
500 bridge_stp off
501 bridge_fd 0
502----
503
504
505/etc/frr/frr.conf
506
507
508----
509router bgp 1234
510 no bgp default ipv4-unicast
c141a897 511 no bgp default ipv6-unicast
445822a9
DM
512 coalesce-time 1000
513 neighbor 192.168.0.1 remote-as 1234
514 neighbor 192.168.0.2 remote-as 1234
515 !
516 address-family l2vpn evpn
517 neighbor 192.168.0.1 activate
518 neighbor 192.168.0.2 activate
519 advertise-all-vni
520 exit-address-family
521!
522line vty
523!
524----
525
1821b137
AD
526VXLAN layer3 routing with anycast gateway
527~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
528
529With this need, each vmbr bridge will be the gateway for the vm.
530Same vmbr on different node, will have same ip address and same mac address,
531to have working vm live migration and no network disruption.
532
4d3f6a2e 533VXLAN layer3 routing only work with FRR and non-aware bridge.
1821b137
AD
534(vlan aware bridge support is buggy currently).
535
1821b137
AD
536asymmetric model
537^^^^^^^^^^^^^^^^
538
539This is the simplest mode. To get it work, all vxlan need to be defined on all nodes.
540
4d3f6a2e
TL
541The asymmetric model allows routing and bridging on the VXLAN tunnel ingress,
542but only bridging on the egress.
543This results in bi-directional VXLAN traffic traveling on different VNIs
1821b137
AD
544in each direction (always the destination VNI) across the routed infrastructure.
545
546image::images/vxlan-l3-asymmetric.svg["vxlan l3 asymmetric",align="center"]
547
1821b137
AD
548* node1
549
550----
551auto eno1
552iface eno1 inet manual
47cf2d10 553 mtu 1550
4d3f6a2e 554
1821b137
AD
555auto vmbr0
556iface vmbr0 inet static
557 address 192.168.0.1
558 netmask 255.255.255.0
559 bridge_ports eno1
560 bridge_stp off
561 bridge_fd 0
4d3f6a2e 562
1821b137
AD
563auto vxlan2
564iface vxlan2 inet manual
edcf2118 565 vxlan-id 2
1821b137
AD
566 vxlan-local-tunnelip 192.168.0.1
567 bridge-learning off
568 bridge-arp-nd-suppress on
569 bridge-unicast-flood off
570 bridge-multicast-flood off
571
572
573auto vmbr2
574iface vmbr2 inet static
575 address 10.0.2.254
576 netmask 255.255.255.0
577 hwaddress 44:39:39:FF:40:94
578 bridge_ports vxlan2
579 bridge_stp off
580 bridge_fd 0
fc8f7b53
AD
581 ip-forward on
582 ip6-forward on
583 arp-accept on
1821b137
AD
584
585auto vxlan3
586iface vxlan3 inet manual
edcf2118 587 vxlan-id 3
1821b137
AD
588 vxlan-local-tunnelip 192.168.0.1
589 bridge-learning off
590 bridge-arp-nd-suppress on
591 bridge-unicast-flood off
592 bridge-multicast-flood off
593
594
595auto vmbr3
596iface vmbr3 inet static
597 address 10.0.3.254
598 netmask 255.255.255.0
599 hwaddress 44:39:39:FF:40:94
600 bridge_ports vxlan3
601 bridge_stp off
602 bridge_fd 0
fc8f7b53
AD
603 ip-forward on
604 ip6-forward on
605 arp-accept on
1821b137
AD
606----
607
608
609frr.conf
610
611----
612router bgp 1234
613 bgp router-id 192.168.0.1
614 no bgp default ipv4-unicast
c141a897 615 no bgp default ipv6-unicast
1821b137
AD
616 coalesce-time 1000
617 neighbor 192.168.0.2 remote-as 1234
618 neighbor 192.168.0.3 remote-as 1234
619 !
620 address-family l2vpn evpn
621 neighbor 192.168.0.2 activate
622 neighbor 192.168.0.3 activate
4d3f6a2e 623 advertise-all-vni
1821b137
AD
624 exit-address-family
625!
626line vty
627!
628----
629
630
631* node2
632
633----
634auto eno1
635iface eno1 inet manual
47cf2d10 636 mtu 1550
4d3f6a2e 637
1821b137
AD
638auto vmbr0
639iface vmbr0 inet static
640 address 192.168.0.2
641 netmask 255.255.255.0
642 bridge_ports eno1
643 bridge_stp off
644 bridge_fd 0
4d3f6a2e 645
1821b137
AD
646auto vxlan2
647iface vxlan2 inet manual
edcf2118 648 vxlan-id 2
1821b137
AD
649 vxlan-local-tunnelip 192.168.0.2
650 bridge-learning off
651 bridge-arp-nd-suppress on
652 bridge-unicast-flood off
653 bridge-multicast-flood off
654
655
656auto vmbr2
657iface vmbr2 inet static
658 address 10.0.2.254
659 netmask 255.255.255.0
660 hwaddress 44:39:39:FF:40:94
661 bridge_ports vxlan2
662 bridge_stp off
663 bridge_fd 0
fc8f7b53
AD
664 ip-forward on
665 ip6-forward on
666 arp-accept on
1821b137
AD
667
668
669auto vxlan3
670iface vxlan3 inet manual
edcf2118 671 vxlan-id 3
1821b137
AD
672 vxlan-local-tunnelip 192.168.0.2
673 bridge-learning off
674 bridge-arp-nd-suppress on
675 bridge-unicast-flood off
676 bridge-multicast-flood off
677
678
679auto vmbr3
680iface vmbr3 inet static
681 address 10.0.3.254
682 netmask 255.255.255.0
683 hwaddress 44:39:39:FF:40:94
684 bridge_ports vxlan3
685 bridge_stp off
686 bridge_fd 0
fc8f7b53
AD
687 ip-forward on
688 ip6-forward on
689 arp-accept on
1821b137
AD
690----
691
692
693frr.conf
694
695----
696router bgp 1234
697 bgp router-id 192.168.0.2
698 no bgp default ipv4-unicast
c141a897 699 no bgp default ipv6-unicast
1821b137
AD
700 coalesce-time 1000
701 neighbor 192.168.0.1 remote-as 1234
702 neighbor 192.168.0.3 remote-as 1234
703 !
704 address-family l2vpn evpn
705 neighbor 192.168.0.1 activate
706 neighbor 192.168.0.3 activate
4d3f6a2e 707 advertise-all-vni
1821b137
AD
708 exit-address-family
709!
710line vty
711!
712----
713
714
715* node3
716
717----
718auto eno1
719iface eno1 inet manual
47cf2d10 720 mtu 1550
4d3f6a2e 721
1821b137
AD
722auto vmbr0
723iface vmbr0 inet static
724 address 192.168.0.3
725 netmask 255.255.255.0
726 bridge_ports eno1
727 bridge_stp off
728 bridge_fd 0
4d3f6a2e 729
1821b137
AD
730auto vxlan2
731iface vxlan2 inet manual
edcf2118 732 vxlan-id 2
1821b137
AD
733 vxlan-local-tunnelip 192.168.0.3
734 bridge-learning off
735 bridge-arp-nd-suppress on
736 bridge-unicast-flood off
737 bridge-multicast-flood off
738
739
740auto vmbr2
741iface vmbr2 inet static
742 address 10.0.2.254
743 netmask 255.255.255.0
744 hwaddress 44:39:39:FF:40:94
745 bridge_ports vxlan2
746 bridge_stp off
747 bridge_fd 0
fc8f7b53
AD
748 ip-forward on
749 ip6-forward on
750 arp-accept on
1821b137
AD
751
752auto vxlan3
753iface vxlan3 inet manual
edcf2118 754 vxlan-id 3
1821b137
AD
755 vxlan-local-tunnelip 192.168.0.3
756 bridge-learning off
757 bridge-arp-nd-suppress on
758 bridge-unicast-flood off
759 bridge-multicast-flood off
760
1821b137
AD
761auto vmbr3
762iface vmbr3 inet static
763 address 10.0.3.254
764 netmask 255.255.255.0
765 hwaddress 44:39:39:FF:40:94
766 bridge_ports vxlan3
767 bridge_stp off
768 bridge_fd 0
fc8f7b53
AD
769 ip-forward on
770 ip6-forward on
771 arp-accept on
1821b137
AD
772----
773
774
775frr.conf
776
777----
778router bgp 1234
779 bgp router-id 192.168.0.3
780 no bgp default ipv4-unicast
c141a897 781 no bgp default ipv6-unicast
1821b137
AD
782 coalesce-time 1000
783 neighbor 192.168.0.1 remote-as 1234
784 neighbor 192.168.0.2 remote-as 1234
785 !
786 address-family l2vpn evpn
787 neighbor 192.168.0.1 activate
788 neighbor 192.168.0.2 activate
4d3f6a2e 789 advertise-all-vni
1821b137
AD
790 exit-address-family
791!
792line vty
793!
794----
795
796
797symmetric model
798^^^^^^^^^^^^^^^
799
800With this model, you don't need to have all vxlan on all nodes.
4d3f6a2e 801This model will also be needed to route traffic to an external router.
1821b137 802
4d3f6a2e
TL
803The symmetric model routes and bridges on both the ingress and the egress leafs.
804This results in bi-directional traffic being able to travel on the same VNI, hence the symmetric name.
805However, a new specialty transit VNI is used for all routed VXLAN traffic, called the L3VNI.
806All traffic that needs to be routed will be routed onto the L3VNI, tunneled across the layer 3 Infrastructure,
1821b137
AD
807routed off the L3VNI to the appropriate VLAN and ultimately bridged to the destination.
808
809A vrf is needed for the L3VNI, so all vmbr bridge need to be in the vrf if they want to be able to reach each others.
810
811image::images/vxlan-l3-symmetric.svg["vxlan l3 symmetric",align="center"]
812
1821b137
AD
813* node1
814
815----
816auto vrf1
817iface vrf1
818 vrf-table auto
819
820auto eno1
821iface eno1 inet manual
47cf2d10 822 mtu 1550
4d3f6a2e 823
1821b137
AD
824auto vmbr0
825iface vmbr0 inet static
826 address 192.168.0.1
827 netmask 255.255.255.0
828 bridge_ports eno1
829 bridge_stp off
830 bridge_fd 0
831
832auto vxlan2
833iface vxlan2 inet manual
edcf2118 834 vxlan-id 2
1821b137
AD
835 vxlan-local-tunnelip 192.168.0.1
836 bridge-learning off
837 bridge-arp-nd-suppress on
838 bridge-unicast-flood off
839 bridge-multicast-flood off
840
841auto vmbr2
842iface vmbr2 inet static
843 bridge_ports vxlan2
844 bridge_stp off
845 bridge_fd 0
846 address 10.0.2.254
847 netmask 255.255.255.0
848 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
849 vrf vrf1
fc8f7b53
AD
850 ip-forward on
851 ip6-forward on
852 arp-accept on
1821b137
AD
853
854auto vxlan3
855iface vxlan3 inet manual
edcf2118 856 vxlan-id 3
1821b137
AD
857 vxlan-local-tunnelip 192.168.0.1
858 bridge-learning off
859 bridge-arp-nd-suppress on
860 bridge-unicast-flood off
861 bridge-multicast-flood off
862
863auto vmbr3
864iface vmbr3 inet static
865 bridge_ports vxlan3
866 bridge_stp off
867 bridge_fd 0
868 address 10.0.3.254
869 netmask 255.255.255.0
870 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
871 vrf vrf1
fc8f7b53
AD
872 ip-forward on
873 ip6-forward on
874 arp-accept on
1821b137
AD
875
876#interconnect vxlan-vfr l3vni
877auto vxlan4000
878iface vxlan4000 inet manual
edcf2118 879 vxlan-id 4000
1821b137
AD
880 vxlan-local-tunnelip 192.168.0.1
881 bridge-learning off
882 bridge-arp-nd-suppress on
883 bridge-unicast-flood off
884 bridge-multicast-flood off
885
886
887auto vmbr4000
888iface vmbr4000 inet manual
889 bridge_ports vxlan4000
890 bridge_stp off
891 bridge_fd 0
1821b137
AD
892 vrf vrf1
893----
894
895frr.conf
896
897----
898vrf vrf1
899 vni 4000
250e8aa6 900 exit-vrf
1821b137
AD
901!
902router bgp 1234
903 bgp router-id 192.168.0.1
904 no bgp default ipv4-unicast
c141a897 905 no bgp default ipv6-unicast
1821b137
AD
906 coalesce-time 1000
907 neighbor 192.168.0.2 remote-as 1234
908 neighbor 192.168.0.3 remote-as 1234
909 !
910 address-family l2vpn evpn
911 neighbor 192.168.0.2 activate
912 neighbor 192.168.0.3 activate
913 advertise-all-vni
914 exit-address-family
915!
1821b137
AD
916line vty
917!
918----
919
920
921* node2
922
923----
924auto vrf1
925iface vrf1
926 vrf-table auto
927
928auto eno1
929iface eno1 inet manual
47cf2d10 930 mtu 1550
4d3f6a2e 931
1821b137
AD
932auto vmbr0
933iface vmbr0 inet static
934 address 192.168.0.2
935 netmask 255.255.255.0
936 bridge_ports eno1
937 bridge_stp off
938 bridge_fd 0
939
940auto vxlan2
941iface vxlan2 inet manual
edcf2118 942 vxlan-id 2
1821b137
AD
943 vxlan-local-tunnelip 192.168.0.2
944 bridge-learning off
945 bridge-arp-nd-suppress on
946 bridge-unicast-flood off
947 bridge-multicast-flood off
948
949auto vmbr2
950iface vmbr2 inet static
951 bridge_ports vxlan2
952 bridge_stp off
953 bridge_fd 0
954 address 10.0.2.254
955 netmask 255.255.255.0
956 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
957 vrf vrf1
fc8f7b53
AD
958 ip-forward on
959 ip6-forward on
960 arp-accept on
1821b137
AD
961
962auto vxlan3
963iface vxlan3 inet manual
edcf2118 964 vxlan-id 3
1821b137
AD
965 vxlan-local-tunnelip 192.168.0.2
966 bridge-learning off
967 bridge-arp-nd-suppress on
968 bridge-unicast-flood off
969 bridge-multicast-flood off
970
971auto vmbr3
972iface vmbr3 inet static
973 bridge_ports vxlan3
974 bridge_stp off
975 bridge_fd 0
976 address 10.0.3.254
977 netmask 255.255.255.0
978 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
979 vrf vrf1
fc8f7b53
AD
980 ip-forward on
981 ip6-forward on
982 arp-accept on
1821b137
AD
983
984#interconnect vxlan-vfr l3vni
985auto vxlan4000
986iface vxlan4000 inet manual
edcf2118 987 vxlan-id 4000
1821b137
AD
988 vxlan-local-tunnelip 192.168.0.2
989 bridge-learning off
990 bridge-arp-nd-suppress on
991 bridge-unicast-flood off
992 bridge-multicast-flood off
993
994
995auto vmbr4000
996iface vmbr4000 inet manual
997 bridge_ports vxlan4000
998 bridge_stp off
999 bridge_fd 0
1821b137
AD
1000 vrf vrf1
1001----
1002
1003
1004frr.conf
1005
1006----
1007vrf vrf1
1008 vni 4000
250e8aa6 1009 exit-vrf
1821b137
AD
1010!
1011router bgp 1234
1012 bgp router-id 192.168.0.2
1013 no bgp default ipv4-unicast
c141a897 1014 no bgp default ipv6-unicast
1821b137
AD
1015 coalesce-time 1000
1016 neighbor 192.168.0.1 remote-as 1234
1017 neighbor 192.168.0.3 remote-as 1234
1018 !
1019 address-family l2vpn evpn
1020 neighbor 192.168.0.1 activate
1021 neighbor 192.168.0.3 activate
1022 advertise-all-vni
1023 exit-address-family
1024!
1821b137
AD
1025line vty
1026!
1027----
1028
1029
1030* node3
1031
1032----
1033auto vrf1
1034iface vrf1
1035 vrf-table auto
1036
1037auto eno1
1038iface eno1 inet manual
47cf2d10 1039 mtu 1550
4d3f6a2e 1040
1821b137
AD
1041auto vmbr0
1042iface vmbr0 inet static
1043 address 192.168.0.3
1044 netmask 255.255.255.0
1045 bridge_ports eno1
1046 bridge_stp off
1047 bridge_fd 0
1048
1049auto vxlan2
1050iface vxlan2 inet manual
edcf2118 1051 vxlan-id 2
1821b137
AD
1052 vxlan-local-tunnelip 192.168.0.3
1053 bridge-learning off
1054 bridge-arp-nd-suppress on
1055 bridge-unicast-flood off
1056 bridge-multicast-flood off
1057
1058auto vmbr2
1059iface vmbr2 inet static
1060 bridge_ports vxlan2
1061 bridge_stp off
1062 bridge_fd 0
1063 address 10.0.2.254
1064 netmask 255.255.255.0
1065 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1066 vrf vrf1
fc8f7b53
AD
1067 ip-forward on
1068 ip6-forward on
1069 arp-accept on
1821b137
AD
1070
1071auto vxlan3
1072iface vxlan3 inet manual
edcf2118 1073 vxlan-id 3
1821b137
AD
1074 vxlan-local-tunnelip 192.168.0.3
1075 bridge-learning off
1076 bridge-arp-nd-suppress on
1077 bridge-unicast-flood off
1078 bridge-multicast-flood off
1079
1080auto vmbr3
1081iface vmbr3 inet static
1082 bridge_ports vxlan3
1083 bridge_stp off
1084 bridge_fd 0
1085 address 10.0.3.254
1086 netmask 255.255.255.0
1087 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1088 vrf vrf1
fc8f7b53
AD
1089 ip-forward on
1090 ip6-forward on
1091 arp-accept on
1821b137
AD
1092
1093#interconnect vxlan-vfr l3vni
1094auto vxlan4000
1095iface vxlan4000 inet manual
edcf2118 1096 vxlan-id 4000
1821b137
AD
1097 vxlan-local-tunnelip 192.168.0.3
1098 bridge-learning off
1099 bridge-arp-nd-suppress on
1100 bridge-unicast-flood off
1101 bridge-multicast-flood off
1102
1103
1104auto vmbr4000
1105iface vmbr4000 inet manual
1106 bridge_ports vxlan4000
1107 bridge_stp off
1108 bridge_fd 0
1821b137
AD
1109 vrf vrf1
1110----
1111
1112
1113frr.conf
1114
1115----
1116vrf vrf1
1117 vni 4000
250e8aa6 1118 exit-vrf
1821b137
AD
1119!
1120router bgp 1234
1121 bgp router-id 192.168.0.3
1122 no bgp default ipv4-unicast
c141a897 1123 no bgp default ipv6-unicast
1821b137
AD
1124 coalesce-time 1000
1125 neighbor 192.168.0.1 remote-as 1234
1126 neighbor 192.168.0.2 remote-as 1234
1127 !
1128 address-family l2vpn evpn
1129 neighbor 192.168.0.1 activate
1130 neighbor 192.168.0.2 activate
1131 advertise-all-vni
1132 exit-address-family
1133!
1821b137
AD
1134line vty
1135!
1136----
76b6e857 1137
3e25ae61
AD
1138VXLAN layer3 routing with anycast gateway + routing to outside with external router with static default gw
1139~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76b6e857
AD
1140Routing to outside need the symmetric model.
1141
11421 gateway node
1143^^^^^^^^^^^^^^
1144In this example, we'll use only 1 proxmox node as exit gateway. (node1)
250e8aa6 1145This node announce the default gw in vrf1 (default originate) and forward to his own default gateway (192.168.0.254) (no bgp between router and node1)
76b6e857
AD
1146
1147
1148*node1
1149
1150----
1151auto vrf1
1152iface vrf1
1153 vrf-table auto
1154
1155auto eno1
1156iface eno1 inet manual
47cf2d10 1157 mtu 1550
76b6e857
AD
1158
1159auto vmbr0
1160iface vmbr0 inet static
1161 address 192.168.0.1
1162 netmask 255.255.255.0
250e8aa6 1163 gateway 192.168.0.254
76b6e857
AD
1164 bridge_ports eno1
1165 bridge_stp off
1166 bridge_fd 0
ae2687d3
AD
1167 ip-forward on
1168 ip6-forward on
76b6e857 1169
76b6e857
AD
1170auto vxlan2
1171iface vxlan2 inet manual
edcf2118 1172 vxlan-id 2
76b6e857
AD
1173 vxlan-local-tunnelip 192.168.0.1
1174 bridge-learning off
1175 bridge-arp-nd-suppress on
1176 bridge-unicast-flood off
1177 bridge-multicast-flood off
1178
1179auto vmbr2
1180iface vmbr2 inet static
1181 bridge_ports vxlan2
1182 bridge_stp off
1183 bridge_fd 0
1184 address 10.0.2.254
1185 netmask 255.255.255.0
1186 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1187 vrf vrf1
fc8f7b53
AD
1188 ip-forward on
1189 ip6-forward on
1190 arp-accept on
76b6e857
AD
1191
1192auto vxlan3
1193iface vxlan3 inet manual
edcf2118 1194 vxlan-id 3
76b6e857
AD
1195 vxlan-local-tunnelip 192.168.0.1
1196 bridge-learning off
1197 bridge-arp-nd-suppress on
1198 bridge-unicast-flood off
1199 bridge-multicast-flood off
1200
1201auto vmbr3
1202iface vmbr3 inet static
1203 bridge_ports vxlan3
1204 bridge_stp off
1205 bridge_fd 0
1206 address 10.0.3.254
1207 netmask 255.255.255.0
1208 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1209 vrf vrf1
fc8f7b53
AD
1210 ip-forward on
1211 ip6-forward on
1212 arp-accept on
76b6e857
AD
1213
1214#interconnect vxlan-vfr l3vni
1215auto vxlan4000
1216iface vxlan4000 inet manual
edcf2118 1217 vxlan-id 4000
76b6e857
AD
1218 vxlan-local-tunnelip 192.168.0.1
1219 bridge-learning off
1220 bridge-arp-nd-suppress on
1221 bridge-unicast-flood off
1222 bridge-multicast-flood off
1223
1224auto vmbr4000
1225iface vmbr4000 inet manual
1226 bridge_ports vxlan4000
1227 bridge_stp off
1228 bridge_fd 0
76b6e857
AD
1229 vrf vrf1
1230----
1231
1232
1233frr.conf
1234
1235----
1236vrf vrf1
1237 vni 4000
250e8aa6 1238 exit-vrf
76b6e857
AD
1239!
1240router bgp 1234
1241 bgp router-id 192.168.0.1
1242 no bgp default ipv4-unicast
c141a897 1243 no bgp default ipv6-unicast
76b6e857
AD
1244 coalesce-time 1000
1245 neighbor 192.168.0.2 remote-as 1234
1246 neighbor 192.168.0.3 remote-as 1234
1247 !
250e8aa6
AD
1248 address-family ipv4 unicast
1249 import vrf vrf1
1250 exit-address-family
1251 !
2b7934c1
AD
1252 address-family ipv6 unicast
1253 import vrf vrf1
1254 exit-address-family
1255 !
76b6e857
AD
1256 address-family l2vpn evpn
1257 neighbor 192.168.0.2 activate
1258 neighbor 192.168.0.3 activate
1259 advertise-all-vni
1260 exit-address-family
1261!
1262router bgp 1234 vrf vrf1
1263!
ae2687d3
AD
1264 address-family ipv4 unicast
1265 redistribute connected
1266 exit-address-family
1267 !
2b7934c1
AD
1268 address-family ipv6 unicast
1269 redistribute connected
1270 exit-address-family
1271 !
76b6e857 1272 address-family l2vpn evpn
250e8aa6 1273 default-originate ipv4
2b7934c1 1274 default-originate ipv6
76b6e857
AD
1275 exit-address-family
1276!
1277line vty
1278!
1279----
1280
1281
1282* node2
1283
1284----
1285auto vrf1
1286iface vrf1
1287 vrf-table auto
1288
1289auto eno1
1290iface eno1 inet manual
47cf2d10 1291 mtu 1550
4d3f6a2e 1292
76b6e857
AD
1293auto vmbr0
1294iface vmbr0 inet static
1295 address 192.168.0.2
1296 netmask 255.255.255.0
1297 bridge_ports eno1
1298 bridge_stp off
1299 bridge_fd 0
1300
1301auto vxlan2
1302iface vxlan2 inet manual
edcf2118 1303 vxlan-id 2
76b6e857
AD
1304 vxlan-local-tunnelip 192.168.0.2
1305 bridge-learning off
1306 bridge-arp-nd-suppress on
1307 bridge-unicast-flood off
1308 bridge-multicast-flood off
1309
1310auto vmbr2
1311iface vmbr2 inet static
1312 bridge_ports vxlan2
1313 bridge_stp off
1314 bridge_fd 0
1315 address 10.0.2.254
1316 netmask 255.255.255.0
1317 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1318 vrf vrf1
fc8f7b53
AD
1319 ip-forward on
1320 ip6-forward on
1321 arp-accept on
76b6e857
AD
1322
1323auto vxlan3
1324iface vxlan3 inet manual
edcf2118 1325 vxlan-id 3
76b6e857
AD
1326 vxlan-local-tunnelip 192.168.0.2
1327 bridge-learning off
1328 bridge-arp-nd-suppress on
1329 bridge-unicast-flood off
1330 bridge-multicast-flood off
1331
1332auto vmbr3
1333iface vmbr3 inet static
1334 bridge_ports vxlan3
1335 bridge_stp off
1336 bridge_fd 0
1337 address 10.0.3.254
1338 netmask 255.255.255.0
1339 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1340 vrf vrf1
fc8f7b53
AD
1341 ip-forward on
1342 ip6-forward on
1343 arp-accept on
76b6e857
AD
1344
1345#interconnect vxlan-vfr l3vni
1346auto vxlan4000
1347iface vxlan4000 inet manual
edcf2118 1348 vxlan-id 4000
76b6e857
AD
1349 vxlan-local-tunnelip 192.168.0.2
1350 bridge-learning off
1351 bridge-arp-nd-suppress on
1352 bridge-unicast-flood off
1353 bridge-multicast-flood off
1354
1355
1356auto vmbr4000
1357iface vmbr4000 inet manual
1358 bridge_ports vxlan4000
1359 bridge_stp off
1360 bridge_fd 0
76b6e857
AD
1361 vrf vrf1
1362----
1363
1364
1365frr.conf
1366
1367----
1368vrf vrf1
1369 vni 4000
250e8aa6 1370 exit-vrf
76b6e857
AD
1371!
1372router bgp 1234
1373 bgp router-id 192.168.0.2
1374 no bgp default ipv4-unicast
c141a897 1375 no bgp default ipv6-unicast
76b6e857
AD
1376 coalesce-time 1000
1377 neighbor 192.168.0.1 remote-as 1234
1378 neighbor 192.168.0.3 remote-as 1234
1379 !
1380 address-family l2vpn evpn
1381 neighbor 192.168.0.1 activate
1382 neighbor 192.168.0.3 activate
1383 advertise-all-vni
1384 exit-address-family
1385!
76b6e857
AD
1386line vty
1387!
1388----
1389
1390
1391* node3
1392
1393----
1394auto vrf1
1395iface vrf1
1396 vrf-table auto
1397
1398auto eno1
1399iface eno1 inet manual
47cf2d10 1400 mtu 1550
4d3f6a2e 1401
76b6e857
AD
1402auto vmbr0
1403iface vmbr0 inet static
1404 address 192.168.0.3
1405 netmask 255.255.255.0
1406 bridge_ports eno1
1407 bridge_stp off
1408 bridge_fd 0
1409
1410auto vxlan2
1411iface vxlan2 inet manual
edcf2118 1412 vxlan-id 2
76b6e857
AD
1413 vxlan-local-tunnelip 192.168.0.3
1414 bridge-learning off
1415 bridge-arp-nd-suppress on
1416 bridge-unicast-flood off
1417 bridge-multicast-flood off
1418
1419auto vmbr2
1420iface vmbr2 inet static
1421 bridge_ports vxlan2
1422 bridge_stp off
1423 bridge_fd 0
1424 address 10.0.2.254
1425 netmask 255.255.255.0
1426 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1427 vrf vrf1
fc8f7b53
AD
1428 ip-forward on
1429 ip6-forward on
1430 arp-accept on
76b6e857
AD
1431
1432auto vxlan3
1433iface vxlan3 inet manual
edcf2118 1434 vxlan-id 3
76b6e857
AD
1435 vxlan-local-tunnelip 192.168.0.3
1436 bridge-learning off
1437 bridge-arp-nd-suppress on
1438 bridge-unicast-flood off
1439 bridge-multicast-flood off
1440
1441auto vmbr3
1442iface vmbr3 inet static
1443 bridge_ports vxlan3
1444 bridge_stp off
1445 bridge_fd 0
1446 address 10.0.3.254
1447 netmask 255.255.255.0
1448 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1449 vrf vrf1
fc8f7b53
AD
1450 ip-forward on
1451 ip6-forward on
1452 arp-accept on
76b6e857
AD
1453
1454#interconnect vxlan-vfr l3vni
1455auto vxlan4000
1456iface vxlan4000 inet manual
edcf2118 1457 vxlan-id 4000
76b6e857
AD
1458 vxlan-local-tunnelip 192.168.0.3
1459 bridge-learning off
1460 bridge-arp-nd-suppress on
1461 bridge-unicast-flood off
1462 bridge-multicast-flood off
1463
1464
1465auto vmbr4000
1466iface vmbr4000 inet manual
1467 bridge_ports vxlan4000
1468 bridge_stp off
1469 bridge_fd 0
76b6e857
AD
1470 vrf vrf1
1471----
1472
1473
1474frr.conf
1475
1476----
1477vrf vrf1
1478 vni 4000
250e8aa6 1479 exit-vrf
76b6e857
AD
1480!
1481router bgp 1234
1482 bgp router-id 192.168.0.3
1483 no bgp default ipv4-unicast
c141a897 1484 no bgp default ipv6-unicast
76b6e857
AD
1485 coalesce-time 1000
1486 neighbor 192.168.0.1 remote-as 1234
1487 neighbor 192.168.0.2 remote-as 1234
1488 !
1489 address-family l2vpn evpn
1490 neighbor 192.168.0.1 activate
1491 neighbor 192.168.0.2 activate
1492 advertise-all-vni
1493 exit-address-family
1494!
76b6e857
AD
1495line vty
1496!
1497----
1498
1499multiple gateway nodes
1500^^^^^^^^^^^^^^^^^^^^^^
1501In this example, all nodes will be used as exit gateway. (But you can use only 2 nodes if you want)
250e8aa6
AD
1502All nodes have a a default gw to the external router (192.168.0.254) (no bgp between router and node1)
1503and announce this default gw in the vrf (default originate)
76b6e857
AD
1504The external router have ecmp routes to all proxmox nodes.(balancing).
1505If the router send the packet to a wrong node (vm is not on this node), this node will route through
1506vxlan the packet to final destination.
1507
1508*node1
1509
1510----
1511auto vrf1
1512iface vrf1
1513 vrf-table auto
1514
1515auto eno1
1516iface eno1 inet manual
47cf2d10 1517 mtu 1550
76b6e857
AD
1518
1519auto vmbr0
1520iface vmbr0 inet static
1521 address 192.168.0.1
1522 netmask 255.255.255.0
250e8aa6 1523 gateway 192.168.0.254
76b6e857
AD
1524 bridge_ports eno1
1525 bridge_stp off
1526 bridge_fd 0
ae2687d3
AD
1527 ip-forward on
1528 ip6-forward on
76b6e857 1529
76b6e857
AD
1530auto vxlan2
1531iface vxlan2 inet manual
edcf2118 1532 vxlan-id 2
76b6e857
AD
1533 vxlan-local-tunnelip 192.168.0.1
1534 bridge-learning off
1535 bridge-arp-nd-suppress on
1536 bridge-unicast-flood off
1537 bridge-multicast-flood off
1538
1539auto vmbr2
1540iface vmbr2 inet static
1541 bridge_ports vxlan2
1542 bridge_stp off
1543 bridge_fd 0
1544 address 10.0.2.254
1545 netmask 255.255.255.0
1546 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1547 vrf vrf1
fc8f7b53
AD
1548 ip-forward on
1549 ip6-forward on
1550 arp-accept on
76b6e857
AD
1551
1552auto vxlan3
1553iface vxlan3 inet manual
edcf2118 1554 vxlan-id 3
76b6e857
AD
1555 vxlan-local-tunnelip 192.168.0.1
1556 bridge-learning off
1557 bridge-arp-nd-suppress on
1558 bridge-unicast-flood off
1559 bridge-multicast-flood off
1560
1561auto vmbr3
1562iface vmbr3 inet static
1563 bridge_ports vxlan3
1564 bridge_stp off
1565 bridge_fd 0
1566 address 10.0.3.254
1567 netmask 255.255.255.0
1568 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1569 vrf vrf1
fc8f7b53
AD
1570 ip-forward on
1571 ip6-forward on
1572 arp-accept on
76b6e857
AD
1573
1574#interconnect vxlan-vfr l3vni
1575auto vxlan4000
1576iface vxlan4000 inet manual
edcf2118 1577 vxlan-id 4000
76b6e857
AD
1578 vxlan-local-tunnelip 192.168.0.1
1579 bridge-learning off
1580 bridge-arp-nd-suppress on
1581 bridge-unicast-flood off
1582 bridge-multicast-flood off
1583
1584auto vmbr4000
1585iface vmbr4000 inet manual
1586 bridge_ports vxlan4000
1587 bridge_stp off
1588 bridge_fd 0
76b6e857
AD
1589 vrf vrf1
1590----
1591
1592
1593frr.conf
1594
1595----
1596vrf vrf1
1597 vni 4000
250e8aa6 1598 exit-vrf
76b6e857
AD
1599!
1600router bgp 1234
1601 bgp router-id 192.168.0.1
1602 no bgp default ipv4-unicast
c141a897 1603 no bgp default ipv6-unicast
76b6e857
AD
1604 coalesce-time 1000
1605 neighbor 192.168.0.2 remote-as 1234
1606 neighbor 192.168.0.3 remote-as 1234
1607 !
250e8aa6
AD
1608 address-family ipv4 unicast
1609 import vrf vrf1
1610 exit-address-family
1611 !
2b7934c1
AD
1612 address-family ipv6 unicast
1613 import vrf vrf1
1614 exit-address-family
1615 !
76b6e857
AD
1616 address-family l2vpn evpn
1617 neighbor 192.168.0.2 activate
1618 neighbor 192.168.0.3 activate
1619 advertise-all-vni
1620 exit-address-family
1621!
1622router bgp 1234 vrf vrf1
1623!
ae2687d3
AD
1624 address-family ipv4 unicast
1625 redistribute connected
1626 exit-address-family
1627 !
2b7934c1
AD
1628 address-family ipv6 unicast
1629 redistribute connected
1630 exit-address-family
1631 !
76b6e857 1632 address-family l2vpn evpn
250e8aa6 1633 default-originate ipv4
2b7934c1 1634 default-originate ipv6
76b6e857
AD
1635 exit-address-family
1636!
1637line vty
1638!
1639----
1640
1641
1642* node2
1643
1644----
1645auto vrf1
1646iface vrf1
1647 vrf-table auto
1648
1649auto eno1
1650iface eno1 inet manual
47cf2d10 1651 mtu 1550
4d3f6a2e 1652
76b6e857
AD
1653auto vmbr0
1654iface vmbr0 inet static
1655 address 192.168.0.2
1656 netmask 255.255.255.0
250e8aa6 1657 gateway 192.168.0.254
76b6e857
AD
1658 bridge_ports eno1
1659 bridge_stp off
1660 bridge_fd 0
ae2687d3
AD
1661 ip-forward on
1662 ip6-forward on
76b6e857 1663
76b6e857
AD
1664auto vxlan2
1665iface vxlan2 inet manual
edcf2118 1666 vxlan-id 2
76b6e857
AD
1667 vxlan-local-tunnelip 192.168.0.2
1668 bridge-learning off
1669 bridge-arp-nd-suppress on
1670 bridge-unicast-flood off
1671 bridge-multicast-flood off
1672
1673auto vmbr2
1674iface vmbr2 inet static
1675 bridge_ports vxlan2
1676 bridge_stp off
1677 bridge_fd 0
1678 address 10.0.2.254
1679 netmask 255.255.255.0
1680 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1681 vrf vrf1
fc8f7b53
AD
1682 ip-forward on
1683 ip6-forward on
1684 arp-accept on
76b6e857
AD
1685
1686auto vxlan3
1687iface vxlan3 inet manual
edcf2118 1688 vxlan-id 3
76b6e857
AD
1689 vxlan-local-tunnelip 192.168.0.2
1690 bridge-learning off
1691 bridge-arp-nd-suppress on
1692 bridge-unicast-flood off
1693 bridge-multicast-flood off
1694
1695auto vmbr3
1696iface vmbr3 inet static
1697 bridge_ports vxlan3
1698 bridge_stp off
1699 bridge_fd 0
1700 address 10.0.3.254
1701 netmask 255.255.255.0
1702 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1703 vrf vrf1
fc8f7b53
AD
1704 ip-forward on
1705 ip6-forward on
1706 arp-accept on
76b6e857
AD
1707
1708#interconnect vxlan-vfr l3vni
1709auto vxlan4000
1710iface vxlan4000 inet manual
edcf2118 1711 vxlan-id 4000
76b6e857
AD
1712 vxlan-local-tunnelip 192.168.0.2
1713 bridge-learning off
1714 bridge-arp-nd-suppress on
1715 bridge-unicast-flood off
1716 bridge-multicast-flood off
1717
1718
1719auto vmbr4000
1720iface vmbr4000 inet manual
1721 bridge_ports vxlan4000
1722 bridge_stp off
1723 bridge_fd 0
76b6e857
AD
1724 vrf vrf1
1725----
1726
1727
1728frr.conf
1729
1730----
1731vrf vrf1
1732 vni 4000
250e8aa6 1733 exit-vrf
76b6e857
AD
1734!
1735router bgp 1234
1736 bgp router-id 192.168.0.2
1737 no bgp default ipv4-unicast
c141a897 1738 no bgp default ipv6-unicast
76b6e857
AD
1739 coalesce-time 1000
1740 neighbor 192.168.0.1 remote-as 1234
1741 neighbor 192.168.0.3 remote-as 1234
1742 !
250e8aa6
AD
1743 address-family ipv4 unicast
1744 import vrf vrf1
1745 exit-address-family
1746 !
2b7934c1
AD
1747 address-family ipv6 unicast
1748 import vrf vrf1
1749 exit-address-family
1750 !
76b6e857
AD
1751 address-family l2vpn evpn
1752 neighbor 192.168.0.1 activate
1753 neighbor 192.168.0.3 activate
1754 advertise-all-vni
1755 exit-address-family
1756!
ae2687d3
AD
1757 address-family ipv4 unicast
1758 redistribute connected
1759 exit-address-family
1760 !
2b7934c1
AD
1761 address-family ipv6 unicast
1762 redistribute connected
1763 exit-address-family
1764 !
76b6e857 1765 address-family l2vpn evpn
250e8aa6 1766 default-originate ipv4
2b7934c1 1767 default-originate ipv6
76b6e857
AD
1768 exit-address-family
1769!
1770line vty
1771!
1772----
1773
1774
1775* node3
1776
1777----
1778auto vrf1
1779iface vrf1
1780 vrf-table auto
1781
1782auto eno1
1783iface eno1 inet manual
47cf2d10
AD
1784 mtu 1550
1785
76b6e857
AD
1786auto vmbr0
1787iface vmbr0 inet static
1788 address 192.168.0.3
1789 netmask 255.255.255.0
250e8aa6 1790 gateway 192.168.0.254
76b6e857
AD
1791 bridge_ports eno1
1792 bridge_stp off
1793 bridge_fd 0
ae2687d3
AD
1794 ip-forward on
1795 ip6-forward on
76b6e857 1796
76b6e857
AD
1797auto vxlan2
1798iface vxlan2 inet manual
edcf2118 1799 vxlan-id 2
76b6e857
AD
1800 vxlan-local-tunnelip 192.168.0.3
1801 bridge-learning off
1802 bridge-arp-nd-suppress on
1803 bridge-unicast-flood off
1804 bridge-multicast-flood off
1805
1806auto vmbr2
1807iface vmbr2 inet static
1808 bridge_ports vxlan2
1809 bridge_stp off
1810 bridge_fd 0
1811 address 10.0.2.254
1812 netmask 255.255.255.0
1813 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1814 vrf vrf1
fc8f7b53
AD
1815 ip-forward on
1816 ip6-forward on
1817 arp-accept on
76b6e857
AD
1818
1819auto vxlan3
1820iface vxlan3 inet manual
edcf2118 1821 vxlan-id 3
76b6e857
AD
1822 vxlan-local-tunnelip 192.168.0.3
1823 bridge-learning off
1824 bridge-arp-nd-suppress on
1825 bridge-unicast-flood off
1826 bridge-multicast-flood off
1827
1828auto vmbr3
1829iface vmbr3 inet static
1830 bridge_ports vxlan3
1831 bridge_stp off
1832 bridge_fd 0
1833 address 10.0.3.254
1834 netmask 255.255.255.0
1835 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1836 vrf vrf1
fc8f7b53
AD
1837 ip-forward on
1838 ip6-forward on
1839 arp-accept on
76b6e857
AD
1840
1841#interconnect vxlan-vfr l3vni
1842auto vxlan4000
1843iface vxlan4000 inet manual
edcf2118 1844 vxlan-id 4000
76b6e857
AD
1845 vxlan-local-tunnelip 192.168.0.3
1846 bridge-learning off
1847 bridge-arp-nd-suppress on
1848 bridge-unicast-flood off
1849 bridge-multicast-flood off
1850
1851
1852auto vmbr4000
1853iface vmbr4000 inet manual
1854 bridge_ports vxlan4000
1855 bridge_stp off
1856 bridge_fd 0
76b6e857
AD
1857 vrf vrf1
1858----
1859
1860
1861frr.conf
1862
1863----
1864vrf vrf1
1865 vni 4000
250e8aa6 1866 exit-vrf
76b6e857
AD
1867!
1868router bgp 1234
1869 bgp router-id 192.168.0.3
1870 no bgp default ipv4-unicast
c141a897 1871 no bgp default ipv6-unicast
76b6e857
AD
1872 coalesce-time 1000
1873 neighbor 192.168.0.1 remote-as 1234
1874 neighbor 192.168.0.2 remote-as 1234
1875 !
250e8aa6
AD
1876 address-family ipv4 unicast
1877 import vrf vrf1
1878 exit-address-family
1879 !
2b7934c1
AD
1880 address-family ipv6 unicast
1881 import vrf vrf1
1882 exit-address-family
1883 !
76b6e857
AD
1884 address-family l2vpn evpn
1885 neighbor 192.168.0.1 activate
1886 neighbor 192.168.0.2 activate
1887 advertise-all-vni
1888 exit-address-family
1889!
1890router bgp 1234 vrf vrf1
1891!
ae2687d3
AD
1892 address-family ipv4 unicast
1893 redistribute connected
1894 exit-address-family
1895 !
2b7934c1
AD
1896 address-family ipv6 unicast
1897 redistribute connected
1898 exit-address-family
1899 !
76b6e857 1900 address-family l2vpn evpn
250e8aa6 1901 default-originate ipv4
2b7934c1 1902 default-originate ipv6
76b6e857
AD
1903 exit-address-family
1904!
1905line vty
1906!
1907----
1908
1909Note
1910^^^^
1911
8adeb0eb
TL
1912If your external router doesn't support 'ECMP static routes' to reach multiple
1913{pve} nodes, you can setup an HA floating vip on proxmox nodes by using the
1914Virtual Router Redundancy Protocol (VRRP).
76b6e857 1915
8adeb0eb
TL
1916In this example, we will setup an floating 192.168.0.10 IP on node1 and node2.
1917Node1 is the primary with failover to node2 in case of outage.
76b6e857 1918
8adeb0eb 1919This setup currently needs 'vrrpd' package (`apt install vrrpd`).
250e8aa6 1920#TODO : It should be possible to do it with frr directly with last version.
76b6e857
AD
1921
1922* node1
1923
1924----
250e8aa6
AD
1925auto vmbr0
1926iface vmbr0 inet static
1927 address 192.168.0.1
1928 netmask 255.255.255.0
1929 gateway 192.168.0.254
1930 bridge_ports eno1
1931 bridge_stp off
1932 bridge_fd 0
1933 vrrp-id 1
1934 vrrp-priority 1
1935 vrrp-virtual-ip 192.168.0.10
76b6e857
AD
1936----
1937
1938* node2
1939
1940----
250e8aa6
AD
1941auto vmbr0
1942iface vmbr0 inet static
1943 address 192.168.0.2
1944 netmask 255.255.255.0
1945 gateway 192.168.0.254
1946 bridge_ports eno1
1947 bridge_stp off
1948 bridge_fd 0
1949 vrrp-id 1
1950 vrrp-priority 2
1951 vrrp-virtual-ip 192.168.0.10
76b6e857
AD
1952----
1953
1954
3e25ae61
AD
1955
1956gateway node(s) with a upstream bgp router
1957~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1958Setup is almost the same than with a static gateway, but we'll connect to an upstream bgp router.
1959
1960example with node1 as gateway (192.168.0.1) for evpn-bgp, and an upstream bgp router (running frr too) 192.168.0.254.
1961
1962* node1
1963
1964frr.conf
1965----
1966vrf vrf1
1967 vni 4000
1968 exit-vrf
1969!
1970router bgp 1234
1971 bgp router-id 192.168.0.1
1972 no bgp default ipv4-unicast
1973 no bgp default ipv6-unicast
1974 coalesce-time 1000
1975 neighbor 192.168.0.2 remote-as 1234
1976 neighbor 192.168.0.3 remote-as 1234
1977 neighbor 192.168.0.254 remote-as external
1978 !
1979 address-family ipv4 unicast
1980 import vrf vrf1
1981 neighbor 192.168.0.254 activate
1982 exit-address-family
1983 !
1984 address-family ipv6 unicast
1985 import vrf vrf1
1986 neighbor 192.168.0.254 activate
1987 exit-address-family
1988 !
1989 address-family l2vpn evpn
1990 neighbor 192.168.0.1 activate
1991 neighbor 192.168.0.2 activate
1992 neighbor 192.168.0.254 activate
1993 advertise-all-vni
1994 exit-address-family
1995!
1996router bgp 1234 vrf vrf1
1997!
1998 address-family ipv4 unicast
1999 redistribute connected
2000 exit-address-family
2001 !
2002 address-family ipv6 unicast
2003 redistribute connected
2004 exit-address-family
2005 !
2006 address-family l2vpn evpn
2007 default-originate ipv4
2008 default-originate ipv6
2009 exit-address-family
2010!
2011line vty
2012!
2013----
2014
2015* bgp router
2016
2017frr.conf
2018----
2019ip prefix-list NO32 seq 10 permit 0.0.0.0/0 ge 8 le 24
2020ip prefix-list NO32 seq 20 deny any
2021!
2022router bgp 25253
2023 bgp router-id 192.168.0.254
2024 bgp bestpath as-path multipath-relax
2025 neighbor 192.168.0.1 remote-as external
2026 neighbor 192.168.0.1 capability extended-nexthop
2027 !
2028 address-family ipv4 unicast
2029 neighbor 192.168.0.1 default-originate
2030 neighbor 192.168.0.1 prefix-list NO32 in #don't import /32 route from evpn
2031 exit-address-family
2032 !
2033 address-family ipv6 unicast
2034 neighbor 192.168.0.1 default-originate
2035 neighbor 192.168.0.1 prefix-list NO32 in #don't import /32 route from evpn
2036 exit-address-family
2037 !
2038!
2039---
2040
8adeb0eb 2041Route Reflectors
846e9430 2042^^^^^^^^^^^^^^^^
8adeb0eb
TL
2043If you have a lot of proxmox nodes, or multiple proxmox clusters, you may want
2044to avoid that all node peers with each others nodes.
2045For this, you can create dedicated route reflectors (RR) servers. As a RR is a
2046single point of failure, a minimum of two servers acting as an RR is highly
2047recommended for redundancy.
2048
2049Below is an example of configuration with 'frr', with `rrserver1
2050(192.168.0.200)' and `rrserver2 (192.168.0.201)`.
846e9430
AD
2051
2052rrserver1
2053----
2054router bgp 1234
2055 bgp router-id 192.168.0.200
4d3f6a2e 2056 bgp cluster-id 1.1.1.1 #cluster-id must be the same on each route reflector
846e9430
AD
2057 bgp log-neighbor-changes
2058 no bgp default ipv4-unicast
c141a897 2059 no bgp default ipv6-unicast
846e9430
AD
2060 neighbor fabric peer-group
2061 neighbor fabric remote-as 1234
2062 neighbor fabric capability extended-nexthop
2063 neighbor fabric update-source 192.168.0.200
2064 bgp listen range 192.168.0.0/24 peer-group fabric #allow any proxmoxnode client in the network range
2065 !
2066 address-family l2vpn evpn
2067 neighbor fabric activate
2068 neighbor fabric route-reflector-client
2069 neighbor fabric allowas-in
2070 exit-address-family
2071 !
2072 exit
2073!
2074---
2075
2076rrserver2
2077----
2078router bgp 1234
2079 bgp router-id 192.168.0.201
4d3f6a2e 2080 bgp cluster-id 1.1.1.1
846e9430
AD
2081 bgp log-neighbor-changes
2082 no bgp default ipv4-unicast
c141a897 2083 no bgp default ipv6-unicast
846e9430
AD
2084 neighbor fabric peer-group
2085 neighbor fabric remote-as 1234
2086 neighbor fabric capability extended-nexthop
2087 neighbor fabric update-source 192.168.0.201
2088 bgp listen range 192.168.0.0/24 peer-group fabric
2089 !
2090 address-family l2vpn evpn
2091 neighbor fabric activate
2092 neighbor fabric route-reflector-client
2093 neighbor fabric allowas-in
2094 exit-address-family
2095 !
2096 exit
2097!
2098---
2099
2100proxmoxnode(s)
2101----
2102router bgp 1234
2103 bgp router-id 192.168.0.x
2104 no bgp default ipv4-unicast
c141a897 2105 no bgp default ipv6-unicast
846e9430
AD
2106 coalesce-time 1000
2107 neighbor 192.168.0.200 remote-as 1234
2108 neighbor 192.168.0.201 remote-as 1234
2109 !
846e9430
AD
2110 address-family l2vpn evpn
2111 neighbor 192.168.0.200 activate
2112 neighbor 192.168.0.201 activate
2113 advertise-all-vni
2114 exit-address-family
2115!
2116----