What is the status of private IP and public IP when EC2 instance stopped and restart?

Private IP :
The private IPv4 address assigned from the subnet stays attached to the instance.
It does not change when you stop and start the instance.
Public IP :
If AWS automatically assigned a public IP when the instance launched, that public IP is released when the instance is stopped.
When the instance starts again, AWS assigns a new public IP.
Пожалуйста, войдите, чтобы спрашивать, отвечать, делиться, ставить лайки и голосовать.