I have 4 available IP addresses, I want to add them to the ProxMox of each VM

damiankopanko

New Member
May 1, 2024
11
0
1
Hello, I know this has already been addressed, but neither of them worked for me. My problem is that I have 4 public ip addresses. I would like each VM to get its own public IP address. So if I do something small that I found, it doesn't work, it either says that qemu exit code 1, or if it works, the internet doesn't work in the VM.
The Internet does not work in such a way that it cannot even find DHCPV4.

So could you help me solve this?
 
Tell us more about your setup. I suppose you have a proxmox server in a server hosting somewhere and a /29 network with a gateway from your provider, like 188.16.12.0/29.
In this example 188.16.12.1 would be your gateway, 2-6 your 5 ips.
 
Yes, I have the IP address 63.141.251.170/29, and I have a little trouble setting it up. And even if I set it up, either the Internet does not work or I cannot redirect IP addresses.
 
Does your proxmox host have an IP in that range? Can you ping the default gw and 8.8.8.8 (Google nameserver)
Is that IP on your vmbr interface?

brctl show
should show your vmbr0 bridge interface, please post your /etc/network/interfaces


Are you allowed to have additional Mac addresses, maybe you need to clear that with your provider.
 
Does your proxmox host have an IP in that range? Can you ping the default gw and 8.8.8.8 (Google nameserver)
Is that IP on your vmbr interface?

brctl show
should show your vmbr0 bridge interface, please post your /etc/network/interfaces


Are you allowed to have additional Mac addresses, maybe you need to clear that with your provider.
If I give the command, it shows this: bridge name bridge id STP enabled interfaces
vmbr0 8000.6805ca2328d3 no enp3s0

Google pinging works and I am also allowed to have multiple mac addresses.
 
Sounds good

So inside your VM configure another of your IPs.

Ping 8.8.8.8

Do

tcpdump -ni vmbr0 icmp

on your host, you should see the ICMP echo request and reply packets.

tcpdump -ni enp3s0 icmp

should show the same, these are the packets leaving/entering your system
 
Actually I can't install the VM because every time I turn on the VM it shows me instead of IPV4 --
Sounds good

So inside your VM configure another of your IPs.

Ping 8.8.8.8

Do

tcpdump -ni vmbr0 icmp

on your host, you should see the ICMP echo request and reply packets.

tcpdump -ni enp3s0 icmp

should show the same, these are the packets leaving/entering your system
 
I assume 63.141.251.171 is the gateway, 172 is your proxmox host, so your VM will have to be the next free IP 173:

Subnet: 63.141.251.170/29
Address: 63.141.251.173/29
Gateway: 63.141.251.171
Nameserver: 8.8.8.8 or 1.1.1.1 or 9.9.9.9
 
The subnet is the first IP in your range, the broadcast is the last.
The subnet mask can either be written /29 (CIDR Notation) or 255.255.255.248
 
The subnet entry is:

Subnet: 63.141.251.170/29

see above
 
ok,

ipcalc 63.141.251.170/29
Address: 63.141.251.170 00111111.10001101.11111011.10101 010
Netmask: 255.255.255.248 = 29 11111111.11111111.11111111.11111 000
Wildcard: 0.0.0.7 00000000.00000000.00000000.00000 111
=>
Network: 63.141.251.168/29 00111111.10001101.11111011.10101 000
HostMin: 63.141.251.169 00111111.10001101.11111011.10101 001
HostMax: 63.141.251.174 00111111.10001101.11111011.10101 110
Broadcast: 63.141.251.175 00111111.10001101.11111011.10101 111
Hosts/Net: 6 Class A


so what is your gateway? Probably 169, so your ips can be 170-174

If your proxmox host is 170, you have 171,172 and 173 left for virtual machines, so here

If your proxmox host and the gateway are not 169 and 170 then change accordingly

Subnet: 63.141.251.168/29
Address: 63.141.251.171
Gateway: 63.141.251.169
Nameserver: 8.8.8.8 or 1.1.1.1 or 9.9.9.9
 
  • Like
Reactions: _gabriel

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!