Änderungen

2.585 Bytes hinzugefügt ,  17:16, 23. Feb. 2015
keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1: −
== VLAN Einrichtung auf einem WD841 ==
+
== VLAN Einrichtung auf einem WDR3600 ==
   −
=== Setzen einer bezeichnung fuer das untagged VLAN ===                            
+
=== VLAN Konfiguration===      
 +
  config switch                                                                           
 +
        option name 'switch0'                                                           
 +
        option reset '1'                                                               
 +
        option enable_vlan '1'                                                         
 +
        option enable_vlan4k '1'                                                       
 +
        option max_length '3'
    +
Auskommentieren des untagged vlans
   −
config switch_vlan   
+
  #config switch_vlan 'vlan1'                                                             
         option device 'switch0'
+
  #      option device 'switch0'                                                         
         option vlan '1'      
+
  #      option vlan '1'                                                                 
         option ports '0 1 2 3 4'
+
  #      option ports '0t 2 3 4 5'                                                       
 +
   
 +
Anlegen eines Manament vlans ueber das spaeter das Freifunk-Client Netz laeuft.                                                                                       
 +
  #Freifunk Client MNGMT VLAN                                                             
 +
  config switch_vlan 'vlan3'                                                             
 +
         option device 'switch0'                                                        
 +
         option vlan '3'                                                                
 +
         option ports '0t 2t 3t 4t 5t'
   −
                             
+
Anlegen eines VLAN ueber das die BATMAN Pakete Laufen
config switch_vlan 'default'  
+
  config switch_vlan 'vlan100'                                                            
         option device 'switch0'
+
         option device 'switch0'                                                        
         option vlan '1'      
+
         option vlan '100'                                                              
         option ports '0 1 2 3 4'
+
         option ports '0t 2t 3t 4t 5t'
    +
Als Konvention bietet es sich an den WLAN Channel der Nanostation als vlan Nummer zu waehlen
   −
config switch_vlan 'batman_vlan5'
+
Nun wird das VLAN3 der Client Bridge hinzugefuegt
         option device 'switch0'  
+
  config interface 'client'                                                               
         option vlan '5'         
+
        option reqprefix 'no'                                                           
         option ports '0t 1t 2t 3t 4t'
+
        option ifname 'bat0 eth0.3'                                             
 +
        option proto 'dhcpv6'                                                          
 +
         option type 'bridge'                                                            
 +
         option igmp_snooping '0'                                                        
 +
         option macaddr 'e8:94:f6:68:28:9c'                                             
 +
         option peerdns '1'                                                              
   −
config interface 'mesh_vlan5'           
+
Das alte untagged Interface (in diesem Fall eth0) wird entfernt.
        option ifname 'eth1.5'           
  −
        option mesh 'bat0'               
  −
        option proto 'batadv'           
  −
        option auto '1'
     −
config interface 'client'          
+
Schliesslich muess das batman vlan dem bat0 Interface hinzugefuegt werden
        option reqprefix 'no'                
+
 
        option ifname 'eth1.1 bat0'
+
  config interface 'mesh_vlan100'                                                        
        option proto 'dhcpv6'  
+
        option auto '1'                                                                
        option type 'bridge'  
+
        option ifname 'eth0.100'                                                        
        option igmp_snooping '0'
+
        option mesh 'bat0'                                                              
        option macaddr 'a0:f3:c1:b3:9b:56'
+
        option proto 'batadv'  
        option peerdns '1'
+
 
 +
 
 +
Danach startet man das Netzwerk neu:
 +
/etc/init.d/network restart
 +
 
 +
Dies kann einen Moment dauern.
 +
 
 +
Die richtige VLAN Konfiguration kann jetzt ueberprueft werden
 +
 
 +
swconfig dev switch0 show
 +
 
 +
Die Ausgabe sollte folgendes beinhalten:
 +
  VLAN 5:
 +
vid: 5
 +
ports: 0t 2t 3t 4t 5t
 +
  VLAN 100:
 +
vid: 100
 +
ports: 0t 2t 3t 4t 5t
398

Bearbeitungen