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