我要评分
获取效率
正确性
完整性
易理解

Adding BGP Configuration

  1. 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.

  2. Add a BGP.
    1
    calicoctl apply -f - < bgp.yaml
    

    The following information indicates that the BGP is successfully added:

    Successfully applied 1 'BGPConfiguration' resource(s)
  3. 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