## 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
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
And here the Interface Config for the Guest
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
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: