Odp: Router z obsługi VLan powyżej 52
Moje IP od dostawcy , ale jak robię konfiguracje jak wy mi piszecie to tak już niemam
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → Router z obsługi VLan powyżej 52
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
Moje IP od dostawcy , ale jak robię konfiguracje jak wy mi piszecie to tak już niemam
No to masz ip przyznawany normalnie czy musisz mieć vlan21 na wanie żeby uzyskać adres? Bo w poście 6 nie miałeś vlanu 21 a adres dostałeś. Więc jak to jest?
PS. 1043v2 ma lan na eth1.1, ty cały czas robisz konfigi na eth0.1. Masz v2 na 100%?
Adres dostałem bez VLAN 21 ale dostawca powiedział jak napisałem z VLAN 21 i 52 ze takie musza byc
1.8
Chyba jednak 1???? Biały
Przywróć ustawienia domyślne. Podłącz kabel od internetu pod wan i kabel od komputera pod lan1. Nie rób i nie konfiguruj niczego. Zaloguj się przez ssh i pokaż wyniki poleceń:
uci show network
ifconfig
route -n
cat /tmp/sysinfo/board_name
swconfig dev switch0 show | grep link
1.8
Chyba jednak 1????
No to nie v2...
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 'fdc5:3c95:5f68::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr 'B0:48:7A:D3:0C:24'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
config interface 'vpn'
option ifname 'tun0'
option proto 'none'
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 'fdc5:3c95:5f68::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr 'B0:48:7A:D3:0C:24'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
config interface 'vpn'
option ifname 'tun0'
option proto 'none'
root@EMM:~# ifconfig
br-lan Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fdc5:3c95:5f68::1/60 Scope:Global
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1595 errors:0 dropped:0 overruns:0 frame:0
TX packets:1193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:275101 (268.6 KiB) TX bytes:334079 (326.2 KiB)
eth0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12183 errors:0 dropped:0 overruns:0 frame:0
TX packets:1926 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1198120 (1.1 MiB) TX bytes:468686 (457.7 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1595 errors:0 dropped:0 overruns:0 frame:0
TX packets:1193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:275101 (268.6 KiB) TX bytes:334079 (326.2 KiB)
eth0.2 Link encap:Ethernet HWaddr B0:48:7A:D3:0C:24
inet addr:xx.xxx.xx.xxx.xx Bcast:xx.xxx.xx.xx.xx.x Mask:255.255.255.0
inet6 addr: fxxx::xxxx:7xxxxx;xx:xxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10370 errors:0 dropped:0 overruns:0 frame:0
TX packets:713 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:692925 (676.6 KiB) TX bytes:123340 (120.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2845 (2.7 KiB) TX bytes:2845 (2.7 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
inet6 addr: fe80::fc86:73ef:c4f6:2de0/64 Scope:Link
inet6 addr: fe80::fc86:73ef:c4f6:2de0/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:304 (304.0 B)
wlan0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:302 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:48160 (47.0 KiB)
root@EMM:~# cat /tmp/sysinfo/board_name
tl-wr1043nd
root@EMM:~# swconfig dev switch0 show | grep link
blinkrate: 0
link: port:0 link:up speed:1000baseT full-duplex txflow
link: port:1 link:up speed:100baseT full-duplex txflow rxflow
link: port:2 link:up speed:100baseT full-duplex txflow rxflow
link: port:3 link:down
link: port:4 link:up speed:1000baseT full-duplex txflow rxflow
link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto
root@EMM:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 xx.xxx.xx.xxx.xx 0.0.0.0 UG 0 0 0 eth0.2
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
xx.xxx.xx.xxx.xx 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
Miało być "nie konfiguruj niczego" a tu nagle jakiś vpn, zmieniony adres na lanie itd... Eh...
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'zmień na
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
config switch_vlan
option device 'switch0'
option vlan '52'
option ports '0t 1 5t'
config 'interface' 'iptv'
option 'ifname' 'eth0.52'
option 'proto' 'dhcp'TV podłącz pod lan1, siebie pod lan 2/3 lub 4. I zobacz co będzie.
zrobiłem i nic
zarowno z dhcp jak none
Słuchaj, ale bądź bardziej wylewny jeżeli to ma działać. "i nic" nie znaczy kompletnie nic. W takim przypadku odpowiedź chyba jest tylko jedna - na pewno coś źle zrobiłeś lub przez nie tą fazę księżyca, bo przy takiej wypowiedzi kompletnie już nikt nie zgadnie co się dzieje.
net działa, ale TV nie
wyłączyłem openvpn bo może on coś bruzdził
jakie dane Cię interesują???
root@EMM:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 xx.xxx.xx.xx.x 0.0.0.0 UG 0 0 0 eth0.2
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
xxx.x.x.xx.xx 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
root@EMM:~# ifconfig
br-lan Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fdc5:3c95:5f68::1/60 Scope:Global
inet6 addr: fdc5:3c95:5f68::1/60 Scope:Global
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2736 errors:0 dropped:0 overruns:0 frame:0
TX packets:2580 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:319879 (312.3 KiB) TX bytes:1510335 (1.4 MiB)
eth0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: x Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25518 errors:0 dropped:0 overruns:0 frame:0
TX packets:2857 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3100874 (2.9 MiB) TX bytes:435018 (424.8 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:507 errors:0 dropped:0 overruns:0 frame:0
TX packets:807 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:82967 (81.0 KiB) TX bytes:118990 (116.2 KiB)
eth0.2 Link encap:Ethernet HWaddr B0:48:7A:D3:0C:24
inet addr:x Bcast:x Mask:255.255.255.0
inet6 addr: x Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24755 errors:0 dropped:0 overruns:0 frame:0
TX packets:1878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2544462 (2.4 MiB) TX bytes:252096 (246.1 KiB)
eth0.52 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:48654 (47.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:3022 (2.9 KiB) TX bytes:3022 (2.9 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
inet6 addr: fe80::d56d:a4a0:4407:5806/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:304 (304.0 B)
wlan0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2226 errors:0 dropped:0 overruns:0 frame:0
TX packets:2647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:268058 (261.7 KiB) TX bytes:1561442 (1.4 MiB)
root@EMM:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fdc5:3c95:5f68::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.0.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='dhcp'
network.wan.macaddr='B0:48:7A:D3:0C:24'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 5t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0 5t'
network._vlan=switch
network._vlan.device='switch0'
network._vlan.vlan='52'
network._vlan.ports='0t 1 5t'
network.iptv=interface
network.iptv.ifname='eth0.52'
network.iptv.proto='dhcp'
network.vpn=interface
network.vpn.ifname='tun0'
network.vpn.proto='none'
To nie jest konfiguracja którą podałem. Miałeś zrobić sekcję switch_vlan a nie _vlan.
Jeszcze raz - nie rób żadnych swoich ustawień a tym bardziej vpn i innych dziwnych rzeczy. Skup się na jednym problemie.
zrobiłem jak napisałeś i nadal nie działa.
root@EMM:~# ifconfig
br-lan Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fdc5:3c95:5f68::1/60 Scope:Global
inet6 addr: fdc5:3c95:5f68::1/60 Scope:Global
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5195 errors:0 dropped:0 overruns:0 frame:0
TX packets:4588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:973294 (950.4 KiB) TX bytes:1108447 (1.0 MiB)
eth0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17577 errors:0 dropped:0 overruns:0 frame:0
TX packets:3471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1804256 (1.7 MiB) TX bytes:696249 (679.9 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2087 errors:0 dropped:0 overruns:0 frame:0
TX packets:2266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:491441 (479.9 KiB) TX bytes:475410 (464.2 KiB)
eth0.2 Link encap:Ethernet HWaddr B0:48:7A:D3:0C:24
inet addr:xx.xxx.x.x.x.x.x Bcast:xx.xx.xx.xx.xx Mask:255.255.255.0
inet6 addr: fe80::b248:7aff:fed3:c24/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15258 errors:0 dropped:0 overruns:0 frame:0
TX packets:1085 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:985207 (962.1 KiB) TX bytes:172179 (168.1 KiB)
eth0.52 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:31158 (30.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:3689 (3.6 KiB) TX bytes:3689 (3.6 KiB)
wlan0 Link encap:Ethernet HWaddr B0:48:7A:D3:1A:C0
inet6 addr: fe80::b248:7aff:fed3:1ac0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3165 errors:0 dropped:0 overruns:0 frame:0
TX packets:3396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:545306 (532.5 KiB) TX bytes:886754 (865.9 KiB)
root@EMM:~# 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'
option ula_prefix 'fdc5:3c95:5f68::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr 'B0:48:7A:D3:0C:24'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 5t'
config switch_vlan
option device 'switch0'
option vlan '52'
option ports '0t 1 5t'
config interface 'iptv'
option ifname 'eth0.52'
option proto 'dhcp'
Podłączyłeś tv pod port1?
tak i niestety nie działa
Pytanie - a jak podłączysz tv (w ogóle - to jest tv czy dekoder?) bezpośrednio to działa?
jest to dekoder JAMBOX. Jak podłącze bezpośrednio to nie działa
Eh, więc skąd wiesz że działa w ogóle ![]()
Od dostawcy miałeś jakiś inny skonfigurowany router?
no wlasnie oferowali mi, ale sam chciałem na swoim to zrobić bo mam tu openvpn a myślałem że będzie to proste
dostałem od techników takie screeny może coś pomogą. tylko zamiast 57 ma być podobno 52.
https://zapodaj.net/ec23d91c13ba5.jpg.html
https://zapodaj.net/2ab02ade1f3d7.jpg.html
57 zamiast 52. Więc zmień na 57 i zobacz. Ten pierwszy screen jest w ogóle na innych vlanach.
Na dodatek zobacz że wywalili cpu ze tego vlanu. Jak masz luci to możesz wyklikać sobie dokładnie to samo.
Dzwoniłem dziś do technika dostawcy i okazało się ze musi być podany jeszcze vid 52, ale i tak to nadal nie działa
Jeżeli tylko urządzenie ma obsługę większej ilości vlanów niż 16 to nie musi, bo to domyślnie jest. Dostałeś od techników screenshot jak to wygląda. Zainstaluj sobie luci i wyklikaj identycznie. Jak nie działa - męcz techników, my tu przecież za ich ustawienia nie odpowiadamy.
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → Router z obsługi VLan powyżej 52
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc