87 lines
2.4 KiB
Plaintext
87 lines
2.4 KiB
Plaintext
### Write /etc/network/interfaces
|
|
auto lo
|
|
iface lo inet loopback
|
|
source /etc/network/interfaces.d/*.cfg
|
|
### Write /etc/network/interfaces.d/eth0.cfg
|
|
auto eth0
|
|
iface eth0 inet static
|
|
address 23.253.229.154
|
|
netmask 255.255.255.0
|
|
gateway 23.253.229.1
|
|
### Write /etc/network/interfaces.d/eth1.cfg
|
|
auto eth1
|
|
iface eth1 inet static
|
|
address 10.208.169.118
|
|
netmask 255.255.224.0
|
|
post-up route add -net 10.176.0.0 netmask 255.240.0.0 gw 10.208.160.1 || true
|
|
pre-down route del -net 10.176.0.0 netmask 255.240.0.0 gw 10.208.160.1 || true
|
|
post-up route add -net 10.208.0.0 netmask 255.240.0.0 gw 10.208.160.1 || true
|
|
pre-down route del -net 10.208.0.0 netmask 255.240.0.0 gw 10.208.160.1 || true
|
|
### Write /etc/network/interfaces.d/eth3.cfg
|
|
auto eth3
|
|
iface eth3 inet dhcp
|
|
### Write /etc/network/interfaces.d/eth4.25.cfg
|
|
auto eth4.25
|
|
iface eth4.25 inet dhcp
|
|
vlan-raw-device eth4
|
|
hw-mac-address bc:76:4e:12:a4:bc
|
|
### Write /etc/network/interfaces.d/eth4.26.cfg
|
|
auto eth4.26
|
|
iface eth4.26 inet dhcp
|
|
vlan-raw-device eth4
|
|
hw-mac-address bc:76:4e:12:a4:bd
|
|
### Write /etc/network/interfaces.d/eth5.cfg
|
|
auto eth5
|
|
iface eth5 inet manual
|
|
bond-master bond0
|
|
### Write /etc/network/interfaces.d/eth6.cfg
|
|
auto eth6
|
|
iface eth6 inet manual
|
|
bond-master bond0
|
|
### Write /etc/network/interfaces.d/bond0.cfg
|
|
auto bond0
|
|
iface bond0 inet dhcp
|
|
hwaddress bc:76:4e:05:7b:13
|
|
bond-mode 802.3ad
|
|
bond-miimon 100
|
|
bond-lacp-rate slow
|
|
bond-xmit_hash_policy layer3+4
|
|
bond-slaves eth5 eth6
|
|
### Write /etc/network/interfaces.d/eth7.cfg
|
|
auto eth7
|
|
iface eth7 inet manual
|
|
bond-master bond1
|
|
### Write /etc/network/interfaces.d/eth8.cfg
|
|
auto eth8
|
|
iface eth8 inet manual
|
|
bond-master bond1
|
|
### Write /etc/network/interfaces.d/bond1.cfg
|
|
auto bond1
|
|
iface bond1 inet manual
|
|
hwaddress bc:76:4e:05:7b:15
|
|
bond-mode 802.3ad
|
|
bond-miimon 100
|
|
bond-lacp-rate slow
|
|
bond-xmit_hash_policy layer3+4
|
|
bond-slaves eth7 eth8
|
|
### Write /etc/network/interfaces.d/bond1.27.cfg
|
|
auto bond1.27
|
|
iface bond1.27 inet dhcp
|
|
vlan-raw-device bond1
|
|
hw-mac-address bc:76:4e:12:a4:be
|
|
### Write /etc/network/interfaces.d/bond2.cfg
|
|
auto bond2
|
|
iface bond2 inet static
|
|
hwaddress bc:76:4e:05:7b:17
|
|
bond-mode 802.3ad
|
|
bond-miimon 100
|
|
bond-lacp-rate slow
|
|
bond-xmit_hash_policy layer3+4
|
|
bond-slaves eth9 eth10
|
|
address 192.0.2.2
|
|
netmask 255.255.255.0
|
|
gateway 192.0.2.1
|
|
### Write /etc/resolv.conf
|
|
nameserver 72.3.128.241
|
|
nameserver 72.3.128.240
|