forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
48 lines
7.4 KiB
HTML
48 lines
7.4 KiB
HTML
<a name="vpc_vpc_0007"></a><a name="vpc_vpc_0007"></a>
|
|
|
|
<h1 class="topictitle1">Adding a Secondary IPv4 CIDR Block to a VPC</h1>
|
|
<div id="body8662426"><div class="section" id="vpc_vpc_0007__en-us_topic_0286956167_section15874124165815"><h4 class="sectiontitle">Scenarios</h4><p id="vpc_vpc_0007__en-us_topic_0286956167_p496186301">When you create a VPC, you specify a primary IPv4 CIDR block for the VPC, which cannot be changed. To extend the IP address range of your VPC, you can add a secondary CIDR block to the VPC. Five secondary CIDR blocks can be added.</p>
|
|
<div class="note" id="vpc_vpc_0007__note7560111713228"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="vpc_vpc_0007__p2058772916572">If the <a href="vpc_vpc_0007.html">secondary IPv4 CIDR block</a> function is available in a region, the CIDR block of a VPC in this region cannot be modified through the console. You can call an API to modify VPC CIDR block by referring to <a href="https://docs.otc.t-systems.com/virtual-private-cloud/api-ref/apis/virtual_private_cloud/updating_vpc_information.html#vpc-api01-0004" target="_blank" rel="noopener noreferrer">Updating VPC Information</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="vpc_vpc_0007__en-us_topic_0286956167_section5667204411244"><h4 class="sectiontitle">Notes and Constraints</h4><ul id="vpc_vpc_0007__en-us_topic_0286956167_ul15695104142516"><li id="vpc_vpc_0007__li410323915124">You can allocate a subnet from either a primary or a secondary CIDR block of a VPC. A subnet cannot use both the primary and the secondary CIDR blocks.<p id="vpc_vpc_0007__p1137671981310"><a name="vpc_vpc_0007__li410323915124"></a><a name="li410323915124"></a>Subnets in the same VPC can communicate with each other by default, even if some subnets are allocated from the primary CIDR block and some are from the secondary CIDR block of a VPC.</p>
|
|
</li><li id="vpc_vpc_0007__li1557812251603">If a subnet in a secondary CIDR block of your VPC is the same as or overlaps with the destination of an existing route in the VPC route table, the existing route does not take effect.<p id="vpc_vpc_0007__p12736182911717"><a name="vpc_vpc_0007__li1557812251603"></a><a name="li1557812251603"></a>If you create a subnet in a secondary CIDR block of your VPC, a route (the destination is the subnet CIDR block and the next hop is <strong id="vpc_vpc_0007__b410484595910">Local</strong>) is automatically added to your VPC route table. This route allows communications within the VPC and has a higher priority than any other routes in the VPC route table. For example, if a VPC route table has a route with the VPC peering connection as the next hop and 100.20.0.0/24 as the destination, and a route for the subnet in the secondary CIDR block has a destination of 100.20.0.0/16, 100.20.0.0/16 and 100.20.0.0/24 overlaps and traffic will be forwarded through the route of the subnet.</p>
|
|
</li><li id="vpc_vpc_0007__li127451342791"><a href="#vpc_vpc_0007__table1060431941314">Table 1</a> lists the secondary CIDR blocks that are not supported.
|
|
<div class="tablenoborder"><a name="vpc_vpc_0007__table1060431941314"></a><a name="table1060431941314"></a><table cellpadding="4" cellspacing="0" summary="" id="vpc_vpc_0007__table1060431941314" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Restricted secondary CIDR blocks</caption><thead align="left"><tr id="vpc_vpc_0007__row1960461912134"><th align="left" class="cellrowborder" valign="top" width="30.659999999999997%" id="mcps1.3.2.2.3.2.2.3.1.1"><p id="vpc_vpc_0007__p460451981314">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.34%" id="mcps1.3.2.2.3.2.2.3.1.2"><p id="vpc_vpc_0007__p17604131916132">CIDR Block (Not Supported)</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="vpc_vpc_0007__row13604171921313"><td class="cellrowborder" valign="top" width="30.659999999999997%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="vpc_vpc_0007__p16604719171319">Reserved private CIDR blocks</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.34%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><ul id="vpc_vpc_0007__ul34476318391"><li id="vpc_vpc_0007__li244711313910">172.31.0.0/16</li><li id="vpc_vpc_0007__li3447143113911">192.168.0.0/16</li><li id="vpc_vpc_0007__li10447113163919">In-use primary CIDR blocks</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_vpc_0007__row1760415199134"><td class="cellrowborder" valign="top" width="30.659999999999997%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="vpc_vpc_0007__p14604819171318">Reserved system CIDR blocks</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.34%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><ul id="vpc_vpc_0007__ul2862133944018"><li id="vpc_vpc_0007__li9862153954016">100.64.0.0/10</li><li id="vpc_vpc_0007__li198621739154016">214.0.0.0/7</li><li id="vpc_vpc_0007__li98622392402">198.18.0.0/15</li><li id="vpc_vpc_0007__li986273974019">169.254.0.0/16</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="vpc_vpc_0007__row14345244391"><td class="cellrowborder" valign="top" width="30.659999999999997%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="vpc_vpc_0007__p33442403913">Reserved public CIDR blocks</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.34%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><ul id="vpc_vpc_0007__ul1322264184914"><li id="vpc_vpc_0007__li3222144118494">0.0.0.0/8</li><li id="vpc_vpc_0007__li1222211416495">127.0.0.0/8</li><li id="vpc_vpc_0007__li1422224112499">240.0.0.0/4</li><li id="vpc_vpc_0007__li1122213414495">255.255.255.255/32</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="vpc_vpc_0007__en-us_topic_0286956167_section2390192084013"><h4 class="sectiontitle">Procedure</h4><ol id="vpc_vpc_0007__en-us_topic_0286956167_o1cb28011615e41189c8b7264b8ccd91e"><li id="vpc_vpc_0007__en-us_topic_0286956167_li840318282158">Log in to the management console.</li><li id="vpc_vpc_0007__li81181942165916">Click <span><img id="vpc_vpc_0007__image911894295911" src="en-us_image_0000001818983054.png"></span> in the upper left corner and select the desired region and project.</li><li id="vpc_vpc_0007__li65321958215">Click <span><img id="vpc_vpc_0007__en-us_topic_0118498850_image8750174734412" src="en-us_image_0000001865663001.png"></span> in the upper left corner and choose <strong id="vpc_vpc_0007__b964363762618"><span id="vpc_vpc_0007__text3643123713262">Network</span><span id="vpc_vpc_0007__text16643193752615"></span></strong> > <strong id="vpc_vpc_0007__b76430370261">Virtual Private Cloud</strong>.<p id="vpc_vpc_0007__p1182103318256">The <strong id="vpc_vpc_0007__b1799014316268">Virtual Private Cloud</strong> page is displayed.</p>
|
|
</li><li id="vpc_vpc_0007__en-us_topic_0286956167_li57871970171944">In the VPC list, locate the target VPC and click <strong id="vpc_vpc_0007__b19305163112386">Edit CIDR Block</strong> in the <strong id="vpc_vpc_0007__b730533116387">Operation</strong> column.<p id="vpc_vpc_0007__en-us_topic_0118499114_p08764106566">The <strong id="vpc_vpc_0007__b111160689981729">Edit CIDR Block</strong> dialog box is displayed.</p>
|
|
</li><li id="vpc_vpc_0007__en-us_topic_0286956167_li2310100124817">Click <strong id="vpc_vpc_0007__b184833963620">Add Secondary IPv4 CIDR Block</strong>.</li><li id="vpc_vpc_0007__en-us_topic_0286956167_li4180273916271">Enter the secondary CIDR block and click <strong id="vpc_vpc_0007__b0541144483012">OK</strong>.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_0003.html">VPC</a></div>
|
|
</div>
|
|
</div>
|
|
|