VM cant reach anything outside of the network

J Etweema

New Member
Aug 4, 2015
1
0
1
Hi,

The VM running on Proxmox can't reach any machine besided the local network. What is the mistake I made.
The hosts network config cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback

auto eth0
auto eth1
iface eth0 inet manual
iface eth1 inet static
address x.x.x.10
netmask 255.255.255.0
gateway x.x.x.1

iface eth2 inet manual
iface eth3 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.240.80
netmask 255.255.255.0
gateway 192.168.240.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

The routing table on the host:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.240.43 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.240.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
x.x.x.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 x.x.x.1 0.0.0.0 UG 0 0 0 eth1


The VM's network config:
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:318 errors:0 dropped:0 overruns:0 frame:0
TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40557 (39.6 KiB) TX bytes:40557 (39.6 KiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:126 errors:0 dropped:0 overruns:0 frame:0
TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13601 (13.2 KiB) TX bytes:12366 (12.0 KiB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.240.43 P-t-P:192.168.240.43 Bcast:192.168.240.43 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


However the routing table shows:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 venet0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0

I am sure its a small thing which I did wrong, but after looking and looking I don't see the mistake anymore :)

Thanks in advance

J
 
Hi Etweema.

Looks like you are using a OpenVZ container VM. Did you choose the Routed (or Bridged) network option when creating the VM?
 

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!