I have recently bought a test dedicated server to test proxmox. The installation went smoothly, but i get stuck in the network configuration
I'm given the IP: 192.151.154.146/29
After proxmox installation, the interfaces
was
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.151.154.146
netmask 255.255.255.248
network 192.151.154.144
broadcast 192.151.154.151
gateway 192.151.154.145
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 127.0.0.1
dns-search nocix.net
I followed proxmox tutorial and change the content of the /etc/network/interfaces
to
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.151.154.146
netmask 255.255.255.248
gateway 192.151.154.145
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 192.151.154.147
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
My objective is to create a LXC that has address 192.151.154.148
. This is the configuration:
This is the interfaces
of the created LXC container:
Unfortunately the created LXC container cannot connect to internet.
Could any one tell me what i am doing wrongly?
Thanks!