Add example interfaces file
This commit is contained in:
parent
f87ef6599c
commit
3f357f3eca
|
@ -0,0 +1,58 @@
|
|||
# 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 macvlan0
|
||||
iface macvlan0 inet manual
|
||||
pre-up ip link add macvlan0 link bond0 type macvlan mode passthru
|
||||
|
||||
auto macvlan1
|
||||
iface macvlan1 inet manual
|
||||
pre-up ip link add macvlan1 link bond0 type macvlan mode passthru
|
||||
|
||||
auto macvlan2
|
||||
iface macvlan2 inet manual
|
||||
pre-up ip link add macvlan2 link bond0 type macvlan mode passthru
|
||||
|
||||
auto br-mgmt
|
||||
iface br-mgmt inet static
|
||||
bridge_stp off
|
||||
bridge_waitport 0
|
||||
bridge_fd 0
|
||||
bridge_ports macvlan0
|
||||
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 br-flat
|
||||
iface br-flat inet manual
|
||||
bridge_stp off
|
||||
bridge_waitport 0
|
||||
bridge_fd 0
|
||||
bridge_ports macvlan1
|
||||
|
||||
source /etc/network/interfaces.d/*.cfg
|
Loading…
Reference in New Issue