Adding IP Address to Windows VM

webiscore

Member
Jun 30, 2019
17
0
6
38
Hello,

Sorry might be a silly question I'm a newbie to Proxmox, I've ordered a dedicated server and installed the latest Proxmox ISO image, the server had 1 IP already defined however I had to add the other IPs please let know if I'm wrong.
I opened the Datacenter>Node>Network> Create > Linux Bridge.

In Linux Bridge i couldn't define the gateway of Ip due it was assigned to "vmbr0"

"vmbr1 to vmbr4" has the IPs with subnet and network > interfaces verify that

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp5s0 inet manual

iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  xxx.xxx.xxx.42
    netmask  255.255.255.248
    gateway  xxx.xxx.xxx.41
    bridge-ports enp5s0
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet static
    address  xxx.xxx.xxx.43
    netmask  255.255.255.248
    bridge-ports enp6s0
    bridge-stp off
    bridge-fd 0

auto vmbr2
iface vmbr2 inet static
    address  xxx.xxx.xxx.44
    netmask  255.255.255.248
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr3
iface vmbr3 inet static
    address  xxx.xxx.xxx.45
    netmask  255.255.255.248
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr4
iface vmbr4 inet static
    address  xxx.xxx.xxx.46
    netmask  255.255.255.248
    bridge-ports none
    bridge-stp off
    bridge-fd 0

Please let me know if the above is correct or not. I've created a new VM with Windows 2016 Server installed and assigned "vmbr1" as the default network and IP address but when I login I couldn't see the server taking the IP by DHCP so I tried defining it manually yet didn't work and it shows > no network access (no internet)

What have I done wrong and how to resolve it?
 
As far as i can see, you should redoing your Network Config:

Only use:
Code:
auto vmbr0
iface vmbr0 inet static
    address  xxx.xxx.xxx.42
    netmask  255.255.255.248
    gateway  xxx.xxx.xxx.41
    bridge-ports enp5s0
    bridge-stp off
    bridge-fd 0

Remove all the other vmbr Interfaces. After you do this, set the vmbr0 to Bridge in all of your VMs, then go in to the VM an setup the other IPs which you want to use with the VM. Thats all, nothing more todo. You have a Subnet and it not seems you need routed Setup, or? Did you have virtual MAC Address from your Provider?
 
As far as i can see, you should redoing your Network Config:

Only use:
Code:
auto vmbr0
iface vmbr0 inet static
    address  xxx.xxx.xxx.42
    netmask  255.255.255.248
    gateway  xxx.xxx.xxx.41
    bridge-ports enp5s0
    bridge-stp off
    bridge-fd 0

Remove all the other vmbr Interfaces. After you do this, set the vmbr0 to Bridge in all of your VMs, then go in to the VM an setup the other IPs which you want to use with the VM. Thats all, nothing more todo. You have a Subnet and it not seems you need routed Setup, or? Did you have virtual MAC Address from your Provider?

I have reset the network configuration and set the main IP that ends with .42 as the main IP on vmbr0 and then created a VM with Windows ISO. The windows has loaded I went to network center and added a new IP ending with .43 however it's not working still getting undefined network with no internet access. I am sorry I am a newbie to PRoxmox I'm trying to set Firewall Rules and also I'm asking to set-up adding all available IPs to be used by the server however that isn't working.

Any help with a complete documentation and clear example to resolve all those issues.
 

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!