Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. # The loopback network interface
  2. auto lo
  3. iface lo inet loopback
  4.  
  5. # ------- PHYSICAL INTERFACES -------
  6. # eth6 is a slave to bond1
  7. auto eth6
  8. iface eth6 inet manual
  9. bond-master bond1
  10. up ethtool -K eth6 lro off
  11.  
  12. # eth7 is a slave to bond0
  13. auto eth7
  14. iface eth7 inet manual
  15. bond-master bond0
  16. #up ethtool -K eth7 lro off
  17.  
  18. # eth8 is slave to bond0
  19. auto eth8
  20. iface eth8 inet manual
  21. bond-master bond0
  22. #up ethtool -K eth8 lro off
  23.  
  24. # eth9 is slave to bond1
  25. auto eth9
  26. iface eth9 inet manual
  27. bond-master bond1
  28. up ethtool -K eth9 lro off
  29.  
  30. # ------- BONDED INTERFACES -------
  31.  
  32. #bond0 is the DRBD replication link
  33. auto bond0
  34. iface bond0 inet static
  35. address 10.0.0.1
  36. netmask 255.255.255.252
  37. bond-mode balance-rr
  38. bond-miimon 100
  39. bond-slaves none
  40. #up ethtool -K bond0 lro off
  41.  
  42. #bond1 is bridged to br0
  43. auto bond1
  44. iface bond1 inet manual
  45. bond-mode active-backup
  46. bond-miimon 100
  47. bond-slaves none
  48. up ethtool -K bond1 lro off
  49.  
  50. #VLAN: office_vlan ID: 20
  51. auto bond1.20
  52. iface bond1.20 inet manual
  53. vlan-raw-device bond1
  54.  
  55. #VLAN: security_vlan ID: 30
  56. auto bond1.30
  57. iface bond1.30 inet manual
  58. vlan-raw-device bond1
  59.  
  60. #VLAN: voice_vlan ID: 40
  61. auto bond1.40
  62. iface bond1.40 inet manual
  63. vlan-raw-device bond1
  64.  
  65. #VLAN: production_vlan ID: 50
  66. auto bond1.50
  67. iface bond1.50 inet manual
  68. vlan-raw-device bond1
  69.  
  70. #VLAN: management_vlan ID: 100
  71. auto bond1.100
  72. iface bond1.100 inet manual
  73. vlan-raw-device bond1
  74.  
  75. # ------- BRIDGED INTERFACES -------
  76.  
  77. #br0 is the primary interface; we use a bridged interface to allow the VMs to access the network
  78. auto br0
  79. iface br0 inet static
  80. address 192.168.72.36
  81. netmask 255.255.255.0
  82. gateway 192.168.72.1
  83. dns-nameservers 192.168.72.40 192.168.72.42
  84. dns-search adamsonsystems.ca
  85. bridge_ports bond1
  86.  
  87. #br20 - office bridged vlan interface
  88. auto br20
  89. iface br20 inet static
  90. address 10.1.20.5
  91. netmask 255.255.255.0
  92. gateway 10.1.20.1
  93. dns-nameservers 192.168.72.40 192.168.72.42
  94. bridge_ports bond1.20
  95.  
  96. #br30 - security vlan bridged interface
  97. auto br30
  98. iface br30 inet static
  99. address 10.1.30.5
  100. netmask 255.255.255.0
  101. gateway 10.1.30.1
  102. dns-nameservers 192.168.72.40 192.168.72.42
  103. bridge_ports bond1.30
  104.  
  105. #br40 - voice vlan bridged interface
  106. auto br40
  107. iface br40 inet static
  108. address 10.1.40.5
  109. netmask 255.255.255.0
  110. gateway 10.1.40.1
  111. dns-nameservers 192.168.72.40 192.168.72.42
  112. bridge_ports bond1.40
  113.  
  114. #br50 - production vlan bridged interface
  115. auto br50
  116. iface br50 inet static
  117. address 10.1.50.5
  118. netmask 255.255.255.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement