Hi,
I'm sorry I am aware this is probably the most basic of questions but can't seem to figure it out after several articles and youtube videos!
I have a new dedicated server with PVE installed. I have 4 public IP addresses.
I plan to use xx.xx.135.199 for the management of PVE and two of the other public IP's (xx.xx.135.200 and xx.xx.135.201) directly on VM's that will host web servers.
However I would like to create a private network for several other guest VM's (test web server, test client desktop and some other testing/evaluation stuff), and setup NAT for my last IP xx.xx.135.202. My understanding from reading up on PVE before I started was that PVE could act as the router in this instance, forwarding incoming traffic to the private network just like my home router does.
At the moment I have an /etc/network/interfaces file that looks thusly:
When I create a VM, connect it's network card to vmbr0 and set the guest OS to IP xx.xx.135.200 with gateway xx.xx.135.199 it works great. VM gets the public IP allocated straight to it.
When I create a VM, connect its network card to vmbr1 and the guest OS to IP 10.0.0.2 with mask 255.255.0.0 and gateway of 10.0.0.1, the guest cannot access the wider internet. It can ping 10.0.0.1 (or indeed 10.0.0.3 if I create another VM and connect it to vmbr1). But it cannot ping 8.8.8.8 and is unable to resolve hostnames if I try to ping bbc.co.uk
Is this possible? Can someone explain to a n00b out of his depth how to achieve this?
Thanks in advance for any insight
I'm sorry I am aware this is probably the most basic of questions but can't seem to figure it out after several articles and youtube videos!
I have a new dedicated server with PVE installed. I have 4 public IP addresses.
I plan to use xx.xx.135.199 for the management of PVE and two of the other public IP's (xx.xx.135.200 and xx.xx.135.201) directly on VM's that will host web servers.
However I would like to create a private network for several other guest VM's (test web server, test client desktop and some other testing/evaluation stuff), and setup NAT for my last IP xx.xx.135.202. My understanding from reading up on PVE before I started was that PVE could act as the router in this instance, forwarding incoming traffic to the private network just like my home router does.
At the moment I have an /etc/network/interfaces file that looks thusly:
Code:
auto primary
iface primary inet static
address xx.xx.135.199/32
gateway xx.xx.135.193
pointopoint xx.xx.135.193
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/primary/proxy_arp
iface enpls0f0 inet manual
auto vmbr0
iface vmbr0 inet static
address xx.xx.135.199/32
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add xx.xx.135.200/32 dev vmbr0
up ip route add xx.xx.135.201/32 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1/16
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add 213.170.135.202/32 dev vmbr1
When I create a VM, connect it's network card to vmbr0 and set the guest OS to IP xx.xx.135.200 with gateway xx.xx.135.199 it works great. VM gets the public IP allocated straight to it.
When I create a VM, connect its network card to vmbr1 and the guest OS to IP 10.0.0.2 with mask 255.255.0.0 and gateway of 10.0.0.1, the guest cannot access the wider internet. It can ping 10.0.0.1 (or indeed 10.0.0.3 if I create another VM and connect it to vmbr1). But it cannot ping 8.8.8.8 and is unable to resolve hostnames if I try to ping bbc.co.uk
Is this possible? Can someone explain to a n00b out of his depth how to achieve this?
Thanks in advance for any insight
Last edited: