Wunsch: BATMAN und VLAN konfigurierbar

Peter Muehlenbrock peter.muehlenbrock at nefkom.info
Di Feb 16 17:32:33 CET 2016


Hi Ihr,
könnte man in die WEB UI eine Möglichkeit einbauen, dass man die
Ethernet Ports tagged/untagged configurieren kann ?
Dazu wäre es noch schon, wenn man weitere BATMAN Interfaces mit
verschiedener VLAN ID (und MAC) anlegen könnte.
Ich brauche sowas öfter für die Richtfunkstrecken, wo ich BATMAN als
VLAN über Bridges schicke.

Ich habe mal eine Beispiels /etc/config/network  angehängt,
wie das Endergebnis als config Datei aussähe. Die MAC für die weiteren
BATMAN sollte einstellbar sein. (Ich weiss, das ist nicht sicher
eindeutig, aber die Eindeutigkeit ist  auch nur innerhalb einer Hood
nötig und im sehr unwahrscheinlichen Konfliktfall ändert man sie halt).

Peter






-- 
----------------------------------------------------------------------

Peter Mühlenbrock, Nürnberg

jabber: salvo at jabber.pm-ib.de
Mein PGP key: AUf Anfrage
----------------------------------------------------------------------


-------------- nächster Teil --------------

config interface 'loopback'
	option ifname 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config interface 'w2mesh'
	option mtu '1532'
	option proto 'batadv'
	option mesh 'bat0'

config interface 'mesh'
	option type 'bridge'
	option auto '1'
	option ifname 'eth0.1 bat0'
	option macaddr '60:e3:27:c7:83:c0'

config interface 'wan'
	option proto 'dhcp'
	option ifname 'eth1'

config interface 'ethmesh'
	option mtu '1532'
	option proto 'batadv'
	option mesh 'bat0'
	option ifname 'eth0.3'
	option macaddr '60:e3:27:c7:83:c1'

config interface 'ethmesh1'
	option mtu '1532'
	option proto 'batadv'
	option mesh 'bat0'
	option ifname 'eth0.4'
	option macaddr '60:e3:27:c7:83:c2'

config interface 'ethmesh2'
	option mtu '1532'
	option proto 'batadv'
	option mesh 'bat0'
	option ifname 'eth0.5'
	option macaddr '60:e3:27:c7:83:c3'
	
#config interface 'ethmesh3'
#	option mtu '1532'
#	option proto 'batadv'
#	option mesh 'bat0'
#	option ifname 'eth0.6'
#	option macaddr '60:e3:27:c7:83:c4'

config interface 'bat'
	option ifname 'bat0'
	option mtu '1500'

config switch 'eth0'
	option name 'eth0'
	option enable '1'
	option reset '1'
	option enable_vlan '1'

config switch_vlan 'eth0_1'
	option device 'eth0'
	option vlan '1'
	option ports '1 2 0t'

config switch_vlan 'eth0_3'
	option device 'eth0'
	option vlan '3'
	option ports '3 4t 0t'
	
config switch_vlan 'eth0_4'
	option device 'eth0'
	option vlan '4'
	option ports '3 4t 0t'
	
config switch_vlan 'eth0_5'
	option device 'eth0'
	option vlan '5'
	option ports '3 4t 0t'
	
config switch_vlan 'eth0_6'
	option device 'eth0'
	option vlan '6'
	option ports '3 4t 0t'	
	
config switch_port
	option port '4'
	option pvid '9'
	
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : smime.p7s
Dateityp    : application/pkcs7-signature
Dateigröße  : 2446 bytes
Beschreibung: S/MIME Cryptographic Signature
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160216/6bb05a82/attachment-0002.bin>


Mehr Informationen über die Mailingliste franken-dev