Bonding with VLAN

GoatMaster

Active Member
Oct 4, 2017
41
1
28
36
I don't get it.
I try to create a bonding of two physical network adapters. It also should have a VLAN tagged.

How can I do this without OVS.
I don't want virtual machines to reach this network, just the node itself.
 
iface eno1 inet manual
iface eno2 inet manual

auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2

auto bond0.1
iface bond0.1 inet manual

auto vmbr1
iface vmbr1 inet static
address 192.168.X.Y
netmask 255.255.255.0
gateway 192.168.X.1
bridge_ports bond0.1
bridge_stp off
bridge_fd 0
 
iface eno1 inet manual
iface eno2 inet manual

auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2

auto bond0.1
iface bond0.1 inet manual

auto vmbr1
iface vmbr1 inet static
address 192.168.X.Y
netmask 255.255.255.0
gateway 192.168.X.1
bridge_ports bond0.1
bridge_stp off
bridge_fd 0
Perrfect, it is working now. Thank you!

Is there a way to do it without the vmbr1 ?
Because I don't want that someone add this network to a virtual machine.