Managing global IPs (ibmcloud sl globalip)
A global IP address is a specialized static secondary subnet. It is delivered to you as a /32
subnet (in other words, a single IP address) that can be routed to any other IP address on your account.
Use the following commands from the IBM Cloud® Command Line Interface to manage a global IP in the IBM Cloud classic infrastructure Global IP service.
ibmcloud sl globalip assign
Assign a global IP to a target router or device
ibmcloud sl globalip assign IDENTIFIER TARGET [OPTIONS]
Examples:
ibmcloud sl globalip assign 12345678 9.111.123.456
This command assigns IP address with ID 12345678 to a target device whose IP address is 9.111.123.456.
ibmcloud sl globalip assign IDENTIFIER TARGET
ibmcloud sl globalip cancel
Cancel a global IP
ibmcloud sl globalip cancel IDENTIFIER [flags]
Command options:
- --f, force
- Force operation without confirmation
ibmcloud sl globalip create
Create a global IP
ibmcloud sl globalip create [OPTIONS]
Examples:
ibmcloud sl globalip create --v6
This command creates an IPv6 address.
ibmcloud sl globalip create [flags]
Command options:
- --f, force
- Force operation without confirmation
- --test
- Test order
- --v6
- Order an IPv6 IP address
ibmcloud sl globalip list
List all global IPs on your account
ibmcloud sl globalip list [flags]
Command options:
- --order
- Filter by the ID of order that purchased this IP address
- --v4
- Display IPv4 IPs only
- --v6
- Display IPv6 IPs only
ibmcloud sl globalip unassign
Unassign a global IP from a target router or device
ibmcloud sl globalip unassign IDENTIFIER