How to configure OVH Failover IP on a VM with Netplan

Here’s something that’s not too obvious. Recently I migrated from OneProvider to OVH. I installed Proxmox on the server, and bought additional failover IPs to be assigned to my VMs. However, what is not obvious is how to configure the VM to use the IP.

The gist of the configuration is that your VM uses the FAILOVER_IP on a /32 subnet, however, it needs the gateway of the dedicated server’s IP (DEDICATED_SERVER_GATEWAY x.x.x.254), which is outside the configured IP subnet.

The configuration using Netplan is this:

            - FAILOVER_IP/32
             - to: default
               via: DEDICATED_SERVER_GATEWAY
               on-link: true

The step-by-step for OVH is as follows:

  1. Purchase failover IP for your service
  2. Add a virtual MAC for the failover IP
  3. Configure the VM network device to the virtual MAC in step 2
  4. Edit Netplan as above, the key config being
    on-link: true
  5. Done! The VM should have Internet, and you should be able to ping FAILOVER_IP

Cheapest WiFi Mesh

I live in a 1000sqft apartment, and it is designed in a linear manner. This means that my WiFi router placed at one end is unable to reach the bedroom at the other end. I had been using a powerline adapter for years. Short of placing physical cables, HomePlug Powerline is the next best thing. Recently, my adapter malfunctioned, causing connectivity issues. Hence I started my hunt for a replacement. As of last year, WiFi Mesh has become a thing. Unfortunately, Wifi Mesh systems are exorbitantly expensive. Average prices for a WiFi Mesh system on Amazon are USD200 onwards. In Singapore, WiFi Mesh systems cost over USD400.

I love hunting for good technology at low prices, so I started my research. The only cheap option available in Singapore is the EnGenius EnMesh system, costing about USD250. I checked Amazon and found the system going for USD175. Then I found other cheap WiFi Mesh systems as well. Tenda Nova M6 at USD150, and the Luma system at USD140 (after a recent price cut). Seeing a Chinese brand, Tenda, led me to Taobao. There, I found an even cheaper option, the Huawei Honor Mesh Router (华为分布式路由器) going for a mere USD120. At this price, the WiFi Mesh is definitely more attractive than getting a new set of powerline adapters. After (agent and shipping) fees, I paid approximately USD150.

Why WiFi Mesh?

Briefly, there are four options to extend WiFi coverage in a home.

Physical cablingMaximum possible speedsRequires cabling to be done throughout the house. Usually only done for new homes. Need a separate WiFi AP$$$
Powerline adapterMakes use of existing power cabling.Bandwidth in reality is much lower than marketed.$$
WiFi Repeater/Range ExtenderNo wiring needed. Only need a power source, some just USB power.Bandwidth is halved, or less.$-$$
WiFi MeshNo wiring needed. Only need a power source for each AP.Reduced bandwidth for systems without dedicated backhaul.$$-$$$

However, one of the key features of WiFi Mesh, is Fast Roaming and Hand-off. These are 802.11 specifications that allow APs to move clients to another AP with better signal. This is much like how cellular networks work. With my powerline adapter, it was common that when I went to the bedroom, my phone was still connected to the router in the living room, but at very low signal. The phone would have no network connectivity, and I would have to toggle the WiFi on my phone to make it connect to the AP in my room (with the same SSID). Also, there are some spots in the house where I would be connected to the WiFi with 2 bars, but network connectivity was intermittent. In theory, with WiFi Mesh, I would be blanketing the house with WiFi, and with better bandwidth.

The Huawei Honor Mesh Router

Important Caveat

Usage of the Huawei Honor Mesh Router requires a Huawei account (called Huawei ID) that is registered for China region. In order to register a Chinese Huawei ID, you need a Chinese mobile number for verification. You also need the Huawei SmartHome app for the initial setup. However, at the time of writing, the SmartHome app on Play Store is version, which does not support the Huawei Honor Mesh Router. You need the newer version This version is available on the Huawei App Gallery, but you need a Chinese Huawei ID to download it.


Once I got the Huawei ID and correct app installed, setting up was a breeze. The app is in English. I placed the router and APs in a linear fashion, with the first AP in the first bedroom, and the second in the third bedroom. The app shows how devices are connected. Interestingly, the second AP is connected directly to the router in the living room. I would have thought it would connect to the first AP. Sometimes it does, but rarely.

Most of the times, the switch between APs is seamless. I have WiFi connectivity throughout the home, and all the dead spots are gone. My phone shows 3 to 4 bars of WiFi signal wherever I go. Occasionally, my phone gets disconnected from WiFi for a short few seconds, and then reconnects back. But this is much better than having a sticky WiFi connectionat 1 bar that doesn’t work.

Unfortunately, and this may be a big minus point for some, the Huawei system has poor WiFi bandwidth.

Bandwidth tests

As reference, these are Speedtest and FAST tests on my D-Link DIR-868L.

This is connected to the Huawei main router.

This is connected to the first AP.

Finally, at the second AP.

Here is a summary of the tests:

APSpeedtest (Down/Up)FAST
D-Link DIR-868L264/177Mbps240Mbps
Main AP156/90Mbps130Mbps
AP 165/73Mbps79Mbps
AP 240/65Mbps64Mbps

SmallNetBuilder reviewed the EnGenius EnMesh with performance benchmarks (against the TP-Link Deco M5 and Google Wifi) which seems to show the Huawei router is seriously under performing.


The Huawei Honor Mesh Router is the cheapest WiFi Mesh system in the market, certainly for Singapore. While WiFi performance leaves a lot to be desired, in reality, even 40Mbps is enough for Netflix and Youtube video streaming in HD. And the 64Mbps FAST speed in my room is a marked improvement over the powerline adapter, which averaged 40Mbps or less, and with connectivity issues mentioned earlier. I am definitely enjoying the strong WiFi connectivity throughout my home.

The Tenda Nova M6 and Luma are also strong contenders for a cheap WiFi Mesh, and are definitely reasonably priced to get started with this technology.

Huawei E122 with OpenWRT

I was exploring a low-cost method to get mobile broadband in the car. The Huawei E122 was the cheapest 3G dongle on ebay – only USD19.99. I bought it, along with the TP-Link TL-WR703N, a compact, USB-powered router that supports 3G dongles. The E122 isn’t listed as a supported 3G modem, and it indeed isn’t supported.

My next step was to flash OpenWRT on it. To my surprise, it didn’t work either. I Googled and tried several things, but nothing worked until I tried the commands I found in an over three-year-old thread on Ubuntu Forums. The very last post by the thread starter himself, mvip, posts a wvdial config file that he says he managed to get working for his E122. I simply translated it into a chatscript (used by OpenWRT). And…

It worked!


Now I have Wi-Fi in my car, cobbled together for under USD50.

My chatscript for the E122:

"" "ATE0"
OK "ATZ E0 V1"
OK "ATDT*99***1#"


Setting up a repeater bridge with DD-WRT and D-Link DIR-600

I wanted to extend the Wi-Fi range by using my D-Link DIR-600 Rev. B. DD-WRT allows configuring a repeater bridge. This seamlessly links up two routers wirelessly. The repeater bridge is especially useful because the second router allows both wired and wireless connections.

Thankfully, repeater bridge is supported on DD-WRT on the DIR-600. I followed the instructions on the DD-WRT wiki, but kept encountering problems. After following through the instructions and applying the settings, I would see two SSIDs broadcasting from the router, and any device connected to the second router could not reach the first router. In addition, the network connections would drop intermittently. After much trial and error, flashing different versions, and searching the Internet, I realised what the problem was! It was from adding the virtual interface!

I re-setup the router, this time omitting the step to add the virtual interface, and everything worked perfectly! My DIR-600 works like a proper repeater, and wireless devices would seamlessly roam across the routers depending on the signal strength. Job well done!

Here are the steps I did (adapted from the DD-WRT Wiki). My primary router is configured with WPA2 AES. The secondary router is running DD-WRT build 14311. The latest build in the DD-WRT router database, build 14896, is buggy.

  • Restore Factory Defaults on Secondary (DD-WRT) Router
  • Connect your computer to the secondary router via wired LAN port.
  • Open the address in your web browser. Newer versions of DD-WRT will require you to set a password before you can continue.
  • Open the Wireless -> Basic Settings tab
    • Physical Interface Section
      • Wireless Mode : Repeater Bridge
      • Wireless Network Mode : Must Match Primary Router
      • Wireless Network Name(SSID) : Must Match Primary Router exactly including exact case- Make sure you spell this correctly
      • Wireless Channel : Must Match Primary Router (This will disappear once you put it in RB mode, and isn’t needed)
      • Wireless SSID Broadcast : Enable
      • Network Configuration : Bridged
    • Save
  • Open the Wireless -> Wireless Security tab
    • Physical Interface Section
      • Security Mode : Must Match Primary Router and DD-wrt only works reliably with WEP or WPA2-AES
      • WPA Algorithms : Must Match Primary Router
      • WPA Shared Key : Must Match Primary Router
      • Key Renewal Interval (in seconds) : Leave default
    • Save
  • Open the Setup -> Basic Setup tab
    • Connection Type will be: Disabled
    • Set STP for Disabled (Enabled sometimes can cause connection problems) redhawk
    • IP Address : (Assuming Primary Router IP is
    • Mask :
    • Gateway: (again assuming Primary Router IP is
    • DHCP Server: Disable
    • Local DNS: (if IP of Primary Router is
    • Assign WAN Port to Switch : Optionally enable this to use the WAN port as another LAN port.
    • Save
  • Open Setup -> Advanced Routing tab
    • Set Operating mode to “Router”
    • Save
  • Open Services
    • Disable Dnsmasq
    • Save
  • Open the Security -> Firewall tab
    • Uncheck all boxes…except Filter Multicast
    • Disable SPI firewall
    • APPLY Settings
  • Reboot the router.