# 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 # LAN connection # Bonded 10G auto p2p2 inet manual iface p2p2 inet manual bond-master bond-lan bond-mode 802.3ad bond-miimon 100 bond-lacp-rate 1 bond-xmit_hash_policy layer2+3 auto enp130s0f1 iface enp130s0f1 inet manual bond-master bond-lan bond-mode 802.3ad bond-miimon 100 bond-lacp-rate 1 bond-xmit_hash_policy layer2+3 auto bond-lan iface bond-lan inet static address 192.168.4.2/24 bond-mode 802.3ad bond-miimon 100 bond-lacp-rate 1 bond-xmit_hash_policy layer2+3 bond-slaves p2p2 enp130s0f1 up sysctl -w net.ipv4.conf.bond-lan.arp_filter=1 dns-nameservers 8.8.8.8 # Matching VRRP LAN interface #auto vrrp-lan iface vrrp-lan inet manual pre-up ip link add link bond-lan vrrp-lan type macvlan pre-up ifconfig vrrp-lan hw ether 00:00:5e:00:01:04 up sysctl -w net.ipv4.conf.vrrp-lan.arp_filter=0 up sysctl -w net.ipv4.conf.vrrp-lan.accept_local=1 up sysctl -w net.ipv4.conf.vrrp-lan.rp_filter=0 post-down ip link del vrrp-lan # The outbound Internet interface auto em1 iface em1 inet manual bond-master bond-net bond-mode active-backup bond-miimon 100 auto p3p4 iface p3p4 inet manual bond-master bond-net bond-mode active-backup bond-miimon 100 auto bond-net iface bond-net inet static address 169.255.147.130/29 bond-mode active-backup bond-miimon 100 bond-slaves p3p4 em1 bond-primary em1 dns-nameservers 8.8.8.8 up sysctl -w net.ipv4.conf.bond-net.arp_filter=1 up sh /etc/network/isp.sh up sh /etc/network/firewall.sh seriously # Matching VRRP NET interface #auto vrrp-net iface vrrp-net inet manual pre-up ip link add link bond-net vrrp-net type macvlan pre-up ifconfig vrrp-net hw ether 00:00:5e:00:01:65 up sysctl -w net.ipv4.conf.vrrp-net.arp_filter=0 up sysctl -w net.ipv4.conf.vrrp-net.accept_local=1 up sysctl -w net.ipv4.conf.vrrp-net.rp_filter=0 post-down ip link del vrrp-net # Link to 33 Protea Way # Bonded 10G fibres auto p2p1 iface p2p1 inet manual bond-master bond-protea bond-mode balance-rr bond-miimon 100 auto p5p1 inet manual iface p5p1 inet manual bond-master bond-protea bond-mode balance-rr bond-miimon 100 auto bond-protea iface bond-protea inet static address 192.168.254.9/30 bond-mode balance-rr bond-miimon 100 bond-slaves p5p1 p2p1 dns-nameservers 8.8.8.8 # Link to 12 Plein St # Bonded 10G fibres auto enp130s0f0 iface enp130s0f0 inet manual bond-master bond-plein bond-mode balance-rr bond-miimon 100 auto p5p2 inet manual iface p5p2 inet manual bond-master bond-plein bond-mode balance-rr bond-miimon 100 auto bond-plein iface bond-plein inet static address 192.168.254.1/30 bond-mode balance-rr bond-miimon 100 bond-slaves enp130s0f0 p5p2 dns-nameservers 8.8.8.8