diff --git a/meta-sysmocom-bsp/recipes-bsp/netbase/netbase/sysmocom-idu/interfaces b/meta-sysmocom-bsp/recipes-bsp/netbase/netbase/sysmocom-idu/interfaces new file mode 100644 index 0000000000..800d2b2714 --- /dev/null +++ b/meta-sysmocom-bsp/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 diff --git a/meta-sysmocom-bsp/recipes-extra/bridge-utils/bridge-utils.inc b/meta-sysmocom-bsp/recipes-extra/bridge-utils/bridge-utils.inc index f17e0349a6..3d25a63f27 100644 --- a/meta-sysmocom-bsp/recipes-extra/bridge-utils/bridge-utils.inc +++ b/meta-sysmocom-bsp/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"