youldne
Goto Top

OpenWRT Router und AP miteinander verbinden

Hallo Leute,
ich bekomme das mit dem VLAN bei meinen Router und AP nicht hin.
Ich habe einen TL-WDR4900 als Haupt-Router und ein mi wifi mini als AP.
Auf beiden Geräten läuft openWRT mit zwei Netzwerke, nun will ich das beide Netzwerke über ein Kabel sich miteinander verbinden.

mfg. Youldne

Meine Netzwerk Einstellung sieht so aus
Haupt-Router
config interface 'loopback'  
	option ifname 'lo'  
	option proto 'static'  
	option ipaddr '127.0.0.1'  
	option netmask '255.0.0.0'  

config globals 'globals'  
	option ula_prefix 'fd36:9848:1964::/48'  

config interface 'wan'  
	option _orig_ifname 'eth0.2'  
	option _orig_bridge 'false'  
	option proto 'static'  
	option ipaddr '192.168.178.100'  
	option netmask '255.255.255.0'  
	option gateway '192.168.178.1'  
	option broadcast '192.168.178.255'  
	option dns '192.168.178.1'  
	option ifname 'eth0.1'  

config interface 'wan6'  
	option ifname '@wan'  
	option proto 'dhcpv6'  
	option reqaddress 'try'  
	option reqprefix 'auto'  

config switch
	option name 'switch0'  
	option reset '1'  
	option enable_vlan '1'  

config switch_vlan
	option device 'switch0'  
	option vlan '1'  
	option vid '1'  
	option ports '0t 1'  

config switch_vlan
	option device 'switch0'  
	option vlan '5'  
	option ports '0t 2 3 5t'  
	option vid '5'  

config switch_vlan
	option device 'switch0'  
	option vlan '10'  
	option ports '0t 4 5t'  
	option vid '10'  

config interface 'home'  
	option proto 'static'  
	option ipaddr '192.168.20.254'  
	option netmask '255.255.255.0'  
	option broadcast '192.168.20.255'  
	option macaddr '64:66:B3:DE:F6:D2'  
	option type 'bridge'  
	option _orig_ifname 'eth0.20 wlan0 wlan1'  
	option _orig_bridge 'true'  
	option ifname 'eth0.5'  

config interface 'gast'  
	option proto 'static'  
	option ipaddr '192.168.40.254'  
	option netmask '255.255.255.0'  
	option broadcast '192.168.40.255'  
	option macaddr '64:66:B3:DE:F6:D3'  
	option type 'bridge'  
	option _orig_ifname 'eth0.40 wlan0-1 wlan1-1'  
	option _orig_bridge 'true'  
	option ifname 'eth0.10'  
AP
config interface 'loopback'  
	option ifname 'lo'  
	option proto 'static'  
	option ipaddr '127.0.0.1'  
	option netmask '255.0.0.0'  

config globals 'globals'  
	option ula_prefix 'auto'  

config interface 'home'  
	option proto 'static'  
	option ifname 'eth0.5'  
	option ipaddr '192.168.20.253'  
	option netmask '255.255.255.0'  
	option broadcast '192.168.20.255'  
	option macaddr '64:66:B3:DE:F5:D2'  
	option type 'bridge'  
	option gateway '192.168.20.254'  
	option dns '192.168.20.254'  

config interface 'gast'  
	option proto 'static'  
	option ipaddr '192.168.40.253'  
	option netmask '255.255.255.0'  
	option broadcast '192.168.40.255'  
	option macaddr '64:66:B3:DE:F5:D3'  
	option type 'bridge'  
	option _orig_ifname 'eth0.10 ra0 rai0'  
	option _orig_bridge 'true'  
	option gateway '192.168.40.254'  
	option dns '192.168.40.254'  
	option ifname 'eth0.10'  

config switch
	option name 'mt762x'  
	option reset '1'  
	option enable_vlan '1'  

config switch_vlan
	option device 'mt762x'  
	option vlan '5'  
	option ports '0 1 2 3 4t 5 6t'  

config switch_vlan
	option device 'mt762x'  
	option vlan '10'  
	option ports '4t 6t'  

Content-Key: 261557

Url: https://administrator.de/contentid/261557

Printed on: April 25, 2024 at 05:04 o'clock

Member: orcape
orcape Feb 02, 2015 at 16:32:24 (UTC)
Goto Top
Hi Youldne,
Titat aus einem Vorangehenden Thread....
Ich kann leider mit der englischen Seite von openWRT nicht viel anfangen, sind dann doch zufiel unbekannte, sowohl sprachlich wie auch fachlich.
...und weil das so ist, fängst Du von Null an, suchst Dir eine anspruchsvolle alternative Router-Firmware aus, natürlich mit VLAN, man gönnt sich ja sonst nischt face-wink und erwartest, das es so ohne weiteres funktioniert.
Auf beiden Geräten läuft openWRT mit zwei Netzwerke, nun will ich das beide Netzwerke über ein Kabel sich miteinander verbinden.
Dazu hat @aqui ein Tutorial geschrieben, aber den Link kennst Du ja sicher schon...
Kopplung von 2 Routern am DSL Port
Das funktioniert übrigens auch mit einem weiteren Router, denn laut Deinem WAN-Interface Netz ( TL-WDR4900) hängt da wohl auch noch eine Fritte rum.
Was VLAN´s betrifft, findest Du hier sicher auch noch ein Tutorial.
Im übrigen solltest Du Dein Vorhaben etwas ausführlicher darstellen, (Bild mit IP-Belegung etc.) denn so richtig wirklich nachvollziehen kann man Dein Vorhaben nach Deiner Beschreibung nicht.
Gruß orcape