New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to route additional IP address exclusively to nested virt instance?
I have a host running Proxmox and I want to create another nested Proxmox instance which will use the additional IP address.
How do I configure the main host so that connections to the additional IP go directly to the nested instance without any interference from the host?
Does that entail creating an additional NIC on the host and somehow binding it to the nested instance? Quite simply I want it such that if the nested virt is shutdown the IP does not respond in any manner.

Comments
To achieve this, you can configure routing and networking on your Proxmox host so that the additional IP is directly routed to the nested Proxmox instance, ensuring no interference from the host itself. Here's how you can set it up step by step:
1. Obtain an Additional IP
2. Set Up a Bridge on the Host
Create a dedicated bridge interface on the host. This bridge will be exclusively used by the nested instance.
Example
/etc/network/interfacesconfiguration for the Proxmox host:Restart networking or add the bridge dynamically:
bash systemctl restart networking3. Assign the Additional IP to the Nested Instance
Create or edit the network configuration of the nested Proxmox instance:
vmbr1.Inside the nested Proxmox instance, assign the additional IP address to its interface.
Example
/etc/network/interfacesfor the nested instance:Replace
<ADDITIONAL_IP>,<NETMASK>, and<GATEWAY>with the details provided by your provider. If using routed IPs, the gateway may be your Proxmox host's primary IP.4. Set Up a MAC Address (If Required)
Some providers require you to use a specific MAC address for the additional IP. Generate a virtual MAC address (often done in the provider's control panel) and assign it to the virtual NIC of the nested instance.
In Proxmox, edit the VM configuration (
/etc/pve/qemu-server/<VMID>.conf):bash net0: virtio=<GENERATED_MAC>,bridge=vmbr15. Ensure the Host Doesn't Respond to the Additional IP
bash ss -lntp6. Test the Setup
Additional Notes
Firewall Rules: Optionally, configure the host's firewall (e.g., UFW or iptables) to ensure no accidental interference with the additional IP:
Routing Setup: If the additional IP requires routed configuration, ensure proper forwarding and routing rules are applied.
This setup ensures that the additional IP is exclusively tied to the nested instance, and the host does not interfere or respond to it.
Regards,
Chatgpt
If the subnet is statically routed to your bare metal, you’d just enable forwarding and set it up on the bridge towards the nested VM.
If not, you are looking at a less clean setup with NAT and/or proxy arp.