Public ip on windows guest

Fenixoid

New Member
Mar 24, 2015
2
0
1
Hello,

I have a public ip, that I want to use on windows guest:

network: 1.1.1.1
ip address: 1.1.1.2
gateway: 1.1.1.3
broadcast: 1.1.1.4
netmask: 255.255.255.252

Host has other public ant private ip on eth0 and eth0:1

Is there a no-pain way to give 1.1.1.2 ip to guest? I thought to use gateway on host, but since there's only one ip in range, I can't do it.

Current config is:

Code:
# network interface settings
auto lo
iface lo inet loopback

# FOR HOST
auto eth0
iface eth0 inet static
        address 79.*.*.225
        netmask 255.255.255.248
        broadcast 79.**.**.231
        network 79.**.**.224
        gateway 79.**.**.230
        dns-nameservers 195.14.170.14 195.14.172.14

# FOR host (250) guests (3 vm are having 192.168.1.77, 192.168.1.79 and 192.168.1.80 ip's and share 192.168.1.253 gateway)
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
        address 192.168.1.250
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.253
        dns_nameservers 195.14.170.14 195.14.172.14

# FOR WINDOWS guest
???
 
Hello,

I have a public ip, that I want to use on windows guest:

network: 1.1.1.1
ip address: 1.1.1.2
gateway: 1.1.1.3
broadcast: 1.1.1.4
netmask: 255.255.255.252

Host has other public ant private ip on eth0 and eth0:1

Is there a no-pain way to give 1.1.1.2 ip to guest? I thought to use gateway on host, but since there's only one ip in range, I can't do it.

Current config is:

Code:
# network interface settings
auto lo
iface lo inet loopback

# FOR HOST
auto eth0
iface eth0 inet static
        address 79.*.*.225
        netmask 255.255.255.248
        broadcast 79.**.**.231
        network 79.**.**.224
        gateway 79.**.**.230
        dns-nameservers 195.14.170.14 195.14.172.14

# FOR host (250) guests (3 vm are having 192.168.1.77, 192.168.1.79 and 192.168.1.80 ip's and share 192.168.1.253 gateway)
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
        address 192.168.1.250
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.253
        dns_nameservers 195.14.170.14 195.14.172.14

# FOR WINDOWS guest
???

If you have 2 public IP's and one is assigned to a NIC on your proxmox host then you need to create a bridge onto the NIC that is connected to the public network. You can then connect your VM to this bridge and assign your other public IP to it.

Tom
 

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!