Hi,
I'm feeling kind of stupid, nothing works...
Background:
I have a dedicated server at Server4You in Germany. Installed Debian Lenny image provided by the S4Y and installed Proxmox by means of apt-get.
I do have two public IPs but from different subnets. The main ip was bound to the interface eth0 the second I would like to use for a virtual machine.
Main IP:
Further IP:
The provider binds all traffic to the MAC address of the main interface (eth0)
So I thought I need a routed setup. I checked the Internet etc. but as soon as I configure vmbr0 the server will be unreachable
I tried various setups but the result is always the same. Server unreachable. So I have to boot into recovery mode and reset the settings.
The server is still reachable if I configure just eth0 in this configuration:
/etc/network/interfaces
My current vmbr0 configuration, which does not work looks like:
As far as I understand the gateway for the secondary IP has to be set in the vm only as the host can not have two default gateways, right?
Can anybody tell me why the host will turn out unreachable as soon as I activate vmbr0?
Thanks
Jörg
I'm feeling kind of stupid, nothing works...
Background:
I have a dedicated server at Server4You in Germany. Installed Debian Lenny image provided by the S4Y and installed Proxmox by means of apt-get.
I do have two public IPs but from different subnets. The main ip was bound to the interface eth0 the second I would like to use for a virtual machine.
Main IP:
Code:
IP 188.138.xx.71
Gateway 188.138.xx.1
Broadcast 188.138.xx.255
Netmask 255.255.255.0
Code:
IP 188.138.xx.201
Gateway 188.138.xx.193
Broadcast 188.138.xx.255
Netmask 255.255.255.192
So I thought I need a routed setup. I checked the Internet etc. but as soon as I configure vmbr0 the server will be unreachable
I tried various setups but the result is always the same. Server unreachable. So I have to boot into recovery mode and reset the settings.
The server is still reachable if I configure just eth0 in this configuration:
/etc/network/interfaces
Code:
# network interface settings
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 188.138.xx.71
netmask 255.255.255.255
gateway 188.138.xx.1
broadcast 188.138.xx.255
network 188.138.xx.0
pointopoint 188.138.xx.1
up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
Code:
# network interface settings
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 188.138.xx.71
netmask 255.255.255.255
gateway 188.138.xx.1
broadcast 188.138.xx.255
network 188.138.xx.0
pointopoint 188.138.xx.1
up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 188.138.xx.201
netmask 255.255.255.192
# broadcast 188.138.xx.255
bridge_ports none
bridge_stp off
bridge_fd 0
Can anybody tell me why the host will turn out unreachable as soon as I activate vmbr0?
Thanks
Jörg