next up previous contents
Next: 0.4.1.2 Creating a Sandbox Up: 0.4.1 GoGrid Previous: 0.4.1 GoGrid   Contents

0.4.1.1 Controlling IP Addresses

Availability: gg

By default, the first available IP address is used for a new node. However, you can explicitly specify IP address you want to use for a node using extra argument ip for lc-node-add:

$ lc-node-add -s 1GB -i 123 -n foo ip=1.2.3.4

You can find out what IP addresses are available for you account using lc-gg-ip-list tool:

$ lc-gg-ip-list
ip 10.0.175.66 (id=12345, public=False, state=Unassigned, subnet=10.0.175.0/255.255.255.0)
ip 10.0.175.67 (id=12346, public=False, state=Unassigned, subnet=10.0.175.0/255.255.255.0)
...
$

There are several filtering options available in lc-gg-ip-list:

-a
use -a true to list only assigned addresses and -a false to list unassigned ones
-u
use -u true to show only public addresses and -a false to list private addresses



Roman Bogorodskiy 2011-05-30