Open vincentmli opened 2 weeks ago
need to change keepalived addon as BPFire core package as part of iso/img build
move config/rootfiles/packages/keepalived
to config/rootfiles/common/keepalived
since both red0
and green0
requires shared/floating virtual IP, virtual IP on red0 for load balancer virtual IP, virtual IP on green0 for virtual gateway IP to endpoint/backend server, so we need to create keepalived VRRP instance for both red0
and green0
interface, for such UI, html/cgi-bin/dhcp.cgi
code could be referenced.
dhcp service in HA can be tricky, maybe disable dhcp in HA for simplicity :)
dhcp service in HA can be tricky, maybe disable dhcp in HA for simplicity :)
it looks the dhcp router ip is hard coded to green0 interface ip from html/cgi-bin/dhcp.cgi
#Subnet range definition
foreach my $itf (@ITFs) {
print FILE "\toption routers " . $netsettings{"${itf}_ADDRESS"} . ";\n";
we could add DHCP UI with option routers
with a shared/floadting ip between HA as default gateway of backend/endpoint server in HA
Add BPFire WebUI for keepalived to create virtual IP for LoxiLB load balancer. a typical keepalived configuration
above keepalived configuration could be used in Perl here doc from WebUI to simplify the generation of keepalived configuration