We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

vRack 1.5 IP Block Configuration - Debian


Vmlweb
06-12-2013, 17:03
Ok got it working with some information from the vRack ML.

How to route a block in your vrack ?

1) go to the ovh api url and login :
https://api.ovh.com

2) use the url below to get blocks that can be routed in your vrack (they'll appear in the 'ip' part) :
GET /vrack/{serviceName}/allowedService/


3) use th url below to put a block in your vrack. This will unroute the block from it's current location :
POST /vrack/{serviceName}/ip/


4) now that your block is in your vrack, announce on the area you want :
POST /vrack/{serviceName}/ip/{ip}/announceInZone


5) Once the task is done, you can check your block's gateway (basically it's the last ip of your block - 1) :
GET /vrack/{serviceName}/ip/{ip}


6) Now that your block is announced, affect one of it's ip to a pcc VM or a dedicated server on it's vrack interface :
For example, I want to use ip 1.1.1.1 from block 1.1.1.0/24 on a server whose vrack interface is eth1 :

ifconfig eth1 1.1.1.1 netmask 255.255.255.0


At this point, you should be able to ping your gateway which is 1.1.1.254, then

ip route add default via 1.1.1.254 dev eth1 table 120

ip rule add from 1.1.1.0/24 table 120

Vmlweb
06-12-2013, 12:18
Was I meant to have received a vRack email upon order containing more details?
Because I didn't receive anything at all.

Neil
06-12-2013, 11:22
Hi

Your server should have two network cards and the eth1 is the vLan connection.

Vmlweb
05-12-2013, 19:46
Hi,

Just wondering if anyone else has been setting up vRack 1.5 and the IP blocks.
I'm just looking for some info on how to do this?

Trying to follow the vRack 1.0 information but there is a lack in certain info such as the vlan id?

Thanks!