I'm new to VM's, bridges and bonding. The network configuration page suggests some settings but leaves many things unclear to me.
I want to bond two NICs, a 1G and a 10G, in active-backup mode with the 10G as primary. Then I want to use a bridge so that all my VM's use the 10G and failover to the 1G if needed. My organization allows a bridge and can increase MAC counts upon request... but in a bonded situation, I'm not sure if I'm increasing the MAC count for each physical port or just for an IP address.
Here's what the configuration page suggests:
In the example, the bond and bridge both use private network addresses, but I'm assuming there needs to be a public address somewhere in this or else the VM's can't access the Internet. Then again, the public addresses used by the VM's themselves may be enough to gain Internet access without exposing the hypervisor to the Internet.
Is it intended for me to use the exact settings above and then somehow use a public IP on the ordinary network interfaces (eno1 and eno2)? Or more likely I need to customize this for my particular network. We have a 10.20.* range for "building devices" that I use for lights out controllers. I can reserve an address (or two) there if needed.
I hope someone can clear this up for me! Thanks.
I want to bond two NICs, a 1G and a 10G, in active-backup mode with the 10G as primary. Then I want to use a bridge so that all my VM's use the 10G and failover to the 1G if needed. My organization allows a bridge and can increase MAC counts upon request... but in a bonded situation, I'm not sure if I'm increasing the MAC count for each physical port or just for an IP address.
Here's what the configuration page suggests:
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
auto bond0
iface bond0 inet static
slaves eno1 eno2
address 192.168.1.2
netmask 255.255.255.0
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer2+3
auto vmbr0
iface vmbr0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
In the example, the bond and bridge both use private network addresses, but I'm assuming there needs to be a public address somewhere in this or else the VM's can't access the Internet. Then again, the public addresses used by the VM's themselves may be enough to gain Internet access without exposing the hypervisor to the Internet.
Is it intended for me to use the exact settings above and then somehow use a public IP on the ordinary network interfaces (eno1 and eno2)? Or more likely I need to customize this for my particular network. We have a 10.20.* range for "building devices" that I use for lights out controllers. I can reserve an address (or two) there if needed.
I hope someone can clear this up for me! Thanks.