From c68f6ef08530e92180fc94e1c40b6839979dcc9c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 13 Feb 2015 15:15:24 +0100 Subject: [PATCH 1/2] [idu] Add /etc/network/interfaces specifid to the IDU --- .../netbase/netbase/sysmocom-idu/interfaces | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 recipes-bsp/netbase/netbase/sysmocom-idu/interfaces diff --git a/recipes-bsp/netbase/netbase/sysmocom-idu/interfaces b/recipes-bsp/netbase/netbase/sysmocom-idu/interfaces new file mode 100644 index 0000000000..800d2b2714 --- /dev/null +++ b/recipes-bsp/netbase/netbase/sysmocom-idu/interfaces @@ -0,0 +1,44 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# eth0 is attached to the IDU-internal managed switch +# in the future we will use VLANs to use individual switch ports as +# break-out interfaces. For now we simply do DHCP. +iface eth0 inet dhcp + +#eth1 is our admin interface and will provide dhcp to clients +auto eth1 +iface eth1 inet static + address 10.23.24.1 + netmask 255.255.255.0 + network 10.23.24.0 + +# eth2 is attached to the IDU-internal SOB-JB02-SW +auto eth2 +iface eth2 inet manual + pre-up ifconfig $IFACE up + pre-down ifconfig $IFACE down + +# * br0 is a bridge interface on top of eth2 +# * we use the bridging code so we can run mstpd and become the root bridge + +auto br0 +iface br0 inet manual + bridge_ports eth2 + bridge_maxwait 0 + +# VLAN 6: management VLAN +auto br0.6 +iface br0.6 inet static + address 172.16.2.1 + netmask 255.255.254.0 + network 172.16.2.0 + +# 172.16.1.1 is the service IP address for SOBMGMT +auto br0.6:0 +iface br0.6:0 inet manual + address 172.16.1.1 + netmask 255.255.255.255 From 7d5329ed5713077c7a7c8cc0fefd099e553b00a0 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 13 Feb 2015 15:16:41 +0100 Subject: [PATCH 2/2] bridge-utils: Add missing FILES_${PN} for ifupdown integration --- recipes-extra/bridge-utils/bridge-utils.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-extra/bridge-utils/bridge-utils.inc b/recipes-extra/bridge-utils/bridge-utils.inc index f17e0349a6..3d25a63f27 100644 --- a/recipes-extra/bridge-utils/bridge-utils.inc +++ b/recipes-extra/bridge-utils/bridge-utils.inc @@ -38,4 +38,6 @@ do_install_append () { ln -s /lib/bridge-utils/ifupdown.sh bridge } +FILES_${PN} += "/lib/bridge-utils/*.sh" + RRECOMMENDS_${PN} = "kernel-module-bridge"