# 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 ## - Uplink static line to Altenschlirf (Router) ## - auto eth3 iface eth3 inet static address 172.16.0.2 network 172.16.0.0 netmask 255.255.255.0 broadcast 172.16.0.255 ## - Static routes to Altenschlirf ## - post-up /sbin/route add -net 10.10.10.0 netmask 255.255.255.0 gw 172.16.0.1 post-up /sbin/route add -net 192.168.10.0 netmask 255.255.255.0 gw 172.16.0.1 post-up /sbin/route add -net 10.122.1.0 netmask 255.255.255.0 gw 172.16.0.1 post-up /sbin/route add -net 10.123.0.0 netmask 255.255.0.0 gw 172.16.0.1 # - Telefon neu post-up /sbin/route add -net 172.16.210.0 netmask 255.255.255.0 gw 172.16.0.1 ## - Uplink static line to Altenschlirf (Router IPMI) ## - auto eth7 iface eth7 inet static address 172.17.0.2 network 172.17.0.0 netmask 255.255.255.0 broadcast 172.17.0.255 # --- # - eth8 UPLINK DSL Telefon (FritBox) # ---- auto eth8 iface eth8 inet static address 172.16.211.1 network 172.16.211.0 netmask 255.255.255.0 gateway 172.16.211.254 broadcast 172.16.211.255 #iface eth8 inet manual # up vconfig add eth8 211 # #auto eth8.211 #iface eth8.211 inet static # address 172.16.211.254 # network 172.16.211.0 # netmask 255.255.255.0 # gateway 172.16.211.254 # broadcast 172.16.211.255 # pre-up /sbin/ifconfig eth8 up ## - Uplink DSL surf2 via (static) line to Zyxel 6501 ## - auto eth9 iface eth9 inet static address 172.16.11.1 network 172.16.11.0 netmask 255.255.255.0 gateway 172.16.11.254 broadcast 172.16.11.255 ## - Uplink DSL surf1 via (static) line to Fritz!Box ## - auto eth10 iface eth10 inet static address 172.16.13.1 network 172.16.13.0 netmask 255.255.255.0 gateway 172.16.13.254 broadcast 172.16.13.255 ## - Uplink DSL surf1 via (static) line to Fritz!Box ## - auto eth11 iface eth11 inet static address 172.16.12.1 network 172.16.12.0 netmask 255.255.255.0 gateway 172.16.12.254 broadcast 172.16.12.255 ## - LAG bond0 on interfaces eth0 and eth4 ## - auto bond0 iface bond0 inet static address 10.1.9.254 network 10.1.16.0 netmask 255.255.255.0 slaves eth0 eth4 # Mode: active-backup (mode 4) # also possible: "802.3ad" bond_mode 4 bond_miimon 100 bond_lacp_rate 1 bond_ad_select count bond_downdelay 200 bond_updelay 200 # Mode: active-backup (mode 5) # also possible: "balance-tlb" #bond_mode 6 #bond_miimon 100 #bond_downdelay 200 #bond_updelay 200 # Mode: active-backup (mode 6) # also possible: "balance-alb" #bond_mode 6 #bond_miimon 100 #bond_downdelay 200 #bond_updelay 200 post-up vconfig add bond0 11 post-up vconfig add bond0 77 post-up vconfig add bond0 78 ## - VLAN 11 on interface bond0 ## - network: 10.10.11.0 ## - VLAN 77 on interface bond0 ## - network: 192.168.77.0 ## - VLAN 78 on interface bond0 ## - network: 192.168.78.0 ## - auto bond0.11 bond0.77 bond0.78 iface bond0.11 inet static address 10.10.11.254 network 10.10.11.0 netmask 255.255.255.0 iface bond0.77 inet static address 192.168.77.254 network 192.168.77.0 netmask 255.255.255.0 iface bond0.78 inet static address 192.168.78.254 network 192.168.78.0 netmask 255.255.255.0 ## - LAG bond1 on interfaces eth1 and eth5 ## - network: 192.168.11.0 ## - auto bond1 iface bond1 inet static address 192.168.11.254 network 192.168.11.0 netmask 255.255.255.0 slaves eth1 eth5 # Mode: active-backup (mode 4) # also possible: "802.3ad" bond_mode 4 bond_miimon 100 bond_downdelay 200 bond_updelay 200 bond_lacp_rate 1 bond_ad_select count # Mode: active-backup (mode 5) # also possible: "balance-tlb" #bond_mode 6 #bond_miimon 100 #bond_downdelay 200 #bond_updelay 200 # Mode: active-backup (mode 6) # also possible: "balance-alb" #bond_mode 6 #bond_miimon 100 #bond_downdelay 200 #bond_updelay 200 post-up vconfig add bond1 121 post-up /sbin/route add -net 10.11.16.0 netmask 255.255.255.0 gw 192.168.11.6 auto bond1:0 iface bond1:0 inet static address 192.168.11.1 netmask 255.255.255.255 auto bond1:1 iface bond1:1 inet static address 10.10.9.254 network 10.10.9.0 netmask 255.255.255.0 broadcast 10.10.9.255 auto bond1:ap iface bond1:ap inet static address 10.112.1.254 network 10.112.1.0 netmask 255.255.255.0 broadcast 10.112.1.255 ## -Network Accesspoints ## - post-up /sbin/route add -net 10.113.1.0/24 gw 10.112.1.1 post-up /sbin/route add -net 10.113.2.0/24 gw 10.112.1.2 post-up /sbin/route add -net 10.113.3.0/24 gw 10.112.1.3 post-up /sbin/route add -net 10.113.4.0/24 gw 10.112.1.4 post-up /sbin/route add -net 10.113.5.0/24 gw 10.112.1.5 post-up /sbin/route add -net 10.113.6.0/24 gw 10.112.1.6 post-up /sbin/route add -net 10.113.7.0/24 gw 10.112.1.7 post-up /sbin/route add -net 10.113.8.0/24 gw 10.112.1.8 post-up /sbin/route add -net 10.113.9.0/24 gw 10.112.1.9 post-up /sbin/route add -net 10.113.10.0/24 gw 10.112.1.10 post-up /sbin/route add -net 10.113.11.0/24 gw 10.112.1.11 post-up /sbin/route add -net 10.113.12.0/24 gw 10.112.1.12 post-up /sbin/route add -net 10.113.13.0/24 gw 10.112.1.13 post-up /sbin/route add -net 10.113.14.0/24 gw 10.112.1.14 auto bond1:ipmi iface bond1:ipmi inet static address 10.11.11.254 network 10.11.11.0 netmask 255.255.255.0 broadcast 10.11.11.255 auto bond1.121 iface bond1.121 inet static address 10.121.15.254 network 10.121.0.0 netmask 255.255.240.0 broadcast 10.121.15.255 ### - DSL st ### - #auto dsl-st #iface dsl-st inet ppp # pre-up /sbin/ifconfig eth10 up # #pre-up vconfig add eth10 7 # #pre-up /sbin/ifconfig eth10.7 up # provider dsl-st # #post-down /sbin/ifconfig eth10.7 down # #post-down vconfig rem eth10.7 # post-down /sbin/ifconfig eth10 down ## - DSL surf1 ## - #auto dsl-surf1 #iface dsl-surf1 inet ppp # pre-up /sbin/ifconfig eth11 up # #pre-up vconfig add eth11 7 # #pre-up /sbin/ifconfig eth11.7 up # provider dsl-surf1 # #post-down /sbin/ifconfig eth11.7 down # #post-down vconfig rem eth11.7 ## post-down /sbin/ifconfig eth11 down