subnet network setup

blackbumer

New Member
Jul 7, 2009
16
0
1
Hello,
i have an subnet from ripe

like

IP: 77.66.114.128 /25
Maske: 255.255.255.128
Broadcast: 77.66.114.255
subnet range 77.66.114.129 to 178.63.114.254

and 1 additional ip for proxmox host like
address 77.66.18.202
netmask 255.255.255.192
gateway 77.66.18.193

how to configure right /etc/network/interfaces for this ripe data? right?
atm i have such config but when i can't ping from kvm vps(veth) to any openvz(venet) container

Code:
# network interface settings
auto lo
iface lo inet loopback

#iface eth0 inet manual

auto eth0
iface eth0 inet static
        address  77.66.18.202
        netmask  255.255.255.192
        gateway  77.66.18.193
        post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet static
        address 77.66.114.254
        netmask 255.255.255.128
        network 77.66.114.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        post-up echo 1 > /proc/sys/net/ipv6/conf/eth0/proxy_ndp
        post-up /etc/danil/kvm-routing-up.sh

:confused::confused:
 
if i setup my network in this way, could i ping venet interfaces from veth in same subnet range?
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 77.66.18.202
netmask 255.255.255.192
gateway 77.66.18.193
bridge_ports eth0
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr1
iface vmbr1 inet static
address 77.66.114.254
netmask 255.255.255.128
network 77.66.114.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
 
found in another thread
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 77.66.18.202
netmask 255.255.255.192
gateway 77.66.18.193
bridge_ports eth0
bridge_stp on
bridge_fd 0
post-up route add -net 77.66.114.128 netmask 255.255.255.128 dev vmbr0
but witch gateway i should use in kvm ?
 
i have an such setup

internet
|
|
|
[WAN] (77.66.18.202/255.255.255.192 gw 77.66.18.193)
PROXMOX
|
| subnet for VPS (77.66.114.128/255.255.255.128)
|-------------------|-----------------|--------------------|
VPS101(openvz) vps102 (kvm) vps103(kvm)
77.66.114.129/25 77.66.114.130/25 77.66.114.131/25

for openvz containers all works fine
but for kvm need to setup default route... witch one i should use?
my /etc/network/interfaces looks like

Code:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
        address  77.66.18.202
        netmask  255.255.255.192
        gateway  77.66.18.193
        bridge_ports eth0
        bridge_stp on
        bridge_fd 0
        post-up route add -net 77.66.114.128 netmask 255.255.255.128 dev vmbr0
 
Last edited:
Hi,
do i understand you right, that you have an offical ip (77.66.18.202 - the others IP in this block are not for you?!) and a official subnet (77.66.114.128/25) which is routed through your provider-ip 77.66.18.202?!

If this is right, your proxmox host need to be an router - like
eth0 - vmbr0 (77.66.18.202)
eth1 - vmbr1 (77.66.114.254)
echo 1 > /proc/sys/net/ipv4/ip_forward

the kvm-guests need to bridge to vmbr1 and the default gateway must be 77.66.114.254.

If you have only one nic you can use vmbr0:1 for your ripe-block?!

Perhaps it's help

Udo
 

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!