IPAM 配置文件是使用 OCI 凭据创建的。

要创建 IPAM 配置文件,请执行以下操作:

过程

  1. 登录到 CLI Shell。
  2. 执行 configure ipamdnsproviderprofile <profile name> 命令。
  3. 输入以下详细信息:
    • type:将值设置为 IPAMDNS_TYPE_OCI

    • oci_profile:

      • tenancy:租约 OCID

      • region:OCI 区域名称

      • cloud_credentials_ref:对上一节中创建的 Cloud Connector 用户的引用。可以使用 Tab 键以列出用户。

      • vcn_compartment_id:VCN 的隔离区 OCID

      • vcn_id:VCN OCID

    admin@10-0-0-77:~$ shell
    Login: admin
    Password:
    [admin:10-0-0-77]: > configure ipamdnsproviderprofile ocprof
    [admin:10-0-0-77]: > configure ipamdnsproviderprofile ocprof2
    [admin:10-0-0-77]: ipamdnsproviderprofile> type ipamdns_type_oci
    cloud_credentials_ref   Credentials to access oracle cloud                                                                                                              
    region                  Region in which Oracle cloud resource resides                                                                                                   
    tenancy                 Oracle Cloud Id for tenant aka root compartment                                                                                                 
    vcn_compartment_id      Oracle cloud compartment id in which VCN resides                                                                                                
    vcn_id                  Virtual Cloud network id where virtual ip will belT

结果

要查看 OCI IPAM 配置,请运行以下命令:

[admin:10-0-0-77]: > show ipamdnsproviderprofile prof1
+-----------------+------------------------------------------------------------+
|Field            |Value                                                       |
+-----------------+------------------------------------------------------------+
|uuid             |ipamdnsproviderprofile-d67ad96c-8bbf-48ff-ab40-5580621c1c69 |
|name             |prof1                                                       |
|type             |IPAMDNS_TYPE_OCI                                            |
|oci_profile      |                                                            |
|   tenancy       |ocid1.tenancy.oc1..aaaaaaaay7s6icq755xqlytpl33i7ysjzzb2kv3vk|
|                 |itg5ilsxanrzqmsaha                                          |
|   region        |us-phoenix-1                                                |
|  cloud_         | ocuser                                                     | 
|  credentials_ref|                                                            |
|  vcn_compartment|ocid1.compartment.oc1..aaaaaaaa5trt72k3smsky7fz27gqlucbfa2l |
|_id              |mynshky4hl4r7gom6wcphmrq                                    | 
|  vcn_id         |ocid1.vcn.oc1.phx.aaaaaaaangx3fookzumnhck3st5obrruwsmxiqgtx |
|                 |2ic7zoharlhwi262gla                                         |
|allocate_ip_in_  |False                                                       |
|vrf              |                                                            |
|tenant_ref       |admin                                                       |
+-----------------+------------------------------------------------------------+