add 5 public ip to my proxmox

The easiest would be to give each VM two network interfaces. One with your internal network and another with the public network and set the IP for the interfaces if you have a Debian based VM your /etc/network/interfaces could look something like this


Code:
auto lo
iface lo inet loopback


# interal
auto ens18
iface ens18 inet static
    address 192.168.33.21/24
    bridge-ports ens18
    bridge-stp off
    bridge-fd 0


# public
auto ens19
iface ens19 inet static
    address 212.186.XXX.XXX/24
    gateway 212.186.XXX.XXX
    bridge-ports ens19
    bridge-stp off
    bridge-fd 0
 
  • Like
Reactions: ahmedelzeki
The easiest would be to give each VM two network interfaces. One with your internal network and another with the public network and set the IP for the interfaces if you have a Debian based VM your /etc/network/interfaces could look something like this


Code:
auto lo
iface lo inet loopback


# interal
auto ens18
iface ens18 inet static
    address 192.168.33.21/24
    bridge-ports ens18
    bridge-stp off
    bridge-fd 0


# public
auto ens19
iface ens19 inet static
    address 212.186.XXX.XXX/24
    gateway 212.186.XXX.XXX
    bridge-ports ens19
    bridge-stp off
    bridge-fd 0
thanks
i appreciate your help
i will try it
 

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!