Adding BGP Configuration
- Edit the YAML file for adding BGP configuration.
Configure a new BGP. Ensure that the name and ASNumber of the BGP do not conflict with those of existing BGPs.
1 2 3 4 5 6 7 8 9 10
apiVersion: projectcalico.org/v3 kind: BGPConfiguration metadata: name: default spec: logSeverityScreen: Info nodeToNodeMeshEnabled: true asNumber: 63400 serviceClusterIPs: - cidr: 10.244.0.0/16
For details about parameter settings, see https://docs.projectcalico.org/reference/resources/bgpconfig.
- Add a BGP.
1calicoctl apply -f - < bgp.yaml
The following information indicates that the BGP is successfully added:
Successfully applied 1 'BGPConfiguration' resource(s)
- Run the following command to obtain the added BGP configuration information and output the information in wide format:
calicoctl get bgpConfiguration -o wide
NAME LOGSEVERITY MESHENAbLED ASNUMBER default Info true 63400
Parent topic: Managing BGP Configuration