Can anyone share a configuration with Calico and MetalLB Layer3?

580 views
Skip to first unread message

Mauricio J. Rojas Pino

unread,
Aug 2, 2021, 2:41:05 PM8/2/21
to metallb-users
Can anyone share a configuration with Calico and MetalLB Layer3?

This what I have so far:
Router configuration (SRLinux)
--{ running }--[ network-instance ip-vrf1 protocols bgp ]--
A:border# info
    autonomous-system 65200
    router-id 6.5.2.1
    group BGP-metalLB {
        admin-state enable
        export-policy export-all
        import-policy import-all
    }
    neighbor 192.168.101.20 {
        peer-as 65201
        peer-group BGP-metalLB
    }
    neighbor 192.168.101.21 {
        peer-as 65201
        peer-group BGP-metalLB
    }
    neighbor 192.168.101.30 {
        peer-as 65201
        peer-group BGP-metalLB
    }

[ctl-a1 ~]# cat metallb-config.yml
apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    peers:
    - peer-address: 6.5.2.1
      peer-asn: 65200
      my-asn: 65201
    address-pools:
    - name: default
      protocol: bgp
      addresses:
      - 192.168.110.0/24

I am not receiving routes from nodes.
Not sure if Calico is interfering.

Thanks,
Mau

Mauricio J. Rojas Pino

unread,
Sep 23, 2021, 9:09:28 AM9/23/21
to metallb-users
Finally I made it work with Nokia SRL routers with an alternative solution to what is proposed in the site, to keep using the ToR ones.
I have to change the image of the container in the metallb installation manifest though

Best,
Mau

Rodrigo Campos

unread,
Sep 23, 2021, 9:22:45 AM9/23/21
to Mauricio J. Rojas Pino, metallb-users
Cool it is working!

You can find other examples of calico with metalLB here:
https://github.com/kinvolk/lokomotive (see Equinix Metal platform,
there we use MetalLB). However, calico doesn't connect to the ToR
switch, so there is really no problem and it just works. But in case
it is useful for some other reason for you :)
> --
> You received this message because you are subscribed to the Google Groups "metallb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to metallb-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/metallb-users/8250e77d-cd5a-4fe5-a3ef-fa1a58b073bcn%40googlegroups.com.



--
Rodrigo Campos
---
Kinvolk GmbH | Adalbertstr.6a, 10999 Berlin | tel: +491755589364
Geschäftsführer/Directors: Benjamin Owen Orndorff
Registergericht/Court of registration: Amtsgericht Charlottenburg
Registernummer/Registration number: HRB 171414 B
Ust-ID-Nummer/VAT ID number: DE302207000

Mauricio J. Rojas Pino

unread,
Sep 23, 2021, 10:03:53 AM9/23/21
to Rodrigo Campos, metallb-users
Awesome, thanks man!
Now I am trying to setup ECMP with MetalLB. Let you know how it goes

Rodrigo Campos

unread,
Sep 23, 2021, 10:15:53 AM9/23/21
to Mauricio J. Rojas Pino, metallb-users
It works just fine, you can advertise from several speakers and it
works out of the box. The setup there in Equinix Metal advertises from
multiple peers and then Equinix MEtal routers do ECMP.

On Thu, Sep 23, 2021 at 4:03 PM Mauricio J. Rojas Pino
Reply all
Reply to author
Forward
0 new messages