Maximum IP addresses per network interface - Amazon Elastic Compute Cloud

Maximum IP addresses per network interface

Each instance type supports a maximum number of network interfaces, maximum number of private IPv4 addresses per network interface, and maximum number of IPv6 addresses per network interface. The limit for IPv6 addresses is separate from the limit for private IPv4 addresses per network interface. Note that all instance types support IPv6 addressing except for the following: C1, M1, M2, M3, and T1.

Console
To retrieve the maximum network interfaces
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instance Types.

  3. Add a filter to specify the instance type (Instance type=c5.12xlarge) or instance family (Instance family=c5).

  4. (Optional) Click the Preferences icon and then turn on Maximum number of network interfaces. This column indicates the maximum number of network interfaces for each instance type.

  5. (Optional) Select the instance type. On the Networking tab, find Maximum number of network interfaces.

AWS CLI
To retrieve the maximum network interfaces

You can use the describe-instance-types command to display information about an instance type, such as its supported network interfaces and IP addresses per interface. The following example displays this information for all C8i instances.

{ echo -e "InstanceType\tMaximumNetworkInterfaces\tIpv4AddressesPerInterface"; \ aws ec2 describe-instance-types \ --filters "Name=instance-type,Values=c8i.*" \ --query 'InstanceTypes[*].[InstanceType, NetworkInfo.MaximumNetworkInterfaces, NetworkInfo.Ipv4AddressesPerInterface]' \ --output text | sort -k2 -n; } | column -t

The following is example output.

InstanceType MaximumNetworkInterfaces Ipv4AddressesPerInterface c8i.large 3 20 c8i.2xlarge 4 30 c8i.xlarge 4 30 c8i.4xlarge 8 50 c8i.8xlarge 10 50 c8i.12xlarge 12 50 c8i.16xlarge 16 64 c8i.24xlarge 16 64 c8i.32xlarge 24 64 c8i.48xlarge 24 64 c8i.96xlarge 24 64 c8i.metal-48xl 24 64 c8i.metal-96xl 24 64
PowerShell
To retrieve the maximum network interfaces

You can use the Get-EC2InstanceType PowerShell command to display information about an instance type, such as its supported network interfaces and IP addresses per interface. The following example displays this information for all C8i instances.

Get-EC2InstanceType -Filter @{Name="instance-type"; Values="c8i.*"} | Select-Object ` InstanceType, @{Name='MaximumNetworkInterfaces'; Expression={$_.NetworkInfo.MaximumNetworkInterfaces}}, @{Name='Ipv4AddressesPerInterface'; Expression={$_.NetworkInfo.Ipv4AddressesPerInterface}} | Sort-Object MaximumNetworkInterfaces | Format-Table -AutoSize

The following is example output.

InstanceType MaximumNetworkInterfaces Ipv4AddressesPerInterface ------------ ------------------------ ------------------------- c8i.large 3 20 c8i.xlarge 4 30 c8i.2xlarge 4 30 c8i.4xlarge 8 50 c8i.8xlarge 10 50 c8i.12xlarge 12 50 c8i.24xlarge 16 64 c8i.16xlarge 16 64 c8i.96xlarge 24 64 c8i.48xlarge 24 64 c8i.metal-96xl 24 64 c8i.32xlarge 24 64 c8i.metal-48xl 24 64