skip to content
Maathuran's Blog
Setting up Anycast Network on BuyVM

Setting up Anycast Network on BuyVM

/ 1 min read

Introduction

After setting up BGP Peering on IPv6, if you have a VM in each location, you are provided with a free /32 IPv4 Address that can be used for an Anycast Network.

Adding Anycast IPv4 Address

Under Networking then Floating IP Addresses click on Assing Anycast IP Address STALLION1 Then choose 1 for the number of IP Addresses STALLION2

You will see the new IPv4 Address below. STALLION3

Under all of the VMs, you will see the new Anycast IP automatically assigned. STALLION4

Adding the Anycast IP to the VM

On the VM, use nano to edit the /etc/network/interfaces file and add the following to the bottom

auto eth0:anycast
allow-hotplug eth0:anycast
iface eth0:anycast inet static
  address 198.251.90.98
  netmask 255.255.255.0

Then restart the network service with the following systemctl restart networking