How to Configure a Failover IP on Ubuntu 18 server

Redux

New Member
Apr 27, 2021
3
0
1
31
HEEELP PLEAAASE GUYS
I tried to use many tutoriels to attach a failover ip address to my new VM using this conf but I cannot ping outside the vm even the GATEWAY_IP ( google dns servers)
could you help me please

network:
version: 2
renderer: networkd
ethernets:
ens18:
addresses: [FAILOVER_IP/32]
routes:
- to: 0.0.0.0/0
via: GATEWAY_IP_ADDRESS
on-link: true
 
Last edited:
hey guys I resolve it ,

Thanks

Code:
network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      dhcp4: no
      dhcp6: no
      addresses:
          - FAILOVER_IP/32
      gateway4: TREE_PROXMOX_FIRST_octet.254
      optional: true
      routes:
         - to: TREE_PROXMOX_FIRST_octet.254/32
           via: 0.0.0.0
           scope: link

TREE_PROXMOX_FIRST_octet :  for example if your Proxmox ip  100.125.26.11
the gateway4 will be  100.125.26.254
 
hey guys I resolve it ,

Thanks

Code:
network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      dhcp4: no
      dhcp6: no
      addresses:
          - FAILOVER_IP/32
      gateway4: TREE_PROXMOX_FIRST_octet.254
      optional: true
      routes:
         - to: TREE_PROXMOX_FIRST_octet.254/32
           via: 0.0.0.0
           scope: link

TREE_PROXMOX_FIRST_octet :  for example if your Proxmox ip  100.125.26.11
the gateway4 will be  100.125.26.254
Hi , could you copy/paste your host network configuration ? because it's not working on mine :-(
thank you
 
@haricot
this config is the same in my server, it's a yaml file, pay attention to the spaces between the lines and the properites.

( you can use YAML Validator)

Could you please share the error msg ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!