Today I purchased a new IP block from SoYouStart/OVH and would like to use the whole IP block for VMs. As I did use Proxmox for virtualization, utilizing the whole new IP block is quite easy as soon as every steps are followed. So I would like to note here some necessary steps when adding new IP block to SoYouStart server for later reference.
For SoYouStart server
- First, we need to add a new MAC address for each IP address that we want to use: Go you SYS manager >> IP >> Select the failover IP and “add a Virtual MAC” for it.
- Then, when creating a new VM in proxmox, when configuration NIC (Network Interface Card), remember to modify it with the vMac of your Failover IP. This is a very important step that I forgot in the very first use.
- If you already created a new network bridge when following the guide Setting up Windows VM on Proxmox with 1 IP, be sure you choose vmbr0 bridge instead of the new forwarding bridge.
- Install your guest machine.
- After finishing installation, you can configure your VM follow the guide to setup Network Bridging @ OVH. In general, in your VM:
- IP address is your new failover IP address
- Netmask is 255.255.255.255
- Network gateway is your server IP with the last octet replaced by 254 (e.g. your server IP is 123.456.789.012, then the VM gateway will be 123.456.789.254)
- The gateway you need to use in your virtual machine should not be: (i) the IP of your dedicated server or (ii) IP failover but you must use the gateway provides for your dedicated server.
- Otherwise, you will receive warning from OVH “Bad configuration regarding your server XXXX” and this might cause blocking your IP.
- DNS is the OVH DNS: 126.96.36.199
Done. Enjoy your new IP block with very good price 🙂
For other server providers
Many visitors contacted me to ask on how to apply this for generic servers and other popular providers such as Hetzner. I will give the example on how to make it work on Hetzner as follows:
- For a new subnet, first we need to create a new network interface for it:
iface vmbr1 inet static
- Then, bring the new network interface to Proxmox by
- Then, assign the new network interface (vmbr1) to the new VM and configure IP with proper IP, subnet mask, gateway (the host’s main IP address since we will forward traffic via the HOST’s IP), and DNS fields (the host’s DNS)
- If you are using csf, do not forget to add
/sbin/iptables -F FORWARD
/sbin/iptables -P FORWARD ACCEPT[/bash]
to /etc/csf/csfpost.sh and restart csf
- DNS for Hetzner: