Stand: 2024-04-27
Ziel: Proxmox EVPN ausprobieren
Proxmox-Cluster aus zwei Nodes:
Zusaetzlich gibt es einen BGP Router gegenueber dem die Nodes die IPs der Gaeste announcen sollen:
/etc/pve/sdn/controllers.cfg
evpn: epn-ctrl asn 65000 peers 10.99.42.101,10.99.42.102 bgp: bgppvetest01 asn 65100 node pvetest01 peers 10.99.42.104 bgp-multipath-as-path-relax 0 ebgp 1 bgp: bgppvetest02 asn 65200 node pvetest02 peers 10.99.42.104 bgp-multipath-as-path-relax 0 ebgp 1
zones.cfg:
evpn: evpn01 controller epn-ctrl vrf-vxlan 5000 exitnodes pvetest01,pvetest02 ipam pve mac BC:24:11:1C:31:48
vnets.cfg:
vnet: net01 zone evpn01 tag 1000
subnets.cfg:
subnet: evpn01-100.100.100.0-24 vnet net01 dhcp-range start-address=100.100.100.100,end-address=100.100.100.120 gateway 100.100.100.1 snat 1
In /etc/frr/daemons 'bgpd=yes
' setzen
protocol bgp pvetest01 { local 10.99.42.104 as 64512; neighbor 10.99.42.101 as 65100; hold time 90; # Default is 240 ipv4 { import all; export none; }; ipv6 { import all; export none; }; } # BGP example, explicit name 'uplink1' is used instead of default 'bgp1' protocol bgp pvetest02 { local 10.99.42.104 as 64512; neighbor 10.99.42.102 as 65200; hold time 90; # Default is 240 ipv4 { import all; export none; }; ipv6 { import all; export none; }; }