Skip to content

Two ENI's on ECS container

0

Can I attach two ENI's to an ECS container using the awsvpc network mode? Could that cause any IP address collision between the two ENI's? Thanks.

2 Answers
0

Hi,

Have a look at section "Increasing task density with ENI Trunking" of https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/networking-networkmode-awsvpc.html

It explains how ENI trunking can be used to attach multiple IP addresses to same container image (if you reduce the pool of ECS instance to 1 in the example presented)

Best,

Didier

EXPERT

answered 3 years ago

  • Unfortunately the document doesn’t explain how to attach multiple IPs to a container. It explains how ENIs work with containers hosted on EC2 hosts

0

No, I don’t believe you can have more than one IP address/ENI per container.

I’m curious to understand the use case for this?

EXPERT

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.