Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170643

[SOLVED] Assigning two IPv4 subnets to one server

$
0
0
There are already some threads on here with some information on assigning multiple subnets to one Proxmox VE server, but none of them have been able to help me.

I have one dedicated server in a datacenter that has one Ethernet port. I have had a /29 subnet assigned to the server for a few weeks now, but recently ordered a /30 subnet and have been spending my day trying to figure out how to set it up. Below is some information on each subnet.

Quote:

Size: /29
Addresses: 199.x.x.34 - 199.x.x.46
Gateway: 199.x.x.33
Netmask: 255.255.255.240
Quote:

Size: /30
Addresses: 162.x.x.218 - 162.x.x.222
Gateway:
162.x.x.217
Netmask:
255.255.255.248


Here is my current /etc/network/interfaces file on the host machine.

Quote:

auto loiface lo inet loopback


auto eth0
iface eth0 inet static
address 199.x.x.34
netmask 255.255.255.240
gateway 199.x.x.33
broadcast 199.x.x.47


auto vmbr0
iface vmbr0 inet static
address 199.x.x.34
netmask 255.255.255.240
gateway 199.x.x.33
bridge_ports eth0
bridge_stp off
bridge_fd 0


How do I go about assigning the additional subnet to my dedicated server? I have tried to just create vmbr1 just like how vmbr0 is configured, but with the new subnet information, but when I create a new OpenVZ VPS and give it an IP address from that subnet it won't work.

If possible I'd prefer to be able to set all of this up through SSH and then just restart some services instead of restarting the entire machine.

Viewing all articles
Browse latest Browse all 170643

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>