[idu] Add /etc/network/interfaces specifid to the IDU

This commit is contained in:
Harald Welte 2015-02-13 15:15:24 +01:00
parent 61c2d2b6d3
commit c68f6ef085
1 changed files with 44 additions and 0 deletions

View File

@ -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