tianwei

compute node network configuration

Nov 30th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. # Physical interface
  2. auto eth0
  3. iface eth0 inet manual
  4.  
  5. # Container/Host management VLAN interface
  6. auto eth0.10
  7. iface eth0.10 inet manual
  8. vlan-raw-device eth0
  9.  
  10. # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
  11. auto eth0.30
  12. iface eth0.30 inet manual
  13. vlan-raw-device eth0
  14.  
  15. # Storage network VLAN interface (optional)
  16. auto eth0.20
  17. iface eth0.20 inet manual
  18. vlan-raw-device eth0
  19.  
  20. # Container/Host management bridge
  21. auto br-mgmt
  22. iface br-mgmt inet static
  23. bridge_stp off
  24. bridge_waitport 0
  25. bridge_fd 0
  26. bridge_ports eth0.10
  27. address 172.29.236.12
  28. netmask 255.255.252.0
  29.  
  30. # OpenStack Networking VXLAN (tunnel/overlay) bridge
  31. #
  32. # Only the COMPUTE and NETWORK nodes must have an IP address
  33. # on this bridge. When used by infrastructure nodes, the
  34. # IP addresses are assigned to containers which use this
  35. # bridge.
  36. #
  37. #auto br-vxlan
  38. #iface br-vxlan inet manual
  39. # bridge_stp off
  40. # bridge_waitport 0
  41. # bridge_fd 0
  42. # bridge_ports eth0.30
  43.  
  44. # compute1 VXLAN (tunnel/overlay) bridge config
  45. auto br-vxlan
  46. iface br-vxlan inet static
  47. bridge_stp off
  48. bridge_waitport 0
  49. bridge_fd 0
  50. bridge_ports eth0.30
  51. address 172.29.240.12
  52. netmask 255.255.252.0
  53.  
  54. # OpenStack Networking VLAN bridge
  55. auto br-vlan
  56. iface br-vlan inet static
  57. bridge_stp off
  58. bridge_waitport 0
  59. bridge_fd 0
  60. bridge_ports eth0
  61. address 192.168.66.12
  62. netmask 255.255.255.0
  63. gateway 192.168.66.1
  64. dns-nameservers 8.8.8.8 8.8.4.4
  65. offload-sg off
  66. # Create veth pair, don't bomb if already exists
  67. pre-up ip link add br-vlan-veth type veth peer name eth12 || true
  68. # Set both ends UP
  69. pre-up ip link set br-vlan-veth up
  70. pre-up ip link set eth12 up
  71. # Delete veth pair on DOWN
  72. post-down ip link del br-vlan-veth || true
  73. bridge_ports br-vlan-veth
  74.  
  75. # Add an additional address to br-vlan
  76. iface br-vlan inet static
  77. # Flat network default gateway
  78. # -- This needs to exist somewhere for network reachability
  79. # -- from the router namespace for floating IP paths.
  80. # -- Putting this here is primarily for tempest to work.
  81. address 172.29.240.1
  82. netmask 255.255.252.0
  83.  
  84.  
  85. # Storage bridge (optional)
  86. #
  87. # Only the COMPUTE and STORAGE nodes must have an IP address
  88. # on this bridge. When used by infrastructure nodes, the
  89. # IP addresses are assigned to containers which use this
  90. # bridge.
  91. #
  92. #auto br-storage
  93. #iface br-storage inet manual
  94. # bridge_stp off
  95. # bridge_waitport 0
  96. # bridge_fd 0
  97. # bridge_ports eth0.20
  98.  
  99. # compute1 Storage bridge
  100. auto br-storage
  101. iface br-storage inet static
  102. bridge_stp off
  103. bridge_waitport 0
  104. bridge_fd 0
  105. bridge_ports eth0.20
  106. address 172.29.244.12
  107. netmask 255.255.252.0
Advertisement
Add Comment
Please, Sign In to add comment