Last active
December 27, 2022 08:15
-
-
Save gtaylor/e5273bf7c632574b2a0c3977cf7d3723 to your computer and use it in GitHub Desktop.
EdgeRouter + Calico BGP peering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: crd.projectcalico.org/v1 | |
kind: BGPPeer | |
metadata: | |
name: global | |
spec: | |
peerIP: 192.168.2.1 | |
asNumber: 1 | |
--- | |
apiVersion: crd.projectcalico.org/v1 | |
kind: BGPConfiguration | |
metadata: | |
name: default | |
spec: | |
logSeverityScreen: Info | |
nodeToNodeMeshEnabled: true | |
asNumber: 64512 | |
serviceClusterIPs: | |
- cidr: 10.2.0.0/16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure | |
set protocols static route 10.1.0.0/16 next-hop 192.168.2.1 description "Kubernetes pods" | |
set protocols static route 10.2.0.0/16 next-hop 192.168.2.1 description "Kubernetes services" | |
set protocols bgp 1 parameters router-id 192.168.2.1 | |
set protocols bgp 1 neighbor 192.168.2.68 remote-as 64512 | |
commit ; save | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment