]> git.proxmox.com Git - pve-docs.git/blame - vxlan-and-evpn.adoc
update supported browsers
[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
370 coalesce-time 1000
371 neighbor 192.168.0.2 remote-as 1234
372 neighbor 192.168.0.3 remote-as 1234
373 !
374 address-family l2vpn evpn
375 neighbor 192.168.0.2 activate
376 neighbor 192.168.0.3 activate
377 advertise-all-vni
378 exit-address-family
379!
380line vty
381!
382----
383
384
385* node2
386
387----
388auto eno1
389iface eno1 inet manual
47cf2d10 390 mtu 1550
445822a9
DM
391
392auto vmbr0
393iface vmbr0 inet static
394 address 192.168.0.2
395 netmask 255.255.255.0
396 bridge_ports eno1
397 bridge_stp off
398 bridge_fd 0
399
400auto vxlan2
401iface vxlan2 inet manual
edcf2118 402 vxlan-id 2
445822a9
DM
403 vxlan-local-tunnelip 192.168.0.2
404 bridge-learning off
405 bridge-arp-nd-suppress on
406 bridge-unicast-flood off
407 bridge-multicast-flood off
408
409
410auto vmbr2
411iface vmbr2 inet manual
412 bridge_ports vxlan2
413 bridge_stp off
414 bridge_fd 0
415
416auto vxlan3
417iface vxlan3 inet manual
edcf2118 418 vxlan-id 3
445822a9
DM
419 vxlan-local-tunnelip 192.168.0.2
420 bridge-learning off
421 bridge-arp-nd-suppress on
422 bridge-unicast-flood off
423 bridge-multicast-flood off
424
425
426auto vmbr3
427iface vmbr3 inet manual
428 bridge_ports vxlan3
429 bridge_stp off
430 bridge_fd 0
431----
432
433
434/etc/frr/frr.conf
435
436----
437router bgp 1234
438 no bgp default ipv4-unicast
439 coalesce-time 1000
440 neighbor 192.168.0.1 remote-as 1234
441 neighbor 192.168.0.3 remote-as 1234
442 !
443 address-family l2vpn evpn
444 neighbor 192.168.0.1 activate
445 neighbor 192.168.0.3 activate
446 advertise-all-vni
447 exit-address-family
448!
449line vty
450!
451----
452
453
454* node3
455
456----
457auto eno1
458iface eno1 inet manual
47cf2d10 459 mtu 1550
445822a9
DM
460
461auto vmbr0
462iface vmbr0 inet static
463 address 192.168.0.2
464 netmask 255.255.255.0
465 bridge_ports eno1
466 bridge_stp off
467 bridge_fd 0
468
469auto vxlan2
470iface vxlan2 inet manual
edcf2118 471 vxlan-id 2
445822a9
DM
472 vxlan-local-tunnelip 192.168.0.3
473 bridge-learning off
474 bridge-arp-nd-suppress on
475 bridge-unicast-flood off
476 bridge-multicast-flood off
477
478
479auto vmbr2
480iface vmbr2 inet manual
481 bridge_ports vxlan2
482 bridge_stp off
483 bridge_fd 0
484
485auto vxlan3
486iface vxlan3 inet manual
edcf2118 487 vxlan-id 3
445822a9
DM
488 vxlan-local-tunnelip 192.168.0.3
489 bridge-learning off
490 bridge-arp-nd-suppress on
491 bridge-unicast-flood off
492 bridge-multicast-flood off
493
494
495auto vmbr3
496iface vmbr3 inet manual
497 bridge_ports vxlan3
498 bridge_stp off
499 bridge_fd 0
500----
501
502
503/etc/frr/frr.conf
504
505
506----
507router bgp 1234
508 no bgp default ipv4-unicast
509 coalesce-time 1000
510 neighbor 192.168.0.1 remote-as 1234
511 neighbor 192.168.0.2 remote-as 1234
512 !
513 address-family l2vpn evpn
514 neighbor 192.168.0.1 activate
515 neighbor 192.168.0.2 activate
516 advertise-all-vni
517 exit-address-family
518!
519line vty
520!
521----
522
1821b137
AD
523VXLAN layer3 routing with anycast gateway
524~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
525
526With this need, each vmbr bridge will be the gateway for the vm.
527Same vmbr on different node, will have same ip address and same mac address,
528to have working vm live migration and no network disruption.
529
4d3f6a2e 530VXLAN layer3 routing only work with FRR and non-aware bridge.
1821b137
AD
531(vlan aware bridge support is buggy currently).
532
1821b137
AD
533asymmetric model
534^^^^^^^^^^^^^^^^
535
536This is the simplest mode. To get it work, all vxlan need to be defined on all nodes.
537
4d3f6a2e
TL
538The asymmetric model allows routing and bridging on the VXLAN tunnel ingress,
539but only bridging on the egress.
540This results in bi-directional VXLAN traffic traveling on different VNIs
1821b137
AD
541in each direction (always the destination VNI) across the routed infrastructure.
542
543image::images/vxlan-l3-asymmetric.svg["vxlan l3 asymmetric",align="center"]
544
1821b137
AD
545* node1
546
547----
548auto eno1
549iface eno1 inet manual
47cf2d10 550 mtu 1550
4d3f6a2e 551
1821b137
AD
552auto vmbr0
553iface vmbr0 inet static
554 address 192.168.0.1
555 netmask 255.255.255.0
556 bridge_ports eno1
557 bridge_stp off
558 bridge_fd 0
4d3f6a2e 559
1821b137
AD
560auto vxlan2
561iface vxlan2 inet manual
edcf2118 562 vxlan-id 2
1821b137
AD
563 vxlan-local-tunnelip 192.168.0.1
564 bridge-learning off
565 bridge-arp-nd-suppress on
566 bridge-unicast-flood off
567 bridge-multicast-flood off
568
569
570auto vmbr2
571iface vmbr2 inet static
572 address 10.0.2.254
573 netmask 255.255.255.0
574 hwaddress 44:39:39:FF:40:94
575 bridge_ports vxlan2
576 bridge_stp off
577 bridge_fd 0
fc8f7b53
AD
578 ip-forward on
579 ip6-forward on
580 arp-accept on
1821b137
AD
581
582auto vxlan3
583iface vxlan3 inet manual
edcf2118 584 vxlan-id 3
1821b137
AD
585 vxlan-local-tunnelip 192.168.0.1
586 bridge-learning off
587 bridge-arp-nd-suppress on
588 bridge-unicast-flood off
589 bridge-multicast-flood off
590
591
592auto vmbr3
593iface vmbr3 inet static
594 address 10.0.3.254
595 netmask 255.255.255.0
596 hwaddress 44:39:39:FF:40:94
597 bridge_ports vxlan3
598 bridge_stp off
599 bridge_fd 0
fc8f7b53
AD
600 ip-forward on
601 ip6-forward on
602 arp-accept on
1821b137
AD
603----
604
605
606frr.conf
607
608----
609router bgp 1234
610 bgp router-id 192.168.0.1
611 no bgp default ipv4-unicast
612 coalesce-time 1000
613 neighbor 192.168.0.2 remote-as 1234
614 neighbor 192.168.0.3 remote-as 1234
615 !
616 address-family l2vpn evpn
617 neighbor 192.168.0.2 activate
618 neighbor 192.168.0.3 activate
4d3f6a2e 619 advertise-all-vni
1821b137
AD
620 exit-address-family
621!
622line vty
623!
624----
625
626
627* node2
628
629----
630auto eno1
631iface eno1 inet manual
47cf2d10 632 mtu 1550
4d3f6a2e 633
1821b137
AD
634auto vmbr0
635iface vmbr0 inet static
636 address 192.168.0.2
637 netmask 255.255.255.0
638 bridge_ports eno1
639 bridge_stp off
640 bridge_fd 0
4d3f6a2e 641
1821b137
AD
642auto vxlan2
643iface vxlan2 inet manual
edcf2118 644 vxlan-id 2
1821b137
AD
645 vxlan-local-tunnelip 192.168.0.2
646 bridge-learning off
647 bridge-arp-nd-suppress on
648 bridge-unicast-flood off
649 bridge-multicast-flood off
650
651
652auto vmbr2
653iface vmbr2 inet static
654 address 10.0.2.254
655 netmask 255.255.255.0
656 hwaddress 44:39:39:FF:40:94
657 bridge_ports vxlan2
658 bridge_stp off
659 bridge_fd 0
fc8f7b53
AD
660 ip-forward on
661 ip6-forward on
662 arp-accept on
1821b137
AD
663
664
665auto vxlan3
666iface vxlan3 inet manual
edcf2118 667 vxlan-id 3
1821b137
AD
668 vxlan-local-tunnelip 192.168.0.2
669 bridge-learning off
670 bridge-arp-nd-suppress on
671 bridge-unicast-flood off
672 bridge-multicast-flood off
673
674
675auto vmbr3
676iface vmbr3 inet static
677 address 10.0.3.254
678 netmask 255.255.255.0
679 hwaddress 44:39:39:FF:40:94
680 bridge_ports vxlan3
681 bridge_stp off
682 bridge_fd 0
fc8f7b53
AD
683 ip-forward on
684 ip6-forward on
685 arp-accept on
1821b137
AD
686----
687
688
689frr.conf
690
691----
692router bgp 1234
693 bgp router-id 192.168.0.2
694 no bgp default ipv4-unicast
695 coalesce-time 1000
696 neighbor 192.168.0.1 remote-as 1234
697 neighbor 192.168.0.3 remote-as 1234
698 !
699 address-family l2vpn evpn
700 neighbor 192.168.0.1 activate
701 neighbor 192.168.0.3 activate
4d3f6a2e 702 advertise-all-vni
1821b137
AD
703 exit-address-family
704!
705line vty
706!
707----
708
709
710* node3
711
712----
713auto eno1
714iface eno1 inet manual
47cf2d10 715 mtu 1550
4d3f6a2e 716
1821b137
AD
717auto vmbr0
718iface vmbr0 inet static
719 address 192.168.0.3
720 netmask 255.255.255.0
721 bridge_ports eno1
722 bridge_stp off
723 bridge_fd 0
4d3f6a2e 724
1821b137
AD
725auto vxlan2
726iface vxlan2 inet manual
edcf2118 727 vxlan-id 2
1821b137
AD
728 vxlan-local-tunnelip 192.168.0.3
729 bridge-learning off
730 bridge-arp-nd-suppress on
731 bridge-unicast-flood off
732 bridge-multicast-flood off
733
734
735auto vmbr2
736iface vmbr2 inet static
737 address 10.0.2.254
738 netmask 255.255.255.0
739 hwaddress 44:39:39:FF:40:94
740 bridge_ports vxlan2
741 bridge_stp off
742 bridge_fd 0
fc8f7b53
AD
743 ip-forward on
744 ip6-forward on
745 arp-accept on
1821b137
AD
746
747auto vxlan3
748iface vxlan3 inet manual
edcf2118 749 vxlan-id 3
1821b137
AD
750 vxlan-local-tunnelip 192.168.0.3
751 bridge-learning off
752 bridge-arp-nd-suppress on
753 bridge-unicast-flood off
754 bridge-multicast-flood off
755
1821b137
AD
756auto vmbr3
757iface vmbr3 inet static
758 address 10.0.3.254
759 netmask 255.255.255.0
760 hwaddress 44:39:39:FF:40:94
761 bridge_ports vxlan3
762 bridge_stp off
763 bridge_fd 0
fc8f7b53
AD
764 ip-forward on
765 ip6-forward on
766 arp-accept on
1821b137
AD
767----
768
769
770frr.conf
771
772----
773router bgp 1234
774 bgp router-id 192.168.0.3
775 no bgp default ipv4-unicast
776 coalesce-time 1000
777 neighbor 192.168.0.1 remote-as 1234
778 neighbor 192.168.0.2 remote-as 1234
779 !
780 address-family l2vpn evpn
781 neighbor 192.168.0.1 activate
782 neighbor 192.168.0.2 activate
4d3f6a2e 783 advertise-all-vni
1821b137
AD
784 exit-address-family
785!
786line vty
787!
788----
789
790
791symmetric model
792^^^^^^^^^^^^^^^
793
794With this model, you don't need to have all vxlan on all nodes.
4d3f6a2e 795This model will also be needed to route traffic to an external router.
1821b137 796
4d3f6a2e
TL
797The symmetric model routes and bridges on both the ingress and the egress leafs.
798This results in bi-directional traffic being able to travel on the same VNI, hence the symmetric name.
799However, a new specialty transit VNI is used for all routed VXLAN traffic, called the L3VNI.
800All traffic that needs to be routed will be routed onto the L3VNI, tunneled across the layer 3 Infrastructure,
1821b137
AD
801routed off the L3VNI to the appropriate VLAN and ultimately bridged to the destination.
802
803A 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.
804
805image::images/vxlan-l3-symmetric.svg["vxlan l3 symmetric",align="center"]
806
1821b137
AD
807* node1
808
809----
810auto vrf1
811iface vrf1
812 vrf-table auto
813
814auto eno1
815iface eno1 inet manual
47cf2d10 816 mtu 1550
4d3f6a2e 817
1821b137
AD
818auto vmbr0
819iface vmbr0 inet static
820 address 192.168.0.1
821 netmask 255.255.255.0
822 bridge_ports eno1
823 bridge_stp off
824 bridge_fd 0
825
826auto vxlan2
827iface vxlan2 inet manual
edcf2118 828 vxlan-id 2
1821b137
AD
829 vxlan-local-tunnelip 192.168.0.1
830 bridge-learning off
831 bridge-arp-nd-suppress on
832 bridge-unicast-flood off
833 bridge-multicast-flood off
834
835auto vmbr2
836iface vmbr2 inet static
837 bridge_ports vxlan2
838 bridge_stp off
839 bridge_fd 0
840 address 10.0.2.254
841 netmask 255.255.255.0
842 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
843 vrf vrf1
fc8f7b53
AD
844 ip-forward on
845 ip6-forward on
846 arp-accept on
1821b137
AD
847
848auto vxlan3
849iface vxlan3 inet manual
edcf2118 850 vxlan-id 3
1821b137
AD
851 vxlan-local-tunnelip 192.168.0.1
852 bridge-learning off
853 bridge-arp-nd-suppress on
854 bridge-unicast-flood off
855 bridge-multicast-flood off
856
857auto vmbr3
858iface vmbr3 inet static
859 bridge_ports vxlan3
860 bridge_stp off
861 bridge_fd 0
862 address 10.0.3.254
863 netmask 255.255.255.0
864 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
865 vrf vrf1
fc8f7b53
AD
866 ip-forward on
867 ip6-forward on
868 arp-accept on
1821b137
AD
869
870#interconnect vxlan-vfr l3vni
871auto vxlan4000
872iface vxlan4000 inet manual
edcf2118 873 vxlan-id 4000
1821b137
AD
874 vxlan-local-tunnelip 192.168.0.1
875 bridge-learning off
876 bridge-arp-nd-suppress on
877 bridge-unicast-flood off
878 bridge-multicast-flood off
879
880
881auto vmbr4000
882iface vmbr4000 inet manual
883 bridge_ports vxlan4000
884 bridge_stp off
885 bridge_fd 0
1821b137
AD
886 vrf vrf1
887----
888
889frr.conf
890
891----
892vrf vrf1
893 vni 4000
250e8aa6 894 exit-vrf
1821b137
AD
895!
896router bgp 1234
897 bgp router-id 192.168.0.1
898 no bgp default ipv4-unicast
899 coalesce-time 1000
900 neighbor 192.168.0.2 remote-as 1234
901 neighbor 192.168.0.3 remote-as 1234
902 !
903 address-family l2vpn evpn
904 neighbor 192.168.0.2 activate
905 neighbor 192.168.0.3 activate
906 advertise-all-vni
907 exit-address-family
908!
1821b137
AD
909line vty
910!
911----
912
913
914* node2
915
916----
917auto vrf1
918iface vrf1
919 vrf-table auto
920
921auto eno1
922iface eno1 inet manual
47cf2d10 923 mtu 1550
4d3f6a2e 924
1821b137
AD
925auto vmbr0
926iface vmbr0 inet static
927 address 192.168.0.2
928 netmask 255.255.255.0
929 bridge_ports eno1
930 bridge_stp off
931 bridge_fd 0
932
933auto vxlan2
934iface vxlan2 inet manual
edcf2118 935 vxlan-id 2
1821b137
AD
936 vxlan-local-tunnelip 192.168.0.2
937 bridge-learning off
938 bridge-arp-nd-suppress on
939 bridge-unicast-flood off
940 bridge-multicast-flood off
941
942auto vmbr2
943iface vmbr2 inet static
944 bridge_ports vxlan2
945 bridge_stp off
946 bridge_fd 0
947 address 10.0.2.254
948 netmask 255.255.255.0
949 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
950 vrf vrf1
fc8f7b53
AD
951 ip-forward on
952 ip6-forward on
953 arp-accept on
1821b137
AD
954
955auto vxlan3
956iface vxlan3 inet manual
edcf2118 957 vxlan-id 3
1821b137
AD
958 vxlan-local-tunnelip 192.168.0.2
959 bridge-learning off
960 bridge-arp-nd-suppress on
961 bridge-unicast-flood off
962 bridge-multicast-flood off
963
964auto vmbr3
965iface vmbr3 inet static
966 bridge_ports vxlan3
967 bridge_stp off
968 bridge_fd 0
969 address 10.0.3.254
970 netmask 255.255.255.0
971 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
972 vrf vrf1
fc8f7b53
AD
973 ip-forward on
974 ip6-forward on
975 arp-accept on
1821b137
AD
976
977#interconnect vxlan-vfr l3vni
978auto vxlan4000
979iface vxlan4000 inet manual
edcf2118 980 vxlan-id 4000
1821b137
AD
981 vxlan-local-tunnelip 192.168.0.2
982 bridge-learning off
983 bridge-arp-nd-suppress on
984 bridge-unicast-flood off
985 bridge-multicast-flood off
986
987
988auto vmbr4000
989iface vmbr4000 inet manual
990 bridge_ports vxlan4000
991 bridge_stp off
992 bridge_fd 0
1821b137
AD
993 vrf vrf1
994----
995
996
997frr.conf
998
999----
1000vrf vrf1
1001 vni 4000
250e8aa6 1002 exit-vrf
1821b137
AD
1003!
1004router bgp 1234
1005 bgp router-id 192.168.0.2
1006 no bgp default ipv4-unicast
1007 coalesce-time 1000
1008 neighbor 192.168.0.1 remote-as 1234
1009 neighbor 192.168.0.3 remote-as 1234
1010 !
1011 address-family l2vpn evpn
1012 neighbor 192.168.0.1 activate
1013 neighbor 192.168.0.3 activate
1014 advertise-all-vni
1015 exit-address-family
1016!
1821b137
AD
1017line vty
1018!
1019----
1020
1021
1022* node3
1023
1024----
1025auto vrf1
1026iface vrf1
1027 vrf-table auto
1028
1029auto eno1
1030iface eno1 inet manual
47cf2d10 1031 mtu 1550
4d3f6a2e 1032
1821b137
AD
1033auto vmbr0
1034iface vmbr0 inet static
1035 address 192.168.0.3
1036 netmask 255.255.255.0
1037 bridge_ports eno1
1038 bridge_stp off
1039 bridge_fd 0
1040
1041auto vxlan2
1042iface vxlan2 inet manual
edcf2118 1043 vxlan-id 2
1821b137
AD
1044 vxlan-local-tunnelip 192.168.0.3
1045 bridge-learning off
1046 bridge-arp-nd-suppress on
1047 bridge-unicast-flood off
1048 bridge-multicast-flood off
1049
1050auto vmbr2
1051iface vmbr2 inet static
1052 bridge_ports vxlan2
1053 bridge_stp off
1054 bridge_fd 0
1055 address 10.0.2.254
1056 netmask 255.255.255.0
1057 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1058 vrf vrf1
fc8f7b53
AD
1059 ip-forward on
1060 ip6-forward on
1061 arp-accept on
1821b137
AD
1062
1063auto vxlan3
1064iface vxlan3 inet manual
edcf2118 1065 vxlan-id 3
1821b137
AD
1066 vxlan-local-tunnelip 192.168.0.3
1067 bridge-learning off
1068 bridge-arp-nd-suppress on
1069 bridge-unicast-flood off
1070 bridge-multicast-flood off
1071
1072auto vmbr3
1073iface vmbr3 inet static
1074 bridge_ports vxlan3
1075 bridge_stp off
1076 bridge_fd 0
1077 address 10.0.3.254
1078 netmask 255.255.255.0
1079 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1080 vrf vrf1
fc8f7b53
AD
1081 ip-forward on
1082 ip6-forward on
1083 arp-accept on
1821b137
AD
1084
1085#interconnect vxlan-vfr l3vni
1086auto vxlan4000
1087iface vxlan4000 inet manual
edcf2118 1088 vxlan-id 4000
1821b137
AD
1089 vxlan-local-tunnelip 192.168.0.3
1090 bridge-learning off
1091 bridge-arp-nd-suppress on
1092 bridge-unicast-flood off
1093 bridge-multicast-flood off
1094
1095
1096auto vmbr4000
1097iface vmbr4000 inet manual
1098 bridge_ports vxlan4000
1099 bridge_stp off
1100 bridge_fd 0
1821b137
AD
1101 vrf vrf1
1102----
1103
1104
1105frr.conf
1106
1107----
1108vrf vrf1
1109 vni 4000
250e8aa6 1110 exit-vrf
1821b137
AD
1111!
1112router bgp 1234
1113 bgp router-id 192.168.0.3
1114 no bgp default ipv4-unicast
1115 coalesce-time 1000
1116 neighbor 192.168.0.1 remote-as 1234
1117 neighbor 192.168.0.2 remote-as 1234
1118 !
1119 address-family l2vpn evpn
1120 neighbor 192.168.0.1 activate
1121 neighbor 192.168.0.2 activate
1122 advertise-all-vni
1123 exit-address-family
1124!
1821b137
AD
1125line vty
1126!
1127----
76b6e857
AD
1128
1129VXLAN layer3 routing with anycast gateway + routing to outside with external router
1130~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1131Routing to outside need the symmetric model.
1132
11331 gateway node
1134^^^^^^^^^^^^^^
1135In this example, we'll use only 1 proxmox node as exit gateway. (node1)
250e8aa6 1136This 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
1137
1138
1139*node1
1140
1141----
1142auto vrf1
1143iface vrf1
1144 vrf-table auto
1145
1146auto eno1
1147iface eno1 inet manual
47cf2d10 1148 mtu 1550
76b6e857
AD
1149
1150auto vmbr0
1151iface vmbr0 inet static
1152 address 192.168.0.1
1153 netmask 255.255.255.0
250e8aa6 1154 gateway 192.168.0.254
76b6e857
AD
1155 bridge_ports eno1
1156 bridge_stp off
1157 bridge_fd 0
1158
76b6e857
AD
1159auto vxlan2
1160iface vxlan2 inet manual
edcf2118 1161 vxlan-id 2
76b6e857
AD
1162 vxlan-local-tunnelip 192.168.0.1
1163 bridge-learning off
1164 bridge-arp-nd-suppress on
1165 bridge-unicast-flood off
1166 bridge-multicast-flood off
1167
1168auto vmbr2
1169iface vmbr2 inet static
1170 bridge_ports vxlan2
1171 bridge_stp off
1172 bridge_fd 0
1173 address 10.0.2.254
1174 netmask 255.255.255.0
1175 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1176 vrf vrf1
fc8f7b53
AD
1177 ip-forward on
1178 ip6-forward on
1179 arp-accept on
76b6e857
AD
1180
1181auto vxlan3
1182iface vxlan3 inet manual
edcf2118 1183 vxlan-id 3
76b6e857
AD
1184 vxlan-local-tunnelip 192.168.0.1
1185 bridge-learning off
1186 bridge-arp-nd-suppress on
1187 bridge-unicast-flood off
1188 bridge-multicast-flood off
1189
1190auto vmbr3
1191iface vmbr3 inet static
1192 bridge_ports vxlan3
1193 bridge_stp off
1194 bridge_fd 0
1195 address 10.0.3.254
1196 netmask 255.255.255.0
1197 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1198 vrf vrf1
fc8f7b53
AD
1199 ip-forward on
1200 ip6-forward on
1201 arp-accept on
76b6e857
AD
1202
1203#interconnect vxlan-vfr l3vni
1204auto vxlan4000
1205iface vxlan4000 inet manual
edcf2118 1206 vxlan-id 4000
76b6e857
AD
1207 vxlan-local-tunnelip 192.168.0.1
1208 bridge-learning off
1209 bridge-arp-nd-suppress on
1210 bridge-unicast-flood off
1211 bridge-multicast-flood off
1212
1213auto vmbr4000
1214iface vmbr4000 inet manual
1215 bridge_ports vxlan4000
1216 bridge_stp off
1217 bridge_fd 0
76b6e857
AD
1218 vrf vrf1
1219----
1220
1221
1222frr.conf
1223
1224----
1225vrf vrf1
1226 vni 4000
250e8aa6 1227 exit-vrf
76b6e857
AD
1228!
1229router bgp 1234
1230 bgp router-id 192.168.0.1
1231 no bgp default ipv4-unicast
1232 coalesce-time 1000
1233 neighbor 192.168.0.2 remote-as 1234
1234 neighbor 192.168.0.3 remote-as 1234
1235 !
250e8aa6
AD
1236 address-family ipv4 unicast
1237 import vrf vrf1
1238 exit-address-family
1239 !
76b6e857
AD
1240 address-family l2vpn evpn
1241 neighbor 192.168.0.2 activate
1242 neighbor 192.168.0.3 activate
1243 advertise-all-vni
1244 exit-address-family
1245!
1246router bgp 1234 vrf vrf1
1247!
76b6e857 1248 address-family l2vpn evpn
250e8aa6 1249 default-originate ipv4
76b6e857
AD
1250 exit-address-family
1251!
1252line vty
1253!
1254----
1255
1256
1257* node2
1258
1259----
1260auto vrf1
1261iface vrf1
1262 vrf-table auto
1263
1264auto eno1
1265iface eno1 inet manual
47cf2d10 1266 mtu 1550
4d3f6a2e 1267
76b6e857
AD
1268auto vmbr0
1269iface vmbr0 inet static
1270 address 192.168.0.2
1271 netmask 255.255.255.0
1272 bridge_ports eno1
1273 bridge_stp off
1274 bridge_fd 0
1275
1276auto vxlan2
1277iface vxlan2 inet manual
edcf2118 1278 vxlan-id 2
76b6e857
AD
1279 vxlan-local-tunnelip 192.168.0.2
1280 bridge-learning off
1281 bridge-arp-nd-suppress on
1282 bridge-unicast-flood off
1283 bridge-multicast-flood off
1284
1285auto vmbr2
1286iface vmbr2 inet static
1287 bridge_ports vxlan2
1288 bridge_stp off
1289 bridge_fd 0
1290 address 10.0.2.254
1291 netmask 255.255.255.0
1292 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1293 vrf vrf1
fc8f7b53
AD
1294 ip-forward on
1295 ip6-forward on
1296 arp-accept on
76b6e857
AD
1297
1298auto vxlan3
1299iface vxlan3 inet manual
edcf2118 1300 vxlan-id 3
76b6e857
AD
1301 vxlan-local-tunnelip 192.168.0.2
1302 bridge-learning off
1303 bridge-arp-nd-suppress on
1304 bridge-unicast-flood off
1305 bridge-multicast-flood off
1306
1307auto vmbr3
1308iface vmbr3 inet static
1309 bridge_ports vxlan3
1310 bridge_stp off
1311 bridge_fd 0
1312 address 10.0.3.254
1313 netmask 255.255.255.0
1314 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1315 vrf vrf1
fc8f7b53
AD
1316 ip-forward on
1317 ip6-forward on
1318 arp-accept on
76b6e857
AD
1319
1320#interconnect vxlan-vfr l3vni
1321auto vxlan4000
1322iface vxlan4000 inet manual
edcf2118 1323 vxlan-id 4000
76b6e857
AD
1324 vxlan-local-tunnelip 192.168.0.2
1325 bridge-learning off
1326 bridge-arp-nd-suppress on
1327 bridge-unicast-flood off
1328 bridge-multicast-flood off
1329
1330
1331auto vmbr4000
1332iface vmbr4000 inet manual
1333 bridge_ports vxlan4000
1334 bridge_stp off
1335 bridge_fd 0
76b6e857
AD
1336 vrf vrf1
1337----
1338
1339
1340frr.conf
1341
1342----
1343vrf vrf1
1344 vni 4000
250e8aa6 1345 exit-vrf
76b6e857
AD
1346!
1347router bgp 1234
1348 bgp router-id 192.168.0.2
1349 no bgp default ipv4-unicast
1350 coalesce-time 1000
1351 neighbor 192.168.0.1 remote-as 1234
1352 neighbor 192.168.0.3 remote-as 1234
1353 !
1354 address-family l2vpn evpn
1355 neighbor 192.168.0.1 activate
1356 neighbor 192.168.0.3 activate
1357 advertise-all-vni
1358 exit-address-family
1359!
76b6e857
AD
1360line vty
1361!
1362----
1363
1364
1365* node3
1366
1367----
1368auto vrf1
1369iface vrf1
1370 vrf-table auto
1371
1372auto eno1
1373iface eno1 inet manual
47cf2d10 1374 mtu 1550
4d3f6a2e 1375
76b6e857
AD
1376auto vmbr0
1377iface vmbr0 inet static
1378 address 192.168.0.3
1379 netmask 255.255.255.0
1380 bridge_ports eno1
1381 bridge_stp off
1382 bridge_fd 0
1383
1384auto vxlan2
1385iface vxlan2 inet manual
edcf2118 1386 vxlan-id 2
76b6e857
AD
1387 vxlan-local-tunnelip 192.168.0.3
1388 bridge-learning off
1389 bridge-arp-nd-suppress on
1390 bridge-unicast-flood off
1391 bridge-multicast-flood off
1392
1393auto vmbr2
1394iface vmbr2 inet static
1395 bridge_ports vxlan2
1396 bridge_stp off
1397 bridge_fd 0
1398 address 10.0.2.254
1399 netmask 255.255.255.0
1400 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1401 vrf vrf1
fc8f7b53
AD
1402 ip-forward on
1403 ip6-forward on
1404 arp-accept on
76b6e857
AD
1405
1406auto vxlan3
1407iface vxlan3 inet manual
edcf2118 1408 vxlan-id 3
76b6e857
AD
1409 vxlan-local-tunnelip 192.168.0.3
1410 bridge-learning off
1411 bridge-arp-nd-suppress on
1412 bridge-unicast-flood off
1413 bridge-multicast-flood off
1414
1415auto vmbr3
1416iface vmbr3 inet static
1417 bridge_ports vxlan3
1418 bridge_stp off
1419 bridge_fd 0
1420 address 10.0.3.254
1421 netmask 255.255.255.0
1422 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1423 vrf vrf1
fc8f7b53
AD
1424 ip-forward on
1425 ip6-forward on
1426 arp-accept on
76b6e857
AD
1427
1428#interconnect vxlan-vfr l3vni
1429auto vxlan4000
1430iface vxlan4000 inet manual
edcf2118 1431 vxlan-id 4000
76b6e857
AD
1432 vxlan-local-tunnelip 192.168.0.3
1433 bridge-learning off
1434 bridge-arp-nd-suppress on
1435 bridge-unicast-flood off
1436 bridge-multicast-flood off
1437
1438
1439auto vmbr4000
1440iface vmbr4000 inet manual
1441 bridge_ports vxlan4000
1442 bridge_stp off
1443 bridge_fd 0
76b6e857
AD
1444 vrf vrf1
1445----
1446
1447
1448frr.conf
1449
1450----
1451vrf vrf1
1452 vni 4000
250e8aa6 1453 exit-vrf
76b6e857
AD
1454!
1455router bgp 1234
1456 bgp router-id 192.168.0.3
1457 no bgp default ipv4-unicast
1458 coalesce-time 1000
1459 neighbor 192.168.0.1 remote-as 1234
1460 neighbor 192.168.0.2 remote-as 1234
1461 !
1462 address-family l2vpn evpn
1463 neighbor 192.168.0.1 activate
1464 neighbor 192.168.0.2 activate
1465 advertise-all-vni
1466 exit-address-family
1467!
76b6e857
AD
1468line vty
1469!
1470----
1471
1472multiple gateway nodes
1473^^^^^^^^^^^^^^^^^^^^^^
1474In this example, all nodes will be used as exit gateway. (But you can use only 2 nodes if you want)
250e8aa6
AD
1475All nodes have a a default gw to the external router (192.168.0.254) (no bgp between router and node1)
1476and announce this default gw in the vrf (default originate)
76b6e857
AD
1477The external router have ecmp routes to all proxmox nodes.(balancing).
1478If the router send the packet to a wrong node (vm is not on this node), this node will route through
1479vxlan the packet to final destination.
1480
1481*node1
1482
1483----
1484auto vrf1
1485iface vrf1
1486 vrf-table auto
1487
1488auto eno1
1489iface eno1 inet manual
47cf2d10 1490 mtu 1550
76b6e857
AD
1491
1492auto vmbr0
1493iface vmbr0 inet static
1494 address 192.168.0.1
1495 netmask 255.255.255.0
250e8aa6 1496 gateway 192.168.0.254
76b6e857
AD
1497 bridge_ports eno1
1498 bridge_stp off
1499 bridge_fd 0
1500
76b6e857
AD
1501auto vxlan2
1502iface vxlan2 inet manual
edcf2118 1503 vxlan-id 2
76b6e857
AD
1504 vxlan-local-tunnelip 192.168.0.1
1505 bridge-learning off
1506 bridge-arp-nd-suppress on
1507 bridge-unicast-flood off
1508 bridge-multicast-flood off
1509
1510auto vmbr2
1511iface vmbr2 inet static
1512 bridge_ports vxlan2
1513 bridge_stp off
1514 bridge_fd 0
1515 address 10.0.2.254
1516 netmask 255.255.255.0
1517 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1518 vrf vrf1
fc8f7b53
AD
1519 ip-forward on
1520 ip6-forward on
1521 arp-accept on
76b6e857
AD
1522
1523auto vxlan3
1524iface vxlan3 inet manual
edcf2118 1525 vxlan-id 3
76b6e857
AD
1526 vxlan-local-tunnelip 192.168.0.1
1527 bridge-learning off
1528 bridge-arp-nd-suppress on
1529 bridge-unicast-flood off
1530 bridge-multicast-flood off
1531
1532auto vmbr3
1533iface vmbr3 inet static
1534 bridge_ports vxlan3
1535 bridge_stp off
1536 bridge_fd 0
1537 address 10.0.3.254
1538 netmask 255.255.255.0
1539 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1540 vrf vrf1
fc8f7b53
AD
1541 ip-forward on
1542 ip6-forward on
1543 arp-accept on
76b6e857
AD
1544
1545#interconnect vxlan-vfr l3vni
1546auto vxlan4000
1547iface vxlan4000 inet manual
edcf2118 1548 vxlan-id 4000
76b6e857
AD
1549 vxlan-local-tunnelip 192.168.0.1
1550 bridge-learning off
1551 bridge-arp-nd-suppress on
1552 bridge-unicast-flood off
1553 bridge-multicast-flood off
1554
1555auto vmbr4000
1556iface vmbr4000 inet manual
1557 bridge_ports vxlan4000
1558 bridge_stp off
1559 bridge_fd 0
76b6e857
AD
1560 vrf vrf1
1561----
1562
1563
1564frr.conf
1565
1566----
1567vrf vrf1
1568 vni 4000
250e8aa6 1569 exit-vrf
76b6e857
AD
1570!
1571router bgp 1234
1572 bgp router-id 192.168.0.1
1573 no bgp default ipv4-unicast
1574 coalesce-time 1000
1575 neighbor 192.168.0.2 remote-as 1234
1576 neighbor 192.168.0.3 remote-as 1234
1577 !
250e8aa6
AD
1578 address-family ipv4 unicast
1579 import vrf vrf1
1580 exit-address-family
1581 !
76b6e857
AD
1582 address-family l2vpn evpn
1583 neighbor 192.168.0.2 activate
1584 neighbor 192.168.0.3 activate
1585 advertise-all-vni
1586 exit-address-family
1587!
1588router bgp 1234 vrf vrf1
1589!
76b6e857 1590 address-family l2vpn evpn
250e8aa6 1591 default-originate ipv4
76b6e857
AD
1592 exit-address-family
1593!
1594line vty
1595!
1596----
1597
1598
1599* node2
1600
1601----
1602auto vrf1
1603iface vrf1
1604 vrf-table auto
1605
1606auto eno1
1607iface eno1 inet manual
47cf2d10 1608 mtu 1550
4d3f6a2e 1609
76b6e857
AD
1610auto vmbr0
1611iface vmbr0 inet static
1612 address 192.168.0.2
1613 netmask 255.255.255.0
250e8aa6 1614 gateway 192.168.0.254
76b6e857
AD
1615 bridge_ports eno1
1616 bridge_stp off
1617 bridge_fd 0
1618
76b6e857
AD
1619auto vxlan2
1620iface vxlan2 inet manual
edcf2118 1621 vxlan-id 2
76b6e857
AD
1622 vxlan-local-tunnelip 192.168.0.2
1623 bridge-learning off
1624 bridge-arp-nd-suppress on
1625 bridge-unicast-flood off
1626 bridge-multicast-flood off
1627
1628auto vmbr2
1629iface vmbr2 inet static
1630 bridge_ports vxlan2
1631 bridge_stp off
1632 bridge_fd 0
1633 address 10.0.2.254
1634 netmask 255.255.255.0
1635 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1636 vrf vrf1
fc8f7b53
AD
1637 ip-forward on
1638 ip6-forward on
1639 arp-accept on
76b6e857
AD
1640
1641auto vxlan3
1642iface vxlan3 inet manual
edcf2118 1643 vxlan-id 3
76b6e857
AD
1644 vxlan-local-tunnelip 192.168.0.2
1645 bridge-learning off
1646 bridge-arp-nd-suppress on
1647 bridge-unicast-flood off
1648 bridge-multicast-flood off
1649
1650auto vmbr3
1651iface vmbr3 inet static
1652 bridge_ports vxlan3
1653 bridge_stp off
1654 bridge_fd 0
1655 address 10.0.3.254
1656 netmask 255.255.255.0
1657 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1658 vrf vrf1
fc8f7b53
AD
1659 ip-forward on
1660 ip6-forward on
1661 arp-accept on
76b6e857
AD
1662
1663#interconnect vxlan-vfr l3vni
1664auto vxlan4000
1665iface vxlan4000 inet manual
edcf2118 1666 vxlan-id 4000
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
1673
1674auto vmbr4000
1675iface vmbr4000 inet manual
1676 bridge_ports vxlan4000
1677 bridge_stp off
1678 bridge_fd 0
76b6e857
AD
1679 vrf vrf1
1680----
1681
1682
1683frr.conf
1684
1685----
1686vrf vrf1
1687 vni 4000
250e8aa6 1688 exit-vrf
76b6e857
AD
1689!
1690router bgp 1234
1691 bgp router-id 192.168.0.2
1692 no bgp default ipv4-unicast
1693 coalesce-time 1000
1694 neighbor 192.168.0.1 remote-as 1234
1695 neighbor 192.168.0.3 remote-as 1234
1696 !
250e8aa6
AD
1697 address-family ipv4 unicast
1698 import vrf vrf1
1699 exit-address-family
1700 !
76b6e857
AD
1701 address-family l2vpn evpn
1702 neighbor 192.168.0.1 activate
1703 neighbor 192.168.0.3 activate
1704 advertise-all-vni
1705 exit-address-family
1706!
76b6e857 1707 address-family l2vpn evpn
250e8aa6 1708 default-originate ipv4
76b6e857
AD
1709 exit-address-family
1710!
1711line vty
1712!
1713----
1714
1715
1716* node3
1717
1718----
1719auto vrf1
1720iface vrf1
1721 vrf-table auto
1722
1723auto eno1
1724iface eno1 inet manual
47cf2d10
AD
1725 mtu 1550
1726
76b6e857
AD
1727auto vmbr0
1728iface vmbr0 inet static
1729 address 192.168.0.3
1730 netmask 255.255.255.0
250e8aa6 1731 gateway 192.168.0.254
76b6e857
AD
1732 bridge_ports eno1
1733 bridge_stp off
1734 bridge_fd 0
1735
76b6e857
AD
1736auto vxlan2
1737iface vxlan2 inet manual
edcf2118 1738 vxlan-id 2
76b6e857
AD
1739 vxlan-local-tunnelip 192.168.0.3
1740 bridge-learning off
1741 bridge-arp-nd-suppress on
1742 bridge-unicast-flood off
1743 bridge-multicast-flood off
1744
1745auto vmbr2
1746iface vmbr2 inet static
1747 bridge_ports vxlan2
1748 bridge_stp off
1749 bridge_fd 0
1750 address 10.0.2.254
1751 netmask 255.255.255.0
1752 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr2
1753 vrf vrf1
fc8f7b53
AD
1754 ip-forward on
1755 ip6-forward on
1756 arp-accept on
76b6e857
AD
1757
1758auto vxlan3
1759iface vxlan3 inet manual
edcf2118 1760 vxlan-id 3
76b6e857
AD
1761 vxlan-local-tunnelip 192.168.0.3
1762 bridge-learning off
1763 bridge-arp-nd-suppress on
1764 bridge-unicast-flood off
1765 bridge-multicast-flood off
1766
1767auto vmbr3
1768iface vmbr3 inet static
1769 bridge_ports vxlan3
1770 bridge_stp off
1771 bridge_fd 0
1772 address 10.0.3.254
1773 netmask 255.255.255.0
1774 hwaddress 44:39:39:FF:40:94 #must be same on each node vmbr3
1775 vrf vrf1
fc8f7b53
AD
1776 ip-forward on
1777 ip6-forward on
1778 arp-accept on
76b6e857
AD
1779
1780#interconnect vxlan-vfr l3vni
1781auto vxlan4000
1782iface vxlan4000 inet manual
edcf2118 1783 vxlan-id 4000
76b6e857
AD
1784 vxlan-local-tunnelip 192.168.0.3
1785 bridge-learning off
1786 bridge-arp-nd-suppress on
1787 bridge-unicast-flood off
1788 bridge-multicast-flood off
1789
1790
1791auto vmbr4000
1792iface vmbr4000 inet manual
1793 bridge_ports vxlan4000
1794 bridge_stp off
1795 bridge_fd 0
76b6e857
AD
1796 vrf vrf1
1797----
1798
1799
1800frr.conf
1801
1802----
1803vrf vrf1
1804 vni 4000
250e8aa6 1805 exit-vrf
76b6e857
AD
1806!
1807router bgp 1234
1808 bgp router-id 192.168.0.3
1809 no bgp default ipv4-unicast
1810 coalesce-time 1000
1811 neighbor 192.168.0.1 remote-as 1234
1812 neighbor 192.168.0.2 remote-as 1234
1813 !
250e8aa6
AD
1814 address-family ipv4 unicast
1815 import vrf vrf1
1816 exit-address-family
1817 !
76b6e857
AD
1818 address-family l2vpn evpn
1819 neighbor 192.168.0.1 activate
1820 neighbor 192.168.0.2 activate
1821 advertise-all-vni
1822 exit-address-family
1823!
1824router bgp 1234 vrf vrf1
1825!
76b6e857 1826 address-family l2vpn evpn
250e8aa6 1827 default-originate ipv4
76b6e857
AD
1828 exit-address-family
1829!
1830line vty
1831!
1832----
1833
1834Note
1835^^^^
1836
8adeb0eb
TL
1837If your external router doesn't support 'ECMP static routes' to reach multiple
1838{pve} nodes, you can setup an HA floating vip on proxmox nodes by using the
1839Virtual Router Redundancy Protocol (VRRP).
76b6e857 1840
8adeb0eb
TL
1841In this example, we will setup an floating 192.168.0.10 IP on node1 and node2.
1842Node1 is the primary with failover to node2 in case of outage.
76b6e857 1843
8adeb0eb 1844This setup currently needs 'vrrpd' package (`apt install vrrpd`).
250e8aa6 1845#TODO : It should be possible to do it with frr directly with last version.
76b6e857
AD
1846
1847* node1
1848
1849----
250e8aa6
AD
1850auto vmbr0
1851iface vmbr0 inet static
1852 address 192.168.0.1
1853 netmask 255.255.255.0
1854 gateway 192.168.0.254
1855 bridge_ports eno1
1856 bridge_stp off
1857 bridge_fd 0
1858 vrrp-id 1
1859 vrrp-priority 1
1860 vrrp-virtual-ip 192.168.0.10
76b6e857
AD
1861----
1862
1863* node2
1864
1865----
250e8aa6
AD
1866auto vmbr0
1867iface vmbr0 inet static
1868 address 192.168.0.2
1869 netmask 255.255.255.0
1870 gateway 192.168.0.254
1871 bridge_ports eno1
1872 bridge_stp off
1873 bridge_fd 0
1874 vrrp-id 1
1875 vrrp-priority 2
1876 vrrp-virtual-ip 192.168.0.10
76b6e857
AD
1877----
1878
1879
8adeb0eb 1880Route Reflectors
846e9430 1881^^^^^^^^^^^^^^^^
8adeb0eb
TL
1882If you have a lot of proxmox nodes, or multiple proxmox clusters, you may want
1883to avoid that all node peers with each others nodes.
1884For this, you can create dedicated route reflectors (RR) servers. As a RR is a
1885single point of failure, a minimum of two servers acting as an RR is highly
1886recommended for redundancy.
1887
1888Below is an example of configuration with 'frr', with `rrserver1
1889(192.168.0.200)' and `rrserver2 (192.168.0.201)`.
846e9430
AD
1890
1891rrserver1
1892----
1893router bgp 1234
1894 bgp router-id 192.168.0.200
4d3f6a2e 1895 bgp cluster-id 1.1.1.1 #cluster-id must be the same on each route reflector
846e9430
AD
1896 bgp log-neighbor-changes
1897 no bgp default ipv4-unicast
1898 neighbor fabric peer-group
1899 neighbor fabric remote-as 1234
1900 neighbor fabric capability extended-nexthop
1901 neighbor fabric update-source 192.168.0.200
1902 bgp listen range 192.168.0.0/24 peer-group fabric #allow any proxmoxnode client in the network range
1903 !
1904 address-family l2vpn evpn
1905 neighbor fabric activate
1906 neighbor fabric route-reflector-client
1907 neighbor fabric allowas-in
1908 exit-address-family
1909 !
1910 exit
1911!
1912---
1913
1914rrserver2
1915----
1916router bgp 1234
1917 bgp router-id 192.168.0.201
4d3f6a2e 1918 bgp cluster-id 1.1.1.1
846e9430
AD
1919 bgp log-neighbor-changes
1920 no bgp default ipv4-unicast
1921 neighbor fabric peer-group
1922 neighbor fabric remote-as 1234
1923 neighbor fabric capability extended-nexthop
1924 neighbor fabric update-source 192.168.0.201
1925 bgp listen range 192.168.0.0/24 peer-group fabric
1926 !
1927 address-family l2vpn evpn
1928 neighbor fabric activate
1929 neighbor fabric route-reflector-client
1930 neighbor fabric allowas-in
1931 exit-address-family
1932 !
1933 exit
1934!
1935---
1936
1937proxmoxnode(s)
1938----
1939router bgp 1234
1940 bgp router-id 192.168.0.x
1941 no bgp default ipv4-unicast
1942 coalesce-time 1000
1943 neighbor 192.168.0.200 remote-as 1234
1944 neighbor 192.168.0.201 remote-as 1234
1945 !
1946 address-family ipv4 unicast
1947 import vrf vrf1
1948 exit-address-family
1949 !
1950 address-family l2vpn evpn
1951 neighbor 192.168.0.200 activate
1952 neighbor 192.168.0.201 activate
1953 advertise-all-vni
1954 exit-address-family
1955!
1956----
1957
250e8aa6 1958#TODO : Documentation with bgp upstream router.