aws ec2 unassign-ipv6-addresses
Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To unassign an IPv6 address from a network interface
The following unassign-ipv6-addresses example unassigns the specified IPv6 address from the specified network interface.
aws ec2 unassign-ipv6-addresses --ipv6-addresses 2001:db8:1234:1a00:3304:8879:34cf:4071 --network-interface-id eni-23c49b68Identify--ipv6-addressesThe IPv6 addresses to unassign from the network interface.--network-interface-idThe ID of the network interface.Its output
{
"NetworkInterfaceId": "eni-23c49b68",
"UnassignedIpv6Addresses": [
"2001:db8:1234:1a00:3304:8879:34cf:4071"
]
}For more information, see Manage the IPv6 addresses for your EC2 instances in the Amazon EC2 User Guide.
Options
--ipv6-addressesThe IPv6 addresses to unassign from the network interface.--ipv6-prefixesThe IPv6 prefixes to unassign from the network interface.--network-interface-idThe ID of the network interface.