Home / Platform management / Networking / External IP Pools / Creating an External IP Pool

Creating an External IP Pool

An external IP pool is a collection of IP addresses. MetalLB retrieves IPs from the external ip pool to provide external access IPs for LoadBalancer type service.

Prerequisites

To use a BGP type external IP pool, please contact the administrator to enable the related features.

Notes

BGP mode does not support the IPv6 protocol.

Constraints and Limitations

The IP resources of the external IP pool need to meet the following conditions:

Deploying the MetalLB Plugin

Using the external IP pool relies on the MetalLB plugin.

Steps

  1. In the left navigation bar, click Clusters > Clusters.

  2. Click the cluster name of the cluster where the plugin is to be deployed.

  3. On the Plugins tab, click next to MetalLB > Deploy.

  4. Wait for the deployment status to become Deployed to complete the deployment.

Creating an External IP Pool

  1. In the left navigation bar, click Networking > External IP Pools.

  2. Click Create External IP Pools.

  3. Configure some parameters according to the following descriptions.

    Parameter Description
    Type
    • L2: Communicates and forwards based on MAC addresses, suitable for small-scale or local networks requiring simple and fast Layer 2 switching, with advantages of simple configuration and low latency.
    • BGP (Alpha): Routes and forwards based on IP addresses, using the BGP protocol to exchange routing information, suitable for large-scale networks requiring complex routing and spanning multiple autonomous systems, with advantages of high scalability and high reliability.
    IP Resources Supports input in the form of CIDR and IP ranges, click Add to support multiple inputs, examples are as follows:
    CIDR: 192.168.1.1/24.
    IP Range: 192.168.2.1 ~ 192.168.2.255.
    Available Nodes By default, all nodes are selected. You can click the drop-down box to select labels to filter available nodes. Click Show node detail to view information about the available nodes.

    Note: When using the BGP type, the available nodes are the next-hop nodes, ensure that the selected available nodes are a subset of the BGP connection nodes .
    BGP Peer Select BGP peers, refer to BGP Peer for specific configuration details.
  4. Click Create.

Viewing Alert Policies

  1. In the left navigation bar, click Networking > External IP Pools.

  2. Click View Rules in the upper right corner of the page to view the general alert policies for MetalLB.