Skip to content

Instantly share code, notes, and snippets.

@winggundamth
Created August 18, 2016 06:13
Show Gist options
  • Save winggundamth/abc483a5c14e18bed74bd1f429d81735 to your computer and use it in GitHub Desktop.
Save winggundamth/abc483a5c14e18bed74bd1f429d81735 to your computer and use it in GitHub Desktop.
# Configure via SSH
sudo vi /etc/network/interfaces
################################################################################
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto eth2
iface eth2 inet manual
bond-master bond1
auto eth3
iface eth3 inet manual
bond-master bond1
auto bond0
iface bond0 inet manual
bond-mode 802.3ad
bond-milmon 100
bond-slaves eth0 eth1
auto bond1
iface bond1 inet manual
bond-mode 802.3ad
bond-milmon 100
bond-slaves eth2 eth3
# SSH
auto bond0.821
iface bond0.821 inet static
address 192.168.21.
netmask 255.255.255.0
gateway 192.168.21.254
dns-nameservers 119.59.96.133
source /etc/network/interfaces.d/*.cfg
################################################################################
sudo vi /etc/network/interfaces.d/osa_interfaces.cfg
################################################################################
# Management
auto bond0.822
iface bond0.822 inet manual
# Storage
auto bond1.823
iface bond1.823 inet manual
# VXLAN
auto bond1.824
iface bond1.824 inet manual
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond0.822
address 192.168.22.
netmask 255.255.255.0
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond1.823
address 192.168.23.
netmask 255.255.255.0
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond1.824
address 192.168.24.
netmask 255.255.255.0
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond1
# For Ceph Replication Only
auto bond1.825
iface bond1.825 inet manual
auto br-ceph-repl
iface br-ceph-repl inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond1.825
address 192.168.25.
netmask 255.255.255.0
################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment