How Do I Query the Egress Public IP Address of My ECS?
Scenarios
After servers are migrated to the cloud, they usually use EIPs to access the Internet.
You can log in to the management console and view the EIP bound to the ECS in the ECS list. For details, see Viewing ECS Details (List View).
If you want to query the EIP bound to the ECS without logging in to the management console, do as follows.
This section uses an ECS running CentOS 7.5 as an example.
Procedure
- Log in to an ECS.
- Run any of the following commands to query the EIP of the ECS:
- curl icanhazip.com
- curl ifconfig.me
- curl ipinfo.io/ip
- curl ipecho.net/plain
- curl www.trackip.net/i
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot