From 360d36738169068e5c132adf67df5e14c18e5f85 Mon Sep 17 00:00:00 2001 From: patrick nsukami Date: Thu, 17 Sep 2015 06:02:15 +0000 Subject: [PATCH] Basic interfaces configuration. --- interfaces | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 interfaces diff --git a/interfaces b/interfaces new file mode 100644 index 0000000..b7758fa --- /dev/null +++ b/interfaces @@ -0,0 +1,53 @@ +# /etc/network/interfaces + +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# Lines beginning with the word "auto" are used to identify the physical interfaces to be brought up +# when ifup is run with the -a option. (This option is used by the system boot scripts.) Physical +# interface names should follow the word "auto" on the same line + +# Lines beginning with the word "allow-hotplug" have same effects as lines beginning with "auto". +# But the interface will be brought up only if connected to the network. + +source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback + +# iface wlan0 inet dhcp +# pre-up ifdown br1 +# post-down ifup br1 + +# auto eth0:1 +iface eth0:1 inet dhcp + +# auto eth0:0 +iface eth0:0 inet static + address 10.4.5.94 + netmask 255.255.255.0 + gateway 10.4.5.254 + dns-nameservers 80.67.169.12 + +# auto br0 +# allow-hotplug br0 +iface br0 inet dhcp + bridge_ports eth0 + bridge_stp off + bridge_maxwait 0 + bridge_fd 0 + +# NOTE: +# an interface can't be part of 2 bridges in the mean time + +# auto br1 +iface br1 inet static + address 10.4.5.94 + netmask 255.255.255.0 + gateway 10.4.5.254 + bridge_ports eth0 + bridge_stp off + bridge_maxwait 0 + bridge_fd 0 + dns-nameservers 80.67.169.12 -- 2.17.1