-
-
Save v1k0d3n/26436fc9755fdc01598b20370c8145b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@galvatron:~# cat /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 | |
# Default Networking: | |
auto em1 | |
iface em1 inet static | |
address 192.168.70.20 | |
netmask 255.255.255.0 | |
network 192.168.70.0 | |
broadcast 192.168.70.255 | |
gateway 192.168.70.1 | |
dns-nameservers 192.168.1.70 | |
dns-search jinkit.com | |
# | |
#auto em2 | |
#iface em2 inet manual | |
# up ifconfig em2 up | |
# When you want to flip internal/external networking: | |
#auto em1 | |
#iface em1 inet manual | |
# up ifconfig em1 up | |
# | |
#auto em2 | |
#iface em2 inet static | |
# address 192.168.4.20 | |
# netmask 255.255.252.0 | |
# network 192.168.4.0 | |
# broadcast 192.168.7.255 | |
# gateway 192.168.4.1 | |
# dns-nameservers 192.168.1.70 | |
# dns-search jinkit.com | |
# Bridge for vlan network | |
# ----------------------- | |
# Used by all compute and network nodes | |
# The IP address on this device is optional | |
auto br-kolla | |
iface br-kolla inet static | |
pre-up ip link add br-kolla-veth type veth peer name eth12 || true # Create veth pair | |
pre-up ip link set br-kolla-veth up # Set the veth UP | |
pre-up ip link set eth12 up # Set the veth UP | |
post-down ip link del br-kolla-veth || true # Delete veth pair on DOWN | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports em2 br-kolla-veth # Notice this bridge port is an Untagged host interface | |
offload-sg off | |
address 192.168.4.20 | |
netmask 255.255.252.0 | |
gateway 192.168.4.1 | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
# Tagged vlan network interfaces | |
# ------------------------------ | |
# Used in various bridges | |
auto br-kolla.101 | |
iface br-kolla.101 inet manual | |
vlan-raw-device br-kolla | |
vlan_id 101 | |
auto br-kolla.102 | |
iface br-kolla.102 inet manual | |
vlan-raw-device br-kolla | |
vlan_id 102 | |
auto br-kolla.103 | |
iface br-kolla.103 inet manual | |
vlan-raw-device br-kolla | |
vlan_id 103 | |
# Bridge for vxlan network | |
# ------------------------ | |
# Used by all compute and network nodes | |
auto br-vxlan | |
iface br-vxlan inet manual | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports br-kolla.101 # Notice the bridge port is the vlan tagged interface | |
offload-sg off | |
address 172.29.240.20 | |
netmask 255.255.252.0 | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
# Bridge for management network | |
# ----------------------------- | |
# Used by all nodes | |
auto br-mgmt | |
iface br-mgmt inet static | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports br-kolla.102 # Notice the bridge port is the vlan tagged interface | |
offload-sg off | |
address 172.29.236.20 | |
netmask 255.255.252.0 | |
gateway 172.29.236.1 | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
# Bridge for storage network | |
# -------------------------- | |
# Used by all compute and storage nodes | |
auto br-storage | |
iface br-storage inet static | |
bridge_stp off | |
bridge_waitport 0 | |
bridge_fd 0 | |
bridge_ports br-kolla.103 # Notice the bridge port is the vlan tagged interface | |
offload-sg off | |
address 172.29.244.20 | |
netmask 255.255.252.0 | |
gateway 172.29.244.1 | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
# Source other interface files that may be found | |
# ---------------------------------------------- | |
source /etc/network/interfaces.d/*.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment