Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to assign one or more secondary private IP addresses to an elastic Nic

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to assign one or more secondary private IP addresses to an elastic Nic. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

AssignPrivateIpAddresses

Assign one or more secondary private IP addresses to an elastic network card. At the same time, you can specify the CIDR private IP address of the virtual switch (VSwitch) to which the Nic belongs, or automatically create a private IP address by specifying the number of private network addresses.

Description

Only elastic NICs in available (Available) or bound (InUse) states are supported.

When operating the primary network card, the instance attached to the network card must be in a running (Running) or stopped (Stopped) state.

When the network card is available (Available), a maximum of 10 secondary private IP addresses can be assigned. Once mounted to an instance, the number of secondary private IP addresses that can be assigned by the Nic will be limited by the instance specification. For more details, see the example specification family.

Request parameter

Return parameters

All are common return parameters. See common return parameters.

Example

Request example

Https://ecs.aliyuncs.com/?Action=AssignPrivateIpAddresses&NetworkInterfaceId=eni-m5e709m1ytxc4wx7wXXX&PrivateIpAddress.1=192.168.0.1&PrivateIpAddress.2=192.168.10.1&

Return the example

XML format

04F0F334-1335-436C-A1D7-6C044FE70008

JSON format

{"RequestId": "04F0F334-1335-436C-A1D7-6C044FE70008"}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

Thank you for reading! This is all about how to assign one or more auxiliary private IP addresses to an elastic Nic. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report