RackUp IT - View Cloud Hosting Plans

Get started now or speak directly with our engineering team for specialized assistance.

Logo
DevelopmentWEB & APPCalculatorTOOLServicesProductBlogOur TeamCareers
View Plans
Home>Blog>How to Assign a Reserved Static IP to Oracle Cloud VPS
Networking & Security

How to Assign a Reserved Static IP to Oracle Cloud VPS

Sarah Jenkins
Sarah Jenkins
Published Aug 6, 2026•✓ Verified Expert Reviewed•8 min read
Assign Reserved Static IP to Oracle Cloud VPS Cover Image

Key Takeaways

  • ✓Understand differences between Ephemeral vs Reserved Public IPs in OCI
  • ✓Step-by-step guide to allocating and binding static IPs in OCI Console
  • ✓Update DNS A-records to prevent connection loss during server restarts

Table of Contents

  • •How to Assign a Reserved Static IP to Oracle Cloud VPS
  • •Does the Oracle Cloud Free Tier Include a Static IP?
  • •Ephemeral vs. Reserved Public IPs in Oracle Cloud
  • •Step 1: Navigate to OCI Instance VNIC Details
  • •Step 2: Inspect Primary Private IP & Ephemeral Public IP
  • •Step 3: Unbind Ephemeral Public IP
  • •Step 4: Create & Assign Reserved Public Static IP
  • •Step 5: Update DNS Records & Test Server Connectivity
  • •Configuring Reserved Public IPs via OCI CLI
  • •Troubleshooting Static IP & DNS Propagation Issues
  • •Configuring Reverse DNS (PTR Records) for Email Delivery
  • •Best Practices for Cloud Network IP Management
  • •Frequently Asked Questions (FAQ)
  • •Automating Reserved Static IP Management with the OCI CLI
  • •DNS TTL Strategies & Minimizing Downtime During Public IP Migrations
  • •OCI Network Security Groups (NSGs) vs. Security Lists: What's the Difference?

How to Assign a Reserved Static IP to Oracle Cloud VPS

When you deploy a new Virtual Machine on Oracle Cloud Infrastructure (OCI) Free Tier, Oracle assigns your Virtual Network Interface Card (VNIC) an Ephemeral Public IP Address by default. While an ephemeral IP works fine initially, it carries a major operational flaw: if your instance is terminated, stopped, or undergoes subnet maintenance, your public IP address changes permanently.

A changing public IP address immediately breaks your custom domain DNS A-records, disrupts Let's Encrypt SSL certificate renewals, and disconnects SSH management sessions. To ensure long-term server stability, you must convert your ephemeral address into a free Reserved Public Static IP Address in the OCI Console. In this tutorial, we will cover how to allocate, assign, and bind a permanent static IP to your Oracle VPS in 5 easy steps.

If you are setting up a custom domain for the first time, make sure to read our walkthroughs on Setting Up Custom Domains & Free SSL on Oracle VPS and Opening Web Ports 80 & 443 on Oracle Cloud.

Want permanent static IPs and automated DNS routing out of the box? Avoid OCI networking complexities with RackUp IT's Managed VPS Hosting Plans, including dedicated static IPv4/IPv6 addresses and managed DNS management.

Does the Oracle Cloud Free Tier Include a Static IP?

Yes. Always Free accounts can reserve public IPv4 addresses at no monthly cost, as long as they stay attached to a running resource. The catch is that Oracle does not give you one automatically: new instances get an ephemeral public IP, which is released if the VNIC is detached or the instance is recreated. A VPS static IP (Oracle calls it a reserved public IP) belongs to your account instead of the VM, so your DNS records and SSL certificates keep working through reboots, rebuilds and migrations. The 5 steps below convert your instance from an ephemeral to a reserved IP in about 10 minutes.

Ephemeral vs. Reserved Public IPs in Oracle Cloud

Understanding Oracle Cloud Infrastructure IP addressing rules is essential for cloud sysadmins:

  • Ephemeral Public IP: A dynamic public IPv4 address assigned temporary ownership. It persists while the VM remains powered on, but is released back to Oracle's public pool if the VNIC is detached or the instance configuration is altered.

  • Reserved Public IP: A permanent static public IPv4 address tied to your OCI tenancy compartment. It remains assigned to your account indefinitely and stays bound to your VM across reboots, shutdowns, and maintenance events.

Oracle Cloud Free Tier tenancies allow you to reserve up to 2 Reserved Public IPv4 addresses at $0 monthly cost!

Step 1: Navigate to OCI Instance VNIC Details

Log into your Oracle Cloud Console and open your instance network settings:

  1. Open the OCI Console main menu and go to Compute > Instances. Click on your active Virtual Machine name.

  2. Scroll down to the Resources navigation menu on the left side of the Instance Details page and click Attached VNICs.

  3. Click on the Primary VNIC link associated with your compute instance.

Step 2: Inspect Primary Private IP & Ephemeral Public IP

Inside the VNIC Details page, click on IPv4 Addresses under the left Resources menu. You will see your primary private IP address (e.g., 10.0.0.15) and its assigned Ephemeral Public IP.

  1. Click the Action Menu (Three Dots) on the far right side of your primary IPv4 address row.

  2. Click Edit.

Step 3: Unbind Ephemeral Public IP

In the Edit IPv4 Address pop-up window:

  1. Under the Public IP Type radio button section, select No Public IP.

  2. Click Update.

Oracle Cloud will unbind the dynamic ephemeral IP from your instance. Your VM remains active on its private IP address within your Virtual Cloud Network (VCN).

Step 4: Create & Assign Reserved Public Static IP

Now we will allocate a permanent Reserved Public IP address and bind it to your instance:

  1. Click the Action Menu (Three Dots) on your IPv4 address row again and select Edit.

  2. Under Public IP Type, select Reserved Public IP.

  3. Choose Create a New Reserved Public IP (or select an existing unassigned reserved IP if available).

  4. Enter a descriptive name for your static IP (e.g., Production-Web-Static-IP).

  5. Click Update.

OCI will allocate a brand-new permanent static IPv4 address from your tenancy reservation pool and attach it to your VM. This IP address is now yours permanently!

RackUp IT - View Cloud Hosting Plans

Click the button below to learn more and get started.

View Hosting Plans

Step 5: Update DNS Records & Test Server Connectivity

Now that your Oracle VPS possesses a permanent Reserved Public IP address:

  1. Copy your new Reserved Public IP from the OCI Console.

  2. Log into your Domain Registrar DNS Manager (Cloudflare, Namecheap, GoDaddy).

  3. Update your domain's A records (both @ and www) to point to the new static IP address.

  4. Open your terminal and test SSH connectivity: ssh -i ~/.ssh/id_rsa ubuntu@<YOUR_RESERVED_STATIC_IP>.

Configuring Reserved Public IPs via OCI CLI

For developers who prefer command line automation, you can also reserve and assign static public IPs using the OCI CLI:

# Allocate a new Reserved Public IP in your compartment
oci network public-ip create --compartment-id  --lifetime RESERVED --display-name "MyStaticIP"

# Assign the reserved IP to your private IP OCID
oci network public-ip update --public-ip-id  --private-ip-id 

Troubleshooting Static IP & DNS Propagation Issues

If your web application is inaccessible after assigning a static IP, verify the following diagnostic steps:

  • Flush Local DNS Cache: Run ipconfig /flushdns on Windows or sudo dsnsubscribe -flushcache on macOS to clear stale DNS records.

  • Verify Security Lists: Ensure your VCN Ingress Rules permit traffic on ports 80 and 443 for the new public IP address.

  • Check OS Firewall (iptables): Confirm that local Linux firewall rules are active on your primary network interface.

  • Test Global Propagation: Use online DNS tools like whatsmydns.net to verify worldwide propagation of your new A-record across all edge resolvers.

Configuring Reverse DNS (PTR Records) for Email Delivery

If your Oracle Cloud VPS hosts a mail server or sends outbound transactional emails (such as WordPress registration or WooCommerce order notification emails), having a matching Reverse DNS (PTR) record configured for your Reserved Public IP prevents outbound emails from getting flagged as spam by Gmail, Outlook, and Yahoo filters.

Best Practices for Cloud Network IP Management

Managing static IPs across multiple cloud virtual machines requires adhering to core networking best practices:

  1. Label Reserved IPs Clearly: Assign descriptive display names to your reserved public IPs in the OCI Console to avoid accidental unbinding during infrastructure maintenance.

  2. Monitor Unassigned Reserved IPs: Periodically audit your tenancy to ensure you do not leave unassigned reserved IPs detached, maintaining clean network inventory.

  3. Implement Cloudflare Proxying: Pair your static public IP with Cloudflare CDN proxying to hide your origin server IP address from direct DDoS attacks.

Frequently Asked Questions (FAQ)

Does Oracle charge money for Reserved Public IPs?
No. Oracle Cloud Always Free Tier permits up to 2 Reserved Public IPv4 addresses at zero monthly cost, provided they remain attached to an active VNIC.

Will my Reserved Static IP survive instance restarts and stop/start operations?
Yes! Unlike ephemeral addresses, a Reserved Public IP remains permanently bound to your VNIC regardless of how many times you stop, restart, or reboot your Virtual Machine.

Can I transfer a Reserved Static IP to a different Oracle VPS instance?
Yes. Because Reserved Public IPs belong to your tenancy compartment rather than a specific VM, you can unbind a reserved IP from an old instance and re-attach it to a new VM in seconds without modifying your domain DNS records.

What happens if I delete my VM instance?
When an instance is terminated, its attached Reserved Public IP reverts to unassigned status in your OCI compartment. It remains in your account for future VM attachment until explicitly deleted.

Can I assign multiple public static IPs to a single Oracle Cloud instance?
OCI allows assigning secondary private IPs to a VNIC, each of which can have a separate Reserved Public IP attached, enabling multi-site hosting on a single instance.


Automating Reserved Static IP Management with the OCI CLI

While navigating the Oracle Cloud Console web interface is simple for one-off IP assignments, sysadmins managing multi-server clusters or disaster recovery workflows benefit greatly from automating public IP reservations using the official OCI Command Line Interface (oci-cli).

To programmatically reserve a brand-new regional static IPv4 address in your tenancy compartment, run:

# Create a new OCI reserved public IP
oci network public-ip create \
  --compartment-id <YOUR_COMPARTMENT_OCID> \
  --lifetime "RESERVED" \
  --display-name "production-web-static-ip"

Once provisioned, you can associate this static IP directly with your instance's primary private IP address OCID using a single command:

# Attach the reserved static IP to your VNIC's private IP OCID
oci network public-ip update \
  --public-ip-id <RESERVED_PUBLIC_IP_OCID> \
  --private-ip-id <VNIC_PRIVATE_IP_OCID>

Having a permanent reserved IP is crucial when configuring DNS records for domain names and reverse DNS (rDNS) pointers for transactional email delivery. For detailed instructions on routing your domain and enabling HTTPS, explore our tutorial on setting up custom domains with free SSL. Furthermore, to ensure your high-traffic staging environments are completely isolated from your production IP, review our guide to setting up a WordPress staging site.

Prefer not to manage the server yourself? Compare RackUp’s hosting plans: Cloud WordPress hosting starts at $2.49 a month.


DNS TTL Strategies & Minimizing Downtime During Public IP Migrations

When re-pointing your website's domain name from an old ephemeral IP to a newly assigned Oracle Cloud Reserved Static IP, proper DNS management is vital to prevent DNS propagation delays. DNS resolvers across global ISPs cache records based on their Time to Live (TTL) value.

At least 24 hours prior to transitioning your IP address, reduce the TTL on your domain's DNS A-records from the standard 86,400 seconds (24 hours) or 14,400 seconds (4 hours) down to 300 seconds (5 minutes). This way, once you point your DNS records at the new reserved static IP, most DNS caches pick up the change within minutes, which keeps the switchover short. Once propagation completes worldwide, you can safely restore the TTL to 3,600 or 14,400 seconds.

OCI Network Security Groups (NSGs) vs. Security Lists: What's the Difference?

When managing traffic to your newly assigned reserved static IP, Oracle Cloud offers two primary firewall mechanisms: Security Lists and Network Security Groups (NSGs). While Security Lists apply rules universally across every instance attached to an entire subnet, Network Security Groups allow granular firewall policies applied directly to individual Virtual Network Interface Cards (VNICs).

For production deployments where multiple microservices share a single VCN, security best practices recommend adopting NSGs. By binding security policies directly to your reserved IP's VNIC, you can restrict administrative SSH access, configure custom port forwarding, and prevent unauthorized lateral movement across cloud compute resources.

← Previous ArticleHow to Fix Oracle Cloud Free Tier Out of Memory (OOM) CrashesNext Article →How to Automate Backups on Oracle Cloud Free Tier VPS
Interactive 60-Second Tool

Unsure Which Cloud Hosting Plan Fits Your Site?

Answer 4 quick diagnostic questions to estimate the server CPU, RAM and storage you need with transparent pricing.

Free Migration 99.9% Uptime Target
Calculate My Hosting Build
Sarah Jenkins
Written BySarah Jenkins

Senior Linux Systems Architect with 12+ years specializing in high-availability cloud deployments, kernel tuning, and automated failover systems for enterprise WordPress environments.

99.9% Uptime Target

RackUp IT - View Cloud Hosting Plans

View Hosting Plans

View Hosting Plans

CONTENTS

  • How to Assign a Reserved Static IP to Oracle Cloud VPS
  • Does the Oracle Cloud Free Tier Include a Static IP?
  • Ephemeral vs. Reserved Public IPs in Oracle Cloud
  • Step 1: Navigate to OCI Instance VNIC Details
  • Step 2: Inspect Primary Private IP &amp; Ephemeral Public IP
  • Step 3: Unbind Ephemeral Public IP
  • Step 4: Create &amp; Assign Reserved Public Static IP
  • Step 5: Update DNS Records &amp; Test Server Connectivity
  • Configuring Reserved Public IPs via OCI CLI
  • Troubleshooting Static IP &amp; DNS Propagation Issues
  • Configuring Reverse DNS (PTR Records) for Email Delivery
  • Best Practices for Cloud Network IP Management
  • Frequently Asked Questions (FAQ)
  • Automating Reserved Static IP Management with the OCI CLI
  • DNS TTL Strategies &amp; Minimizing Downtime During Public IP Migrations
  • OCI Network Security Groups (NSGs) vs. Security Lists: What's the Difference?

Categories

  • VPS Hosting
  • Server Stack
  • WordPress Hosting
  • Cloud Hosting
  • Web Hosting / Managed Cloud
  • DevOps & Tutorials
  • Networking & Security
  • E-Commerce
  • Hosting & SEO
  • Cloud Backup & DevOps
  • Hosting Benchmarks
  • Managed VPS

Recent Posts

  • DigitalOcean Alternatives in 2026: More RAM and Bandwidth per Dollar
  • Traefik vs Caddy vs Nginx: Which Reverse Proxy Should You Use?
  • SiteGround Alternatives (2026): Managed WordPress Hosting Without the Renewal Jump

Tags

DigitalOceanVPSVultrComparisonTraefikCaddyNginxReverse ProxyDockerSiteGroundWordPress HostingManaged WordPressMonitoringPrometheusLinuxSupabaseFirebasePostgresBackendWordPressTroubleshootingErrorsPHPcPanelControl PanelWeb HostingMySQLDjangoPythonApp HostingUbuntuTutorialHerokuVercelMigrationBackupsWP-CLIStagingUFWFirewallSecurityJavaSpring BootBeginnersGuideCoolifyDokployDokkuKamalSelf-HostedSystem RequirementsNode.jsPortainerDockgeToolsNetworkingRailwayRenderDedicated ServerPerformanceUpgradeNext.jsReactDocker ComposeBluehostDocker DesktopDevOpsCloud HostingApacheWeb ServerHTTPSRedirectsSSLLinodeAkamaiHostingerInstallAppwriteFlaskFastAPIDomainsSEONetlifyCloudflareDeveloper HostingAgency HostingClient SitesKubernetesGunicornDeploymentJavaScriptnvmContainersLoad BalancingScalingVPS HostingConfigurationLet's EncryptCertbotChecklistDNSCloudwaysKinstaWP EngineLaraveldocker logsDisk Spacedocker execiptablesfirewalldError Codes404 Not Found403 ForbiddenLinux PermissionsSELinuxOracle CloudAmpere A1ARMFree TierOCIRegions502 Bad GatewayPHP-FPMAffordable HostingCheap VPScPanel HostingCloud VPSHosting BenchmarksSpeed OptimizationSpeed Up WordPressCore Web VitalsNGINX FastCGIOPcacheWooCommerceRedis CachePHP WorkersE-CommerceSecure WordPress HostingWordPress SecurityContainer IsolationWordPress HardeningWordPress StagingStaging SiteWP StagingScalable HostingHigh Traffic WordPressOCI BackupRcloneDisaster RecoveryStatic IPReserved IPOCI VNICUK Web HostingManaged VPSLeeds Web HostingWooCommerce PerformanceManaged HostingVPS BenchmarkWest Yorkshire RetailManaged VPS HostingUK Server LatencyPort MappingBangladeshidaho hostingCloudPanelidaho webhostingManaged Wordpress VPSManaged Cloud

Related Posts

DigitalOcean alternatives coverVPS Hosting
Nov 5, 2026

DigitalOcean Alternatives in 2026: More RAM and Bandwidth per Dollar

DigitalOcean Droplet prices against Vultr, Hetzner and a fixed-plan VPS, compared at the 8 GB size most apps need, plus what you give up when you switch.

Read Article →
Traefik vs Caddy vs Nginx coverServer Stack
Nov 4, 2026

Traefik vs Caddy vs Nginx: Which Reverse Proxy Should You Use?

Traefik routes Docker containers automatically, Caddy does HTTPS with almost no config, and Nginx does everything. Which reverse proxy fits your setup.

Read Article →
SiteGround alternatives coverWordPress Hosting
Nov 3, 2026

SiteGround Alternatives (2026): Managed WordPress Hosting Without the Renewal Jump

SiteGround's intro prices jump at renewal. Here are its 2026 prices and the managed WordPress alternatives worth comparing, with an honest look at the trade-offs.

Read Article →
Logo

Expert Web & App Development, UI/UX Design, Branding, and Consulting to scale your business.

Company

  • About Us
  • Blog
  • Contact
  • Our Team
  • Careers

Services

  • Web Development
  • App Development
  • UI/UX Design
  • Consulting

Subscribe to our newsletter

© 2026 Rackup IT Solution. All rights reserved.

Privacy PolicyTerms of Service