Configuring a public network
While Ceph functions well with only a public network, you can establish more specific criteria, including multiple IP networks, for your public network.
Before you begin
About this task
To configure Ceph networks, use the config set command within the
cephadm shell.Note: The IP addresses you set in your network configuration are
different from the public-facing IP addresses that network clients might use to access your
service.
Ceph can work with only a public network. You can also establish more specific criteria, including multiple IP networks for your public network.
You can also establish a separate, private cluster network to handle OSD heartbeat, object
replication, and recovery traffic. For more information about the private network, see Configuring a private network.
Note:
- Ceph uses CIDR notation for subnets, for example, 10.0.0.0/24. Typical internal IP networks are often 192.168.0.0/24 or 10.0.0.0/24.
- If you specify more than one IP address for either the public or the cluster network, the subnets within the network must be capable of routing to each other. Make sure that you include each IP address in your IP tables, and open ports for them as necessary.
Using the public network configuration allows you to specifically define IP addresses and subnets for the public network.
For common option descriptions and usage information, see Network configuration options.