Gluon/Erweiterte-Konfiguration: Unterschied zwischen den Versionen

Aus Freifunk Potsdam | Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „Entwurf == VLANs == === Konfigurationsbeispiel Hannes === '''/etc/config/gluon''' * wichtig, Zuordnung der role config interface 'iface_lan' und config interface 'iface_wan' entfernen * Siehe Kommentare im Code (Achtung, Kommentare gehen verloren wenn '''gluon-reconfigure''' läuft) * eth0 mit VLAN 101 (WAN/Uplink für den Router) und VLAN 102 (Freifunk Client Netz/Freifunk DHCP) ** auf WAN/Uplink wird gleichzeitig Mesh über Kabel gemacht * eth1/eth2…“)
 
 
Zeile 15: Zeile 15:
* eth4 mit VLAN 101 (WAN/Uplink für den Router)
* eth4 mit VLAN 101 (WAN/Uplink für den Router)
   
   
<code>
<pre>
config core 'core'
config core 'core'
option domain 'potsdam'
option domain 'potsdam'
Zeile 69: Zeile 69:
option name 'eth2'
option name 'eth2'
list role 'client'
list role 'client'
</code>
</pre>

Aktuelle Version vom 4. Februar 2024, 21:28 Uhr

Entwurf

VLANs

Konfigurationsbeispiel Hannes

/etc/config/gluon

  • wichtig, Zuordnung der role config interface 'iface_lan' und config interface 'iface_wan' entfernen
  • Siehe Kommentare im Code (Achtung, Kommentare gehen verloren wenn gluon-reconfigure läuft)
  • eth0 mit VLAN 101 (WAN/Uplink für den Router) und VLAN 102 (Freifunk Client Netz/Freifunk DHCP)
    • auf WAN/Uplink wird gleichzeitig Mesh über Kabel gemacht
  • eth1/eth2 untagged Freifunk Client Netz/Freifunk DHCP
  • eth3 untagged VLAN 101 (WAN/Uplink für den Router)
  • eth4 mit VLAN 101 (WAN/Uplink für den Router)
config core 'core'
	option domain 'potsdam'

config interface 'iface_lan'
	option name '/lan'

config interface 'iface_wan'
	option name '/wan'

config wireless 'wireless'
	option outdoor '0'
	option preserve_channels '0'

config mesh_vpn 'mesh_vpn'
	option limit_ingress '35000'
	option limit_enabled '0'
	option limit_egress '5000'
	option enabled '1'

# eth0 ist hier im VLAN 101 (Tagged), verbindet sich zum 
# Gateway (uplink) und macht darüber Gleichzeit mesh für 
# weitere Gluon Router über Kabel
config interface 'iface_wan_vlan101'
	option name 'eth0.101'
	list role 'uplink'
	list role 'mesh'

# eth3 ist hier untagged wie eth0, gleichzeitig wird damit
# das VLAN 101 auf den Port eth3 gebridged
config interface 'iface_wan_eth3'
	option name 'eth3'
	list role 'uplink'
	list role 'mesh'

# eth4 tagged VLAN 101
config interface 'iface_wan_eth4_vlan101'
	option name 'eth4.101'
	list role 'uplink'
	list role 'mesh'

# eth0 VLAN 102 (tagged) ist freifunk client netz
config interface 'iface_lan_vlan102'
	option name 'eth0.102'
	list role 'client'

# eth1 freifunk client netz
config interface 'iface_lan_eth1'
	option name 'eth1'
	list role 'client'

config interface 'iface_lan_eth2'
	option name 'eth2'
	list role 'client'