VM networking

hmm,
I can set the ip on the vm
like this :
Code:
HWADDR=6E:D4:18:4F:A7:8D
TYPE=Ethernet
BOOTPROTO=none
IPADDR=202.xx.xx.1
PREFIX=29
GATEWAY=202.xx.xx.5
DNS1=202.xx.xx.5
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth0"
UUID=09fda93f-5201-4247-9132-bfd9a3514bd6
ONBOOT=yes
LAST_CONNECT=1373977108
and I can access it from the internet
 
Last edited by a moderator:
I have 4 dedicated ip, I want to run multiple KVM vm in 1 node with these ip
202.XX.XX.1 -> 1 VM
202.XX.XX.2 -> 1 VM
202.XX.XX.3 -> 2 VM (port 22 and 30504)
202.XX.XX.4 -> 2 VM (port 12345 and 7777)

Gateway is 202.XX.XX.5

how to achieve this?

Wich is your goal? the first 2 public ip for 1 vm each Or the first 2 public ip intended each for the vm number 1?
 
must attach the virtual nic at the same vmbr0, but assign 2 different ip

physical eth -> vmbr0 -> VM n°1 virtual nic attached at vmbr0 ip xxx.xxx.xxx.x25
physical eth -> vmbr0 -> VM n°2 virtual nic attached at vmbr0 ip xxx.xxx.xxx.x26

for the other 2 VMS must set port forwarding with iptable on the host giving the 3rd and 4th public ip at the host and natting ports needed

Hope this can help you
 
Thanks for your help
I know how to set VM 1 and 2 IP (202.xx.xx.1 and 202.xx.xx.2)

but i don't know how to setup natting ports, can you assist me?
 

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!