Temat: 1043v2 Lede - VLAN problem
Hej,
Przeczytalem tutorial http://eko.one.pl/?p=openwrt-vlan i mam pare pytan/watpliwosci
Nie do konca rozumiem konfiguracje przez luci switcha a dokladniej opcji CPU (eth1) CPU (eth0)
Router ten ma miec polaczony port WAN z LANem poniewaz pracuje jako AP pomiedzy nim a routerem glownym jest switch i kilka innych urzadzen wpietych do niego.
Na vlan 31 jest puszczona z glownego routera siec goscinna. Jak rozumiem jesli pakiety sa tagowane to urzadzenia wpiete miedzy Router a ten AP nie powinny miec z tym problemu?
CPU eth1 - to obsluga WAN?
CPU eth0 - to obsluga switch?
Dodatkowo jeden z portow z LAN ma byc portem dla urzadzen z sieci goscinnej.
swconfig dev switch0 help
switch0: ag71xx-mdio.0(Atheros AR8327), ports: 7 (cpu @ 0), vlans: 128
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 'fddf:5529:907e::/48'
config interface 'lan'
option type 'bridge'
option proto 'static'
option ip6assign '60'
option delegate '0'
option ipaddr '10.10.10.2'
option netmask '255.255.254.0'
option gateway '10.10.10.1'
option broadcast '10.10.11.254'
option dns '10.10.10.1'
option _orig_ifname 'eth1 wlan0 wlan0-1'
option _orig_bridge 'true'
option ifname 'eth0.1'
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 '0 2 3 4 5 6t'
config switch_vlan
option device 'switch0'
option vlan '31'
option vid '31'
option ports '1 5t 6t'
config interface 'guest'
option type 'bridge'
option _orig_ifname 'wlan0-2'
option _orig_bridge 'true'
option ifname 'eth0.31'
option proto 'none'
option delegate '0'
Czy to wyglada dobrze? (bo dziala)
Czy pakiety zarowno z vlan1 i vlan31 dla CPU(eth0 - port6) powinny by tagowane?
Czy CPU(eth1 - port0 ) powinny byc tagowane wl/wyl?
Ogolnie kiedy powinno byc tagowanie via CPUeth1 a kiedy CPUeth0?
Screen z LUCI
https://drive.google.com/file/d/0B5gqMQ … ZxdTQ/view
W ktorym momencie nalezy uzywac opcji Enable mirroring of incoming packets? Enable mirroring of outgoing packets?
(pojawiaja sie wtedy source i destination port)
