User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
maas [2016/12/15 12:06]
maas [2016/12/16 12:11] (current)
Line 44: Line 44:
 *Example interface configuration:​* *Example interface configuration:​*
 ```bash ```bash
-# The primary network interface ​(external)+# This file describes the network interfaces available on your system 
 +# and how to activate them. For more information,​ see interfaces(5). 
 +source /​etc/​network/​interfaces.d/​* 
 +# The loopback network interface 
 +auto lo 
 +iface lo inet loopback 
 +# The primary network interface
 auto ens3 auto ens3
 iface ens3 inet static iface ens3 inet static
-     address + address 
-     ​netmask + netmask 
-     # usually this is virb0 address created by the virtual + gateway 
-     # system that you are using mine is  + dns-nameservers ​
-     gateway +
-     ​dns-nameservers
-# The secondary ​NIC (used internal ​for MAAS)+# The secondary ​network interface 
 +# This is used for internal maas only
 auto ens9 auto ens9
 iface ens9 inet static iface ens9 inet static
-     address + address 
-     ​netmask + netmask 
-     dns-nameservers +
-     ​dns-search maas +
-     ​post-up iptables -t nat -A POSTROUTING -o ens3 -j SNAT --to-source +
-     ​post-down iptables -t nat -D POSTROUTING -o ens3 -j SNAT --to-source
 ``` ```
maas.txt · Last modified: 2016/12/16 12:11 by sgiulitti