Help with network

kaskull

New Member
Dec 31, 2018
3
0
1
30
Hi there,

I just rent a dedicated sever and installed proxmox.

I've reading docomuntationation to set up my network on each of my VM.

I edited /etc/network/interfaces, and i added this code:

Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  {my ip}/24
    gateway  {my gateway}
    bridge-ports enp1s0
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet static
    address  192.168.1.1
    netmask  255.255.255.0
    bridge-ports none
    bridge-stp off
    bridge-fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE

Then i restarted and once i created my VM i just set a fixed ip but still not having internet. Why?


PD: My version is Virtual Environment 5.3-6.
 
Last edited:
And what did you use for network interface in your vm?
If you used vmbr1 than it works as designed. Vmbr1 is an internal bridge. Used to connect between VMs on the host.
Add vmbr0 to your vm.
 
When i create my VM using vmbr1, my VM wont start.

I've seen that my network is not active, how can i active it?
Is this the problem?

Well... i can't post the image.
I go to datacenter>myMachine>system>Network and i see: Name: vmbr1 ---- Type: Linux Bridge ---- Active: No
 

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!