Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. /etc/network/interfaces.d/osa_interfaces.cfg
  2. ## The default networking requires several bridges. These bridges were named to be informative
  3. ## however they can be named what ever you like and is adaptable to any network infrastructure
  4. ## environment. This file serves as an example of how to setup basic networking and was ONLY
  5. ## built for the purpose of being an example and used expressly in the building of an ALL IN
  6. ## ONE development environment.
  7.  
  8. auto br-mgmt
  9. iface br-mgmt inet static
  10. bridge_stp off
  11. bridge_waitport 0
  12. bridge_fd 0
  13. # Notice the bridge port is the vlan tagged interface
  14. bridge_ports none
  15. address 172.29.236.100
  16. netmask 255.255.252.0
  17. offload-sg off
  18.  
  19. auto br-vxlan
  20. iface br-vxlan inet static
  21. bridge_stp off
  22. bridge_waitport 0
  23. bridge_fd 0
  24. bridge_ports none
  25. address 172.29.240.100
  26. netmask 255.255.252.0
  27. offload-sg off
  28. # To ensure ssh checksum is correct
  29. up /sbin/iptables -A POSTROUTING -t mangle -p tcp --dport 22 -j CHECKSUM --checksum-fill
  30. down /sbin/iptables -D POSTROUTING -t mangle -p tcp --dport 22 -j CHECKSUM --checksum-fill
  31. # To provide internet connectivity to instances
  32. up /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  33. down /sbin/iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
  34.  
  35. auto br-storage
  36. iface br-storage inet static
  37. bridge_stp off
  38. bridge_waitport 0
  39. bridge_fd 0
  40. bridge_ports none
  41. address 172.29.244.100
  42. netmask 255.255.252.0
  43. offload-sg off
  44.  
  45. auto br-vlan
  46. iface br-vlan inet static
  47. bridge_stp off
  48. bridge_waitport 0
  49. bridge_fd 0
  50. address 172.29.248.100
  51. netmask 255.255.252.0
  52. offload-sg off
  53. # Create veth pair, don't bomb if already exists
  54. pre-up ip link add br-vlan-veth type veth peer name eth12 || true
  55. # Set both ends UP
  56. pre-up ip link set br-vlan-veth up
  57. pre-up ip link set eth12 up
  58. # Delete veth pair on DOWN
  59. post-down ip link del br-vlan-veth || true
  60. bridge_ports br-vlan-veth
  61.  
  62. # Add an additional address to br-vlan
  63. iface br-vlan inet static
  64. # Flat network default gateway
  65. # -- This needs to exist somewhere for network reachability
  66. # -- from the router namespace for floating IP paths.
  67. # -- Putting this here is primarily for tempest to work.
  68. address 172.29.248.1
  69. netmask 255.255.252.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement