Adding multiple IPs.

omnislash

New Member
Oct 24, 2023
2
0
1
I have multiple IPs.(75.75.200.33~47).
I created 10 VMs.
I want attach one public ip to each VM.
I tried to set "Routed Configuration" like below.
iface lo inet loopback auto eno0 iface eno0 inet static address 75.75.200.45 gateway 75.75.200.46 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up echo 1 > /proc/sys/net/ipv4/conf/eno0/proxy_arp auto vmbr0 iface vmbr0 inet static address 75.75.200.33/28 bridge-ports none bridge-stp off bridge-fd 0

But it doesn't work also damage my network.
Please Anyone help me.
 
Hey,
probably the easiest way would be to attach everything to the same bridge.

Code:
auto lo
iface lo inet loopback

iface eno0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 75.75.200.45/28
    gateway 75.75.200.46
    bridge-ports eno0
    bridge-stp off
    bridge-fd 0

This gives your proxmox instance the ip 75.75.200.45.
The IPs for the guests would need to be set manually inside the respective VMs.
 
Hey,
probably the easiest way would be to attach everything to the same bridge.

Code:
auto lo
iface lo inet loopback

iface eno0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 75.75.200.45/28
    gateway 75.75.200.46
    bridge-ports eno0
    bridge-stp off
    bridge-fd 0

This gives your proxmox instance the ip 75.75.200.45.
The IPs for the guests would need to be set manually inside the respective VMs.
Thank you for your response. But i can't access vms using static ip if i use bridge mode.
 
Where does it fail for you?
If you also give a static IP to each VM and connect them to vmbr0 they should be as reachable as your proxmox instance.
If you want them to automatically gain an IP you would need an DHCP server and stuff, but with a total range of 14 usable
addresses that would be a bit overkill.

Maybe explain what your network before Proxmox looks like. At the moment my understanding is, that the whole network of 75.75.200.32/28
arrives at your server and you are struggling to forward that traffic to the vm's?
 
Dont set this
Code:
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno0/proxy_arp

See the post from Folke Gleumes.

Evtl. you need a dhcpd for your net 75.75.200.45/28 to respond to the vm's mac in the right way.
 

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!