当前位置: 首页 >> 技术文章 >> 【Oracle公有云最佳实践】快速查找Oracle公有云服务虚拟机的IP地址- Find the IP address of an Oracle Public Cloud Service VM
【Oracle公有云最佳实践】快速查找Oracle公有云服务虚拟机的IP地址- Find the IP address of an Oracle Public Cloud Service VM
发布时间:2017-01-22 发布人:Joel Perez 3219


Most Oracle Public Cloud Services provides you with an IP address to connect to your service's VM through Secure Shell (SSH). This article guides you to find the IP address of an Oracle Public Cloud Service instance to connect to its VM with PuTTy or SOCKS5 Proxy.


大多数的公有云服务都是通过SSH使用IP地址与对应服务的虚拟机相连的,这篇文章将会引导你查找Oracle公有云服务实例的IP地址,以使用PuTTy或SOCKS5代理连接到其VM。

 

Purpose

Find the IP address of an Oracle Cloud Service instance to connect to the VM with PuTTy or SOCKS Proxy.


查找要使用PuTTy或SOCKS代理连接到VM的Oracle Cloud Service实例的IP地址。

 

Background

Most Oracle Public Cloud Services provides you with an IP address to connect to your service's VM through Secure Shell (SSH). This article guides you to find this IP address.


大多数Oracle公有云服务为您提供IP地址,以通过SSH连接到服务的VM。 本文指导您查找此IP地址。

 

Some Oracle Public Cloud services such as Oracle Storage Cloud Service don't provide access to their VMs with Secure Shell. Instead you use REST API calls to access the service. This article is for cloud services that allow SSH access to their VMs and therefore, they provide you an IP address for SSH access.


某些Oracle公有云服务(如Oracle Storage Cloud Service)无法使用SSH访问其虚拟机。 相反,可以使用REST API调用来访问服务。 本文适用于允许SSH访问其VM的云服务,,才会提供SSH访问的IP地址。

 

Before looking the steps, we will clarify the concept related to an IP Address in Oracle Cloud.


在寻找IP地址之前,我们先来认识一个概念。

 

An IP reservation is a public IP address that you can attach to an Oracle Compute Cloud Service instance that requires access to or from the Internet.

The public IP address is reserved from a pool of IP addresses.

 

IP reservation:可以附加到需要访问Internet或从Internet访问的Oracle Compute Cloud Service实例的公共IP地址。公共IP地址从IP地址池保留。


In a metered Oracle Java Cloud Service or Oracle Database Cloud Service subscription, you're billed for IP address reservations even if they aren't associated with any instance. So, if you've created an IP address reservation but you’re not using it, then delete it.


在计量的Oracle Java云服务或Oracle数据库云服务订阅中,您需要支付IP地址预留费用,即使它们没有与任何实例相关联。 因此,如果您已创建IP地址预留但未使用它,请将其删除。

 

Note: Each instance also has a private IP address associated with it. When an instance is created, its private IP address is assigned dynamically from a range of private IP addresses. When an instance is restarted, its private IP address might change.


注意:每个实例也有一个与之相关的私有IP地址。 创建实例时,将从一系列私有IP地址动态分配其专用IP地址。 重新启动实例时,其私有IP地址可能会改变。

 

Now, Let’s see how to find the IP address of an Oracle Public Cloud Service VM


现在,让我们看看如何查找Oracle公有云服务VM的IP地址


寻找过程 

1.- Go to Oracle Cloud My Services by either clicking the link in your Welcome email or by going to http://cloud.oracle.com, clicking Sign In, selecting your Data Center and then clicking MyServices in the Cloud Account section.


1.通过单击欢迎电子邮件中的链接或转到http://cloud.oracle.com,登录,选择自己的数据中心,然后单击云帐户部分中的“我的服务”。


1.png


2.- In My Services Dashboard section, click your specific cloud service menu icon.


2.-在我的服务仪表板部分中,单击您的特定云服务菜单图标。


2.png


3.- Clicking an instance name in the Services page, takes you to that instance's detail page. Click the name of the cloud service instance that you want to find its IP address. In this article, it's GG-ABC.


3.-在“服务”页面中单击实例名称,将转到该实例的详细信息页面。 单击目标云服务实例的名称, 在测试中我使用的是“GG-ABC”。


3.png


4.- Copy the IP address from the Public IP field in the Virtual Machine's section. For this article, the IP address is 10.241.227.104.


4.-从虚拟机部分的公共IP字段复制IP地址。 该测试的IP地址为10.241.227.104。


4.png


Note: In some cloud services, the Virtual Machine section is called Nodes.


注意:在某些云服务中,虚拟机部分称为节点。

 

5.- Refer to this instance detail page for other details about your virtual machine, such as the associated services. For example, this instance can have an Oracle Database Cloud Service associated with it that you can find its name here. You won't find IP addresses of an instance's associated services on its detail page. Each service detail page only has its own IP address.

 

5.-有关虚拟机的其他详细信息,如相关服务,请参阅此实例详细信息页面。 例如,此实例可以具有与其相关联的Oracle数据库云服务,您可以在此处找到其名称。 但找不到该实例关联服务的IP地址。 每个服务详细信息页面只有自己的IP地址。


We hope this article can be helpful for you and see us on next article.

 

Best Regards