VM network interfaces configuration Windows / Linux

sysbitnet

Renowned Member
Apr 20, 2016
21
1
68
Switzerland
sysbitnet.com
Hi,

I have problem to my Windows VM has no have internet.

On Proxmox ==> Network i create vmbr0 , vmbr1, vmbr2, with 3 static public IP xxx.sss.www.qqq/24 and any of this when i ping i get replay.

But when set in VM Netwrork interface on of this that machine not have access on internet, if i try to set static IP on inside VM network interface.

Can anyone tell where are we wrong in steps ?

Thank you
 
  • Like
Reactions: Jacopo1891
I fix the problem what i have, but maybe someone have better idea.

OPTIONS #1
On image Network-Proxmox-Virtual-Environment.png i have only one virtual bridge interface vmbr0 like main with public main IP with gateway.

And for any of VM configuration i use vmbr0 .
Of any VM netwrork card i setup new one static IP with gateway from vmbr0 public DNS and that work. Network interface have internet and work fine.


OPTIONS #2
But i create for for each of static ip new virtual bridge like what you can see on image Network-1-Proxmox-Virtual-Environment.png
and if I setup to use a different vmbr interface for each machine as you can see on image VM-Network-1-Proxmox-Virtual-Environment.png
VM machine not have access on internet if i configure network cards on VM.

Where I'm do wrong on OPTIONS#2 ?

Thank you
 

Attachments

  • Network-Proxmox-Virtual-Environment.png
    Network-Proxmox-Virtual-Environment.png
    48.8 KB · Views: 37
  • VM-Network-0-Proxmox-Virtual-Environment.png
    VM-Network-0-Proxmox-Virtual-Environment.png
    26.2 KB · Views: 38
  • Network-1-Proxmox-Virtual-Environment.png
    Network-1-Proxmox-Virtual-Environment.png
    50.6 KB · Views: 37
  • VM-Network-1-Proxmox-Virtual-Environment.png
    VM-Network-1-Proxmox-Virtual-Environment.png
    31.8 KB · Views: 39
Last edited:
Many people here have a Single Physical interface with multi IP addresses on different IP rage pools.

Here are solutions to get and what works on public IP

Open /# nano etc/network/interfaces and edit configuration.

Code:
auto lo
iface lo inet loopback

auto enp3s0f0
iface enp3s0f0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.100/24
        gateway 192.168.0.253
        bridge-ports enp3s0f0
        bridge-stp off
        bridge-fd 0

iface vmbr0 inet static
        address 192.168.1.100/24
        gateway 192.168.1.1

enp3s0f0 - This is Network physical card interface name in my case
vmbr0 - This is the virtual bridge interface name

On the second vmbr0 interface you do not need to have an address like a primary parameter.

From someone's data center you need to add Vlan Tag on VM or CT interface !!!
 
Last edited:
In typical logical situations, you just need to have on the main physical interface a single static IP address with /32 for access and manage the node.

If you have more static IP on that node, the best way to setup static IP address for ich one direct on network card using the same main interface with new static IP with /32

When you create VM you need to do the same, just direct in network interface depending on the operating systems.
 

Attachments

  • Network-Proxmox-Virtual-Environment..png
    Network-Proxmox-Virtual-Environment..png
    36.3 KB · Views: 21
  • Container not tag on vlan - Network-Proxmox-Virtual-Environment.png
    Container not tag on vlan - Network-Proxmox-Virtual-Environment.png
    27.1 KB · Views: 19
  • Container with vlan tag - Network-Proxmox-Virtual-Environment.png
    Container with vlan tag - Network-Proxmox-Virtual-Environment.png
    26.9 KB · Views: 19

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!