
macvlan bridges are too selective about forwarding arp replies so create a tiered structure of bridges using veth pairs instead.
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
# This file describes the network interfaces available on your system
|
|
# and how to activate them. For more information, see interfaces(5).
|
|
|
|
source /etc/network/interfaces.d/*
|
|
|
|
# The loopback network interface
|
|
auto lo
|
|
iface lo inet loopback
|
|
|
|
auto enp1s0f0
|
|
iface enp1s0f0 inet manual
|
|
bond-master bond0
|
|
|
|
auto enp1s0f1
|
|
iface enp1s0f1 inet manual
|
|
bond-master bond0
|
|
|
|
auto bond0
|
|
iface bond0 inet manual
|
|
#mtu 8900
|
|
bond-mode 802.3ad
|
|
bond-miimon 100
|
|
bond-lacp-rate fast
|
|
bond-slaves enp1s0f0 enp1s0f1
|
|
bond-xmit-hash-policy layer3+4
|
|
|
|
auto br-mgmt
|
|
iface br-mgmt inet static
|
|
bridge_stp off
|
|
bridge_waitport 0
|
|
bridge_fd 0
|
|
bridge_ports bond0 veth-int-mgmt
|
|
address 192.169.91.98
|
|
netmask 255.255.255.240
|
|
gateway 192.169.91.97
|
|
dns-nameserver 64.31.5.1
|
|
dns-nameserver 64.31.5.2
|
|
|
|
auto veth-int-mgmt
|
|
iface veth-int-mgmt inet manual
|
|
pre-up ip link add dev veth-int-mgmt type veth peer name veth-int-flat
|
|
|
|
auto br-flat
|
|
iface br-flat inet manual
|
|
bridge_stp off
|
|
bridge_waitport 0
|
|
bridge_fd 0
|
|
bridge_ports veth-int-flat
|
|
|
|
source /etc/network/interfaces.d/*.cfg
|