Network Weirdness

reno31

Member
Nov 26, 2012
1
0
21
Hello

I'm a new user to proxmox, and i have some problem.
Installation went well, and I can access to the panel.
I can create and launch VM, I can ping them but i have no service responding on VMs (ssh or http), but i can see packet coming with tcpdump on both hypervisor and vm.
After a complete day to find out why I made a discover.

My Proxmox server is on LAN, this lan was misconfigured years ago and he is not in 192.168 or 172.16 or 10, but in a public ip who dont belong to us. the all network is set up with the 220.220.1.0/24 . It's horrible, but it can't be changed, too many application server are configured with this network. Anyway, the proxmox serv is on 220.220.1.241 and the gateway on 240. Users on lan can find 10.0.0.0/24 via a static road on the gateway.
So i want to have my vm on a new subnet 10.0.0.0/24.

/etc/network/interfaces
Code:
# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  220.220.1.241
        netmask  255.255.255.0
        gateway  220.220.1.240
        broadcast  220.220.1.255
        network  220.220.1.0

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.0.0.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

route -n
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
220.220.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 vmbr0
0.0.0.0         220.220.1.240   0.0.0.0         UG    0      0        0 eth0

For testing purpose i downloaded 1 turnkey VM (ownclood)(openvz), the debian 7 template(openvz), and a fresh install of debian 6(kvm).
I assigned to ownclood a venet : 10.0.0.2
To debian7 veth : eth0 link to vmbr0 and assign static ip 10.0.0.3 on the vm
to debian6 Virtio : assigned staticly to 10.0.0.4

In this setup, i can ping all VM and the vmbr0, see the traffic trough tcpdump but no service is responding ssh or http just timeout.
I notice that if I do
Code:
route del -net 220.220.1.0/24
All service of VM works, http or ssh, or wathever, but I cannot access hypervisor anymore (nor http or ssh)
I have to
Code:
route add -net 220.220.1.0/24
to regain access to hypervisor, but i loose vm again.

Hop I have been clear, english is not my best point so I thank the one who read up so far and bless the one who will respond.
 

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!