forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
120 lines
15 KiB
HTML
120 lines
15 KiB
HTML
<a name="cce_faq_00406"></a><a name="cce_faq_00406"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Configure the IPv6 Service CIDR Block When Creating a CCE Turbo Cluster?</h1>
|
|
<div id="body0000001482402412"><div class="section" id="cce_faq_00406__section41111853173211"><h4 class="sectiontitle">Context</h4><p id="cce_faq_00406__p1624913435176">To create an IPv4/IPv6 dual-stack CCE Turbo cluster, you need to set an IPv6 Service CIDR block. The default CIDR block is <strong id="cce_faq_00406__b2146204142713">fc00::/112</strong>, which contains 65,536 IPv6 addresses. If you need to customize a Service CIDR block, you can refer to this section.</p>
|
|
</div>
|
|
<div class="section" id="cce_faq_00406__section1688811352009"><h4 class="sectiontitle">IPv6</h4><p id="cce_faq_00406__p449624343810"><strong id="cce_faq_00406__b14601156113816">IPv6 address</strong></p>
|
|
<p id="cce_faq_00406__p2612438901">An IPv6 address is a 128-bit binary string, four times the length of an IPv4 address. Therefore, the decimal format of IPv4 addresses is no longer applicable. IPv6 addresses are expressed in hexadecimal format. To convert a 128-bit binary string, it is transformed into a 32-bit hexadecimal string. These hexadecimal strings are grouped into sets of four (case insensitive) and separated by a colon (:). IPv6 addresses are divided into eight groups.</p>
|
|
<p id="cce_faq_00406__p1768010357179">An IPv6 address can be omitted in the following ways:</p>
|
|
<ul id="cce_faq_00406__ul128581858111714"><li id="cce_faq_00406__li4858135851711">Omission of leading 0s: 0s can be omitted if the colon group starts with 0s. The following IPv6 addresses are the same.<ul id="cce_faq_00406__ul24152094205"><li id="cce_faq_00406__li1391199209">ff01:<strong id="cce_faq_00406__b61777568219">0</strong>d28:<strong id="cce_faq_00406__b5177175611213">0</strong>3ee:<strong id="cce_faq_00406__b0177105632112">0000</strong>:<strong id="cce_faq_00406__b1177155617212">0000</strong>:<strong id="cce_faq_00406__b1617813564212">0000</strong>:<strong id="cce_faq_00406__b517816568214">0000</strong>:<strong id="cce_faq_00406__b01783560213">0</strong>c23</li><li id="cce_faq_00406__li73918390223">ff01:d28:3ee:<strong id="cce_faq_00406__b891274132218">0000</strong>:<strong id="cce_faq_00406__b9912104122218">0000</strong>:<strong id="cce_faq_00406__b20912144172213">0000</strong>:<strong id="cce_faq_00406__b591204102217">0000</strong>:c23</li><li id="cce_faq_00406__li152877110249">ff01:d28:3ee:<strong id="cce_faq_00406__b951818122419">0</strong>:<strong id="cce_faq_00406__b1551851202411">0</strong>:<strong id="cce_faq_00406__b1351811172420">0</strong>:<strong id="cce_faq_00406__b165181717249">0</strong>:c23</li></ul>
|
|
</li><li id="cce_faq_00406__li723615267181">Omission of all-0s hextets: You can use a double colon (::) to represent a single contiguous string of all-0s segments. A double colon (::) can be used only once.<div class="p" id="cce_faq_00406__p19243132621813"><a name="cce_faq_00406__li723615267181"></a><a name="li723615267181"></a>Example:
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_faq_00406__table1524342621816" frame="border" border="1" rules="all"><thead align="left"><tr id="cce_faq_00406__row1724352614185"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.5.2.1.1.1.3.1.1"><p id="cce_faq_00406__p3243192611812">Before Omission</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.5.2.1.1.1.3.1.2"><p id="cce_faq_00406__p17243172611187">After Omission</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_faq_00406__row16243202611819"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.1 "><p id="cce_faq_00406__p182436263185">ff01:d28:3ee:<strong id="cce_faq_00406__b4517132572711">0</strong>:<strong id="cce_faq_00406__b165171325192716">0</strong>:<strong id="cce_faq_00406__b45171325162710">0</strong>:<strong id="cce_faq_00406__b20517192514273">0</strong>:c23</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.2 "><p id="cce_faq_00406__p12243152641818">ff01:d28:3ee::c23</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row62431526141812"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.1 "><p id="cce_faq_00406__p13243726151812">0:0:0:0:0:0:0:1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.2 "><p id="cce_faq_00406__p224342671810">::1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row18243132691818"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.1 "><p id="cce_faq_00406__p42432026131814">0:0:0:0:0:0:0:0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.5.2.1.1.1.3.1.2 "><p id="cce_faq_00406__p3243102617186">::</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</li></ul>
|
|
<p id="cce_faq_00406__p173894458282"><strong id="cce_faq_00406__b102342546181">IPv6 address segment</strong></p>
|
|
<p id="cce_faq_00406__p6615717396">An IPv6 address segment is usually expressed in CIDR format. It is usually represented by a slash (/) followed by a number, that is, <em id="cce_faq_00406__i167209393417">IPv6 address/Prefix length</em>. The function of the prefix is similar to that of the mask of the IPv4 address segment. The number of binary bits occupied by the network part represents the binary bits occupied by the network part. An IPv6 address consists of the network part and host part. The prefix specifies the number of bits occupied by the network part, and the remaining bits are the host part.</p>
|
|
<p id="cce_faq_00406__p970656112811">For example, <strong id="cce_faq_00406__b45741864485">fc00:d28::/32</strong> indicates an IPv6 address segment with a 32-bit prefix. The first 32 bits (<strong id="cce_faq_00406__b14439161417483">fc00:d28</strong> in binary mode) are the network part and the last 96 bits are available host part.</p>
|
|
</div>
|
|
<div class="section" id="cce_faq_00406__section26401630102812"><h4 class="sectiontitle">Constraints on IPv6 Service CIDR Blocks</h4><p id="cce_faq_00406__p1147210349163">When setting the cluster service CIDR block, note the following constraints:</p>
|
|
<ul id="cce_faq_00406__ul12472113410165"><li id="cce_faq_00406__li425685424710">The IPv6 Service CIDR block must belong to the <strong id="cce_faq_00406__b163217162526">fc00::/8</strong> CIDR block.<p id="cce_faq_00406__p1590465484714">The address is a unique local address (ULA). The ULA has a fixed prefix <strong id="cce_faq_00406__b4966185818525">fc00::/7</strong>, including <strong id="cce_faq_00406__b99661558105214">fc00::/8</strong> and <strong id="cce_faq_00406__b14967125813520">fd00::/8</strong>. The two ranges are similar to the dedicated IPv4 network addresses <strong id="cce_faq_00406__b22602578537">10.0.0.0/8</strong>, <strong id="cce_faq_00406__b17477135915311">172.16.0.0/12</strong>, and <strong id="cce_faq_00406__b1496835812526">192.168.0.0/16</strong>. They are equivalent to private CIDR blocks and can be used only on the local network.</p>
|
|
</li><li id="cce_faq_00406__li747373421611">The prefix ranges from 112 to 120. You can adjust the number of addresses by adjusting the prefix value. The maximum number of addresses is 65,536.</li></ul>
|
|
</div>
|
|
<div class="section" id="cce_faq_00406__section1011411055015"><h4 class="sectiontitle">Example of an IPv6 Service CIDR Block</h4><p id="cce_faq_00406__p1247513385424">According to the constraints, this section provides an example of setting an IPv6 CIDR block that contains 8192 IP addresses for your reference.</p>
|
|
<ol id="cce_faq_00406__ol15493194320617"><li id="cce_faq_00406__li74932431462"><span>Set the prefix length based on the number of addresses. The prefix length ranges from 112 to 120.</span><p><p id="cce_faq_00406__p128917303462">In this example, 8,192 IP addresses are required, which are represented by 13-bit binary strings. An IPv6 address has a total length of 128-bit binary strings. As a result, the prefix length of the IPv6 CIDR block is 115 (128-13). This means that the first 115 bits are used to distinguish the CIDR block, while the last 13 bits indicate 8,192 host IP addresses.</p>
|
|
<p id="cce_faq_00406__p1941593105416">The following table shows how many IP addresses are there in an IPv6 CIDR block with the prefix ranging from 112 to 120.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="cce_faq_00406__table123020141517" frame="border" border="1" rules="all"><thead align="left"><tr id="cce_faq_00406__row103021814165110"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.1.2.3.1.3.1.1"><p id="cce_faq_00406__p430220141511">Prefix Length</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.1.2.3.1.3.1.2"><p id="cce_faq_00406__p96001140125120">Number of IP Addresses</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="cce_faq_00406__row1530281475110"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p630261495117">112</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p1930311142510">65,536</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row1530316148512"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p23031414165112">113</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p13303161412517">32,768</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row10303101455118"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p930361419512">114</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p12303514115110">16,384</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row18961162715534"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p4961162713535">115</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p1996102715315">8,192</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row209187364533"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p0918173620539">116</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p17918133625316">4,096</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row127551239165316"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p87550398535">117</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p10755439185310">2,048</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row85639422531"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p656319420533">118</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p15563114218533">1,024</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row5808846185313"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p178081746175311">119</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p19808144655311">512</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="cce_faq_00406__row1994418168556"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.1 "><p id="cce_faq_00406__p169441016135514">120</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.1.2.3.1.3.1.2 "><p id="cce_faq_00406__p694401618554">256</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="cce_faq_00406__li149313430611"><span>Set the IPv6 network address, which must belong to the <strong id="cce_faq_00406__b199371025125712">fc00::/8</strong> CIDR block.</span><p><p id="cce_faq_00406__p92831820121510">In this example, the prefix length is 115. Because the network address must belong to the <strong id="cce_faq_00406__b5949103785813">fc00::/8</strong> CIDR block, the first 8-bit binary digits are fixed. The network address that can be modified ranges from the ninth bit to the 115th bit. The 116th bit to the 128th bit are the host part.</p>
|
|
<p id="cce_faq_00406__p4437728163118">If the IPv6 CIDR block is written in binary format, the following conditions must be met:</p>
|
|
<ul id="cce_faq_00406__ul52920327311"><li id="cce_faq_00406__li4292832193115">It must belong to <strong id="cce_faq_00406__b104061949133216">fc00::/8</strong>, and the first eight bits in the binary string cannot be modified. Otherwise, the IPv6 CIDR block does not belong to <strong id="cce_faq_00406__b1313715196331">fc00::/8</strong>. The CIDR block is fixed at <strong id="cce_faq_00406__b1157114181428">1111 1110</strong>, corresponding to <strong id="cce_faq_00406__b16163102634214">fc</strong> in hexadecimal format.</li><li id="cce_faq_00406__li1867114113328">The prefix length must be 115, and it must contain 8,192 IP addresses. The last 13 bits in the binary string are used to indicate the host IP address and are always 0.</li></ul>
|
|
<p id="cce_faq_00406__p64731834201616">The following shows an example and the information in red cannot be modified:</p>
|
|
<pre class="screen" id="cce_faq_00406__screen1878520361113">Binary: <strong id="cce_faq_00406__b73616141527">1111 1100</strong> **** **** ... ***<strong id="cce_faq_00406__b1879422281516">0 0000 0000 0000</strong>/115
|
|
| | | | | | | |
|
|
Hexadecimal: <strong id="cce_faq_00406__b19633114210289">f</strong> <strong id="cce_faq_00406__b6650114420285">c</strong> x x ... y <strong id="cce_faq_00406__b18176351182820">0</strong> <strong id="cce_faq_00406__b9677135512282">0</strong> <strong id="cce_faq_00406__b156961956132814">0</strong>/115</pre>
|
|
<p id="cce_faq_00406__p1856583395518"><strong id="cce_faq_00406__b4544118356">x</strong> is a hexadecimal string. The last digit of the 4-bit binary string corresponding to <strong id="cce_faq_00406__b142854219357">y</strong> is always <strong id="cce_faq_00406__b1798933123520">0</strong>. This means that the hexadecimal string <strong id="cce_faq_00406__b17198113183716">y</strong> can be <strong id="cce_faq_00406__b13236519143618">0</strong>, <strong id="cce_faq_00406__b186102117362">2</strong>, <strong id="cce_faq_00406__b1549662233610">4</strong>, <strong id="cce_faq_00406__b1597162423612">6</strong>, <strong id="cce_faq_00406__b1835742616360">8</strong>, <strong id="cce_faq_00406__b78371428183619">a</strong>, <strong id="cce_faq_00406__b6795318368">c</strong>, or <strong id="cce_faq_00406__b17538183613361">e</strong>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00146.html">Network Planning</a></div>
|
|
</div>
|
|
</div>
|
|
|