routing through node

mir

Famous Member
Apr 14, 2012
3,584
139
133
Copenhagen, Denmark
Hi all,

Is it possible to route network traffic through a bridge on the node without exposing the node to the same subnet?

Eg. something like

netdev: eth2
Net: 172.16.1.0/24

VM net config:
# The primary network interface
auto eth0
iface eth0 inet static
address 172.16.1.10
network 172.16.1.0
netmask 255.255.255.0
gateway 172.16.1.1

Node net config
auto vmbr2
iface vmbr2 inet static
address 172.16.1.{2-5}
netmask 255.255.255.0
bridge_ports ???? <----- *)
bridge_stp off
bridge_fd 0

*)
bridge_ports none breaks route to/from gateway and VM's
bridge_ports eth2 exposes the node to the subnet