[SOLVED] Configure complete use of subnet

Fastbuilder575

Active Member
Aug 1, 2017
1
0
41
29
## SOLVED ##

The IP for address in vmbr0 must be XX.YY.112.117 and in the Guest the gateway and pointopoint mus be removed.

## See Above for Solution ##


If I use the following interface Config on the Host, I have the Problem that the network IP (XX.YY.251.240) and the Broadcast IP (XX.YY.251.247) can't be used and 1 IP is used as Gateway for the Guests (XX.YY.251.241)

Working Interface Config
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp4s0
iface enp4s0 inet static
    address  XX.YY.112.117
    netmask  255.255.255.255
    gateway  XX.YY.112.97
    pointopoint XX.YY.112.97

auto vmbr0
iface vmbr0 inet static
    address XX.YY.251.241
    netmask 255.255.255.248
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    up ip route add XX.YY.251.242/28 dev vmbr0
    up ip route add XX.YY.251.243/28 dev vmbr0
    up ip route add XX.YY.251.244/28 dev vmbr0
    up ip route add XX.YY.251.245/28 dev vmbr0
    up ip route add XX.YY.251.246/28 dev vmbr0

With that config I can create a CT and it has access to the network and is reachable from external.

Now I tried to configure the Subnet with pointopoint to use all IPs, but now the Guest Systems can't access the internet and aren't reachable from external.

New Interface Config HOST
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp4s0
iface enp4s0 inet static
    address  XX.YY.112.117
    netmask  255.255.255.255
    gateway  XX.YY.112.97
    pointopoint XX.YY.112.97

auto vmbr240
iface vmbr240 inet static
        address XX.YY.251.240
        netmask 255.255.255.0
        pre-up brctl addbr $IFACE
        post-up route add -host XX.YY.240.240 $IFACE
        post-down brctl delbr $IFACE

auto vmbr241
iface vmbr241 inet static
        address XX.YY.251.241
        netmask 255.255.255.0
        pre-up brctl addbr $IFACE
        post-up route add -host XX.YY.240.241 $IFACE
        post-down brctl delbr $IFACE

.... removed for space

auto vmbr247
iface vmbr247 inet static
        address XX.YY.251.247
        netmask 255.255.255.0
        pre-up brctl addbr $IFACE
        post-up route add -host XX.YY.240.247 $IFACE
        post-down brctl delbr $IFACE

And here the Interface Config for the Guest
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xx.yy.251.240
        netmask 255.255.255.255
        gateway xx.yy.112.117
        pointopoint xx.yy.112.117

Has anybody an Idea what is wrong with the second config and how I can get it to work?
Main IP is XX.YY.112.117 the subnet is XX.YY.251.240/29

Thanks in advance,

Christian
 
Last edited:

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!