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:
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.
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: