Temat: Problemy z mostkowanym VLANem
Witam wszystkich forumowiczów!
Posiadam osiedlowy internet i telewizję od tego samego ISP. Konfiguracja wygląda w ten sposób:
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
config interface 'lan'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option delegate '0'
option ifname 'eth0.1'
config interface 'wan'
option proto 'static'
option delegate '0'
option ifname 'eth0.60'
option force_link '0'
option ipaddr '172.16.x.x'
option netmask '255.255.255.x'
option gateway '172.16.x.x'
option broadcast '172.16.x.x'
option dns '1.1.1.1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '1'
option ports '0t 1 2 3'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '21'
option ports '0t 4t'
config switch_vlan
option device 'switch0'
option vlan '6'
option ports '0t 4t'
option vid '60'
config interface 'IPTV'
option type 'bridge'
option proto 'none'
option delegate '0'
option ifname 'eth0.21 eth1'root@OpenWrt:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
mirror_monitor_port: 15
Port 0:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 4
link: port:1 link:down
Port 2:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 4
link: port:2 link:down
Port 3:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 4
link: port:3 link:down
Port 4:
enable_mirror_rx: 0
enable_mirror_tx: 0
pvid: 0
link: port:4 link:up speed:100baseT full-duplex auto
VLAN 0:
vid: 0
ports: 0t 4t
VLAN 4:
vid: 1
ports: 0t 1 2 3
VLAN 5:
vid: 21
ports: 0t 4t
VLAN 6:
vid: 60
ports: 0t 4troot@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.16.x.x 0.0.0.0 UG 0 0 0 eth0.60
172.16.x.x 0.0.0.0 255.255.255.x U 0 0 0 eth0.60
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lanZ internetem problemów nie ma. Z dekoderem natomiast są. Jeżeli podłączę go nie do niebieskiego wanu, a do jednego z lanów i przełączę go z VLAN 1 untag na VLAN 21 untag i port 0 (CPU) ustawię na off albo wyłączę interfejs IPTV, to zaczyna działać. Aby wyeliminować możliwość uszkodzenia interfejsu eth1 próbowałem dla testu utworzyć oddzielny VLAN 22, podpiąć do niego port untag, do którego podpięty jest dekoder i połączyć mostkiem eth0.21 i eth0.22, co nie przynosi rezultatu, występują te same problemy. Czy ktoś byłby w stanie mi podpowiedzieć jak poprawnie nastawić te vlany i mostki?
Dziękuję i życzę wszystkim wesołych Świąt!
