User Tools

Site Tools


Anycast IP VPS FREE How-to

What is Anycast?

Anycast is a routing feature BuyVM offers for free to all customers. With a functioning Anycast configuration inbound traffic will be routed to the VPS that is nearest to the visitor (i.e. European visitors will go Luxembourg, United States visitors depending on their location will go to either Las Vegas or New Jersey, Asia visitors will go to Las Vegas, etc.).

Anycast requires customer to have a VPS instance (either KVM or OpenVZ) in all three BuyVM locations (Las Vegas, New Jersey and Luxembourg).

Why use Anycast?

Anycast helps speed up your sites or other services by putting visitors on server closest to them. Closest server choice results in low latency and higher throughput. It is ideal for CDN (Content Distribution Network).

How much does AnyCast VPS cost ?

Anycast is FREE for all BuyVM VPS customers. The cost will be three VPS purchases. Anycast DOES work on our popular 128MB annual plans.

How to Enable BuyVM Anycast

  1. On any of your three VPS accounts go to the Networking tab, gearbox in the mainip box → Assign Anycast IP (will be given option to set up to 5 anycast IPs, only one is needed)
  2. On each applicable VM, go to Networking tab, ensure Anycast IP is `on`, hit 'Save Changes'
  3. On each applicable VM, bind regular IP to eth0, Anycast to eth0:0 with only Address and Netmask fields
  4. When Anycast is enabled for an OpenVZ, the default venet interfaces are removed, and eth0/eth1 are added. Networking will no longer be set automatically, and client will need to configure their interfaces file as they would on a KVM.

Sample /etc/network/interfaces from, which uses Anycast:

root # cat /etc/network/interfaces

      auto lo
      iface lo inet loopback
      auto eth0
      allow-hotplug eth0
      iface eth0 inet static
      auto eth0:v6
      allow-hotplug eth0:v6
      iface eth0:v6 inet6 static
      address         2605:6400:0020:0078::1
      gateway         2605:6400:0020::1
      netmask         48
      auto eth0:anycast
      allow-hotplug eth0:anycast
      iface eth0:anycast inet static

* Standard naming practice is eth0, eth0:0, eth0:1, etc. I use eth0:v6/eth0:anycast simply to identify bindings easier.

anycast_vps.txt · Last modified: 2015/01/28 00:15 by El Rooted