- Newest
- Most votes
- Most comments
No, the S3 File Gateway's SMB service will not reliably respond to a secondary private IP assigned to the primary ENI. Because the gateway runs on a „managed appliance OS“, it does not automatically configure secondary IP addresses added via the AWS console. Since you lack the root access required to configure the interface manually, the SMB daemon (Samba) remains unaware of the secondary IP and will not bind to it.
Option: Reassign as Primary IP
To achieve a zero-touch cutover for your end-users without migrating to DNS, you must assign the original IP as the primary private IP of the new AL2023 instance.
„unassailable“, architecturally approach:
-
Prepare: Complete the initial migration steps (stop the old AL2 instance, create a backup AMI, and detach all cache/data disks).
-
Release the IP: Terminate the old instance. Merely stopping an EC2 instance does not release its primary private IP. Terminating it immediately frees the IP address within your VPC subnet. (Note: Your logical Gateway resource in the Storage Gateway console remains intact even if the underlying EC2 instance is terminated).
-
Launch the New Instance: Deploy the new AL2023 EC2 instance. During the network configuration step, manually assign your freed original IP as the new instance's primary private IP (eth0).
-
Finalize: Attach the old disks to the new AL2023 instance and complete the "Migrate cache disk and Gateway ID" procedure.
-
Rebuild AD Secure Channel: Since you are using Active Directory, the new AL2023 OS will not know the machine account password, even though the Gateway ID remains the same. You MUST go to the Storage Gateway console -> SMB/Active Directory Settings, and re-enter your AD service account credentials. This forces the gateway to rebuild the secure channel with the Domain Controller without creating a new computer object.
Result: The new gateway operates on the same primary IP as the old one. Your end-users will reconnect transparently through their VPN with zero changes to their mapped drives.
No, the secondary private IP approach will not work. The Storage Gateway appliance runs a managed OS where Samba binds to the primary IP. Secondary IPs added via the AWS console are not automatically configured at the OS level, and you have no root access to do it manually.
The solution is to assign the original IP as the primary private IP on the new instance. The migration documentation explicitly supports this: "You can reuse the same static IP address or hostname from the old gateway VM to avoid reconfiguring NFS or SMB clients."
Steps:
- Complete the "Migrate cache disk and Gateway ID" procedure up to the point where the old instance is stopped and disks detached.
- The original primary IP is now free (stopping the instance doesn't release it, but you can unassign it from the old ENI or terminate the old instance).
- Launch the new AL2023 instance specifying the original IP as the primary private IP during network configuration. Alternatively, detach the old instance's ENI entirely and attach it to the new instance as eth0 (this preserves both the IP and the MAC address).
- Attach the cache disks to the new instance and complete the migration procedure.
- Re-join Active Directory from the Storage Gateway console (Gateway Settings > SMB > Active Directory). Re-enter your AD service account credentials to rebuild the secure channel with the domain controller. This is required because the new OS does not retain the machine account password, even though the Gateway ID is preserved.
End users reconnect transparently with no drive remapping needed.
References:
- Migration procedure: https://docs.aws.amazon.com/filegateway/latest/files3/migrate-data.html
- AL2023 migration blog (IaC): https://aws.amazon.com/blogs/storage/scale-your-aws-storage-gateway-al2023-migration-with-infrastructure-as-code/
answered a month ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 25 days ago

Thanks for the detailed info! I will give this a try this weekend.
Completed this migration this past weekend. Thanks for the guidance! I had some issues with the migration\activation of the new gateway via the migration url, and I honestly am not sure what fixed it but I'm thinking maybe one of the times that I tried to hit that url it worked but timed out and then just took a while to actually migrate due to the 500GB cache disk I have attached? Eventually looked back at the Storage Gateway dashboard and noticed that it was back online and had completed the migration and I could still access it at the same IP as always. Thanks for the help though! Wouldn't have gone as smooth without you!