Last active
December 2, 2016 07:07
-
-
Save asabla/97f5063164e819b65a68f8f53eb7f8cd to your computer and use it in GitHub Desktop.
Proxmox multiple public ip's @ online.net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When you have access to proxmox web gui make sure you have all isos and fail over configured | |
# 1. Create a new new VM and set MAC the same as in the panel whilst handling fail over ips | |
# 2. Boot up the machine and go through the installation (skip networking part) | |
# 3. After installation login into the machine with VNC (through proxmox) | |
# 4. edit /etc/network/interface and add this: | |
auto lo ens18 | |
iface li inet loopback | |
iface ens18 inet static | |
address <fail over ip> | |
netmask 255.255.255.255 | |
broadcast <fail over ip> | |
post-up route add <vm host gateway> dev ens18 | |
post-up route add default gw <vm host gateway> | |
pre-down route del <vm host gateway> dev ens18 | |
pre-down route del default gw <vm host gateway> | |
dns-nameservers 62.210.16.6 62.210.16.7 8.8.8.8 8.8.4.4 | |
# 5. Then make sure to add these in /etc/resolv.conf | |
# old values | |
#nameserver 62.210.16.6 | |
#nameserver 62.210.16.7 | |
nameserver 8.8.8.8 | |
# 6. then run command: ifconfig ens18 up | |
# 7. followed by: service networking restart | |
# 8. everything should be working |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment