Temat: Vlan id (VID, PVID ?

Wiecie może jak w Openwrt pozyskać vid, czy tam pivd ?
Chodzi mi o taki scenariusz:

Mam dostawcę, który taguje dostarczając dwa VLANy,
potem za pomocą jego routera (dir-100) rozdziela VLANy na porty
(po dwa).

Chcę się pozbyć ich routera bo ma swój i z wifi.
Czy mogę jakoś podłączając tagowany sygnał do routera (z OpenWrt)
na routerze sprawdzić jakie vlany przybiegają od dostawcy ?

Czytałem coś ze tcpdump za bardzo nie potrafi
(wyświetla info na temat wewnętrznie skonfigurowanych vlan'ów)

Proszoszę o pomoc !!!
Pozdrawiam!

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

2

Odp: Vlan id (VID, PVID ?

Podłącz dowolny komputer przed dir-100, jakiś wireshark i zobacz co biega po kablu...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Vlan id (VID, PVID ?

bardzo bardzo prosto smile
http://rpc.one.pl/index.php/lista-artyk … od-openwrt
masz opisane w punkcie "Debug" jak wykryć za pomocą tcpdump numer VLAN i ew podejrzeć pakiety w VLAN

4

Odp: Vlan id (VID, PVID ?

rpc napisał/a:

bardzo bardzo prosto smile
http://rpc.one.pl/index.php/lista-artyk … od-openwrt
masz opisane w punkcie "Debug" jak wykryć za pomocą tcpdump numer VLAN i ew podejrzeć pakiety w VLAN

Z tego co widzę to wywołanie:

tcpdump -enni eth0

Owszem wypisuje mi VLan'y ale to lokalnie zdefiniowane na routerze, a nie te które przychodzą od dostawcy.

Moja konfiguracja:

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'ifname' 'eth0.1'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

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

config 'switch_vlan' 'eth0_2'
        option 'device' 'eth0'
        option 'vlan' '2'
        option 'ports' '4 5t'

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '2 3 5t'

config 'switch_vlan' 'eth0_3'
        option 'device' 'eth'
        option 'vlan' '3'
        option 'ports' '0 1 5t'

Jestem podpięty do routera na porcie 3 (vlan 1),
Kabel od dostawcy wczepiłem do portu 1 (vlan 3), nie do WAN (WAN u mnie to port 4)
Uruchamiam:

tcpdump -enni eth0

Widzę:

19:30:01.454453 00:30:48:65:e1:2c > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 3, p 0, ethertype ARP, Request who-has 212.67.151.135 tell 212.67.151.1, length 46
19:30:01.491977 00:30:48:65:e1:2c > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 3, p 0, ethertype ARP, Request who-has 212.67.151.235 tell 212.67.151.1, length 46
19:30:01.502000 a4:ba:db:c1:a7:00 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 3, p 0, ethertype ARP, Request who-has 212.67.151.30 tell 212.67.151.30, length 46
19:30:01.504175 00:22:b0:9a:c3:51 > 00:14:0b:03:cd:1b, ethertype 802.1Q (0x8100), length 1518: vlan 1, p 0, ethertype IPv4, 192.168.1.1.23 > 192.168.1.235.50447: Flags [.], ack 1, win 2920, length 1460
19:30:01.504985 00:14:0b:03:cd:1b > 00:22:b0:9a:c3:51, ethertype 802.1Q (0x8100), length 64: vlan 1, p 0, ethertype IPv4, 192.168.1.235.50447 > 192.168.1.1.23: Flags [.], ack 6319, win 16425, length 0
19:30:01.506176 00:22:b0:9a:c3:51 > 00:14:0b:03:cd:1b, ethertype 802.1Q (0x8100), length 111: vlan 1, p 0, ethertype IPv4, 192.168.1.1.23 > 192.168.1.235.50447: Flags [P.], ack 1, win 2920, length 53

Czyli niby vlan 1 i vlan 3, coś mi nie pasuje że to moje vlany więc zmieniam konfigurację:

config 'switch_vlan' 'eth0_3'
        option 'device' 'eth'
        option 'ports' '0 1 5t'
        option 'vlan' '3'

na:

config 'switch_vlan' 'eth0_5'
        option 'device' 'eth'
        option 'ports' '0 1 5t'
        option 'vlan' '5'

Wiadmo commit, restart.
Uruchamiam:

tcpdump -enni eth0

Widzę:

19:34:16.890480 00:14:0b:03:cd:1b > 00:22:b0:9a:c3:51, ethertype 802.1Q (0x8100), length 64: vlan 1, p 0, ethertype IPv4, 192.168.1.235.50447 > 192.168.1.1.23: Flags [.], ack 6117, win 16177, length 0
19:34:16.891550 00:22:b0:9a:c3:51 > 00:14:0b:03:cd:1b, ethertype 802.1Q (0x8100), length 1394: vlan 1, p 0, ethertype IPv4, 192.168.1.1.23 > 192.168.1.235.50447: Flags [P.], ack 0, win 2920, length 1336
19:34:16.953480 00:30:48:65:e1:2c > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 5, p 0, ethertype ARP, Request who-has 212.67.154.145 tell 212.67.154.129, length 46
19:34:17.030796 00:12:f0:2c:9e:7d > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 5, p 0, ethertype ARP, Request who-has 212.67.151.1 (00:30:48:65:e1:2c) tell 212.67.151.88, length 46
19:34:17.043484 00:30:48:65:e1:2c > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 5, p 0, ethertype ARP, Request who-has 212.67.151.15 tell 212.67.151.1, length 46

Czyli MOJE vlan 1 i vlan 5.

Zatem ponawiam pytanie.
Jak dowiedzieć się z kabla od dostawcy jakie ma tam vlany (identyfikatory vid czy tam pvid dostarczanych vlanów)?
Są na pewno dwa
1. internet - pewnie nietagowany bo działa też bez ich switcha,
2. iptv - pewnie tagowany (bo jest tylko za ich switchem na dwóch portach w innej podsieci)

Proszę o pomoc !!! (drażni mnie ten ich switch, chcę własny, jak zrobię podzielę się pełną wiedzą)
Jakby co służę wszelakimi zrzutami.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

5

Odp: Vlan id (VID, PVID ?

Cezary napisał/a:

Podłącz dowolny komputer przed dir-100, jakiś wireshark i zobacz co biega po kablu...

Z dowolnym komputerem jest problem w tym sensie że mam Winde i teraz
Za stroną http://wiki.wireshark.org/CaptureSetup/VLAN#Windows :

Windows has no built-in support mechanisms for VLANs. There aren't separate physical and VLAN interfaces you can capture from, unless a specialized driver that adds such support is present.

So whether you see VLAN tags in Wireshark or not will depend on the network adapter you have and on what its and its driver do with VLAN tags.

Most "simple" network adapters (e.g. widely used Realtek RTL 8139) and their drivers will simply pass VLAN tags to the upper layer to handle these. In that case, Wireshark will see VLAN tags and can handle and show them.

Some more sophisticated adapters will handle VLAN tags in the adapter and/or the driver. This includes some Intel adapters and, as far as i know, Broadcom gigabit chipsets (NetXtreme / 57XX based chips). Moreover, it is likely that cards that have specialized drivers will follow this path as well, to prevent interference from the "real" driver.

Niestety moja sieciówka nie jest z tych co "simply pass VLAN tags to the upper layer", więc nie da rady Wireshark.
W treści napisałem że chciałbym za pomocą tcpdump ale może być cokolwiek czym da się to zrobić na routerze.
Program na Winde z powodu powyższego raczej odpada.

Jakieś dalsze propozycje ? Proszę o pomoc.
Pozdrawiam!

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

6

Odp: Vlan id (VID, PVID ?

Może odpal jakiegoś linucha live, np. tego http://securitytnt.com/network-security-toolkit/

Archer C7 v.2 + LEDE by Cezary http://beta.speedtest.net/pl/result/6621599402

7

Odp: Vlan id (VID, PVID ?

snifer napisał/a:

Może odpal jakiegoś linucha live, np. tego http://securitytnt.com/network-security-toolkit/

Może i racja, nie znam akurat NSF, ale spróbuje bo widzę że jest tam Whireshark, dam znać co się dało zrobić.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

8

Odp: Vlan id (VID, PVID ?

U mnie vlan id = 3500, i chyba nie mam obsługi enable_vlan4k,
bo tak z teg co widzę to twierdzi swconfig :

swconfig dev eth0 help
Switch 1: eth0(IP175C), ports: 6 (cpu @ 5), vlans: 16
     --switch
        Attribute 1 (int): enable_vlan (Flag to enable or disable VLANs and tagging)
        Attribute 2 (string): name (Returns the type of IC+ chip.)
        Attribute 3 (int): phy (Direct register access: set PHY (0-4, or 29,30,31))
        Attribute 4 (int): reg (Direct register access: set MII register number (0-31))
        Attribute 5 (int): val (Direct register access: read/write to register (0-65535))
        Attribute 6 (none): apply (Activate changes in the hardware)
        Attribute 7 (none): reset (Reset the switch)
     --vlan
        Attribute 1 (int): vid (VLAN ID (0-4095) [IP175D only])
        Attribute 2 (ports): ports (VLAN port mapping)
     --port
        Attribute 1 (string): status (Returns Detailed port status)
        Attribute 2 (int): link (Link speed. Can write 0 for auto-negotiate, or 10 or 100)
        Attribute 3 (int): tagged (0 = untag, 1 = add tags, 2 = do not alter (This value is reset if vlans are altered))
        Attribute 4 (int): pvid (Primary VLAN ID)

Teraz pytanie za 100000 punktów jak zrobić by obsługiwany był vlan id = 3500 ?
Jakoś za pomocą pvid da radę jeśli nie ma enable_vlan4k ?

Kombinuje jakoś tak:

config 'switch_vlan' 'eth0_3'
        option 'device' 'eth'
        option 'vlan' '3'
        option 'ports' '0 1t 5t'
        option 'pvid' '4000'

ale to chyba nie za dobra droga, bo nie działa.

Jakieś podpowiedzi ?
Z grubsza już wiem :
- Internet mam nietagowany
- iptv mam tagowany na vlan id = 3500

Pytanie jak robić podobnie do "Przykład 4"
http://rpc.one.pl/index.php/lista-artyk … od-openwrt
Żeby iptv śmigało na vlan id = 3500 ?

Panowie i Panie Pomocy !!!
Dzięki Wam jestem już blisko by przełamać monopol mojego dostawy na routery dir-100 !!!

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

9

Odp: Vlan id (VID, PVID ?

Nie da się? vlan4k jest sprzętową implementacją w chipie realteka w tplinkach. Jeżeli zdążyłeś już doczytać to masz IP175C a ten tego nie wspiera (IP175D za to to ma)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Vlan id (VID, PVID ?

no nie aż sprawdziłem i nie wiem jak u ciebie ale u mnie działa
proszę bardzo
na komputerze z linuxem ustawiłem dwa vlan 100 i 200
na openwrt w wr1043nd włączyłem tcpdump-mini z opcjami

tcpdump -n -e -vv -ttt -i wlan0 vlan

wynikiem zwykłego pingu z laptopa jest log z openwrt

root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
00:00:00.000079 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000080 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000109 00:1c:bf:9f:d7:60 > 01:00:5e:00:00:16, ethertype 802.1Q (0x8100), length 58: vlan 200, p 0, ethertype IPv4, (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 40, options (RA))

więc jak widzisz da się i to działa

11

Odp: Vlan id (VID, PVID ?

rpc napisał/a:

no nie aż sprawdziłem i nie wiem jak u ciebie ale u mnie działa
proszę bardzo
na komputerze z linuxem ustawiłem dwa vlan 100 i 200
na openwrt w wr1043nd włączyłem tcpdump-mini z opcjami

tcpdump -n -e -vv -ttt -i wlan0 vlan

wynikiem zwykłego pingu z laptopa jest log z openwrt

root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
00:00:00.000079 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000080 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000109 00:1c:bf:9f:d7:60 > 01:00:5e:00:00:16, ethertype 802.1Q (0x8100), length 58: vlan 200, p 0, ethertype IPv4, (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 40, options (RA))

więc jak widzisz da się i to działa


Mniejsza o to, u mnie wyniki były takie jak pokazywałem, może coś źle zrobiłem, nie ważne.
W każdym razie mam ten vlan id=3500.

Pytanie chyba głownie do Ciebe rpc Jak przerobić "Przykład 4"
http://rpc.one.pl/index.php/lista-artyk … od-openwrt
Żeby iptv śmigało na vlan id = 3500 ?

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

12

Odp: Vlan id (VID, PVID ?

Cezary napisał/a:

Nie da się? vlan4k jest sprzętową implementacją w chipie realteka w tplinkach. Jeżeli zdążyłeś już doczytać to masz IP175C a ten tego nie wspiera (IP175D za to to ma)

Cezary pytasz ("Nie da się?") czy twierdzisz ("masz IP175C a ten tego nie wspiera"), bo się trochę zamotałem,
Ja nie wie czy się da, ale napisałem że "chyba się nie da" , bo uruchamiając
swconfig dev eth0 help = mam eth0(IP175C)
no i tam nie widzę enable_vlan4k stąd wnioskuje, że się nie da.
Ja mam "D-Link DIR-300 Rev.A1" z chipem Atherosa.

Ja raczej pytałem, nie o to czy mogę stworzyć vlan 3500, tylko
czy za pomocą pvid=3500 (dopisanego do jakiegoś niskiego vlana)
mogę jakoś obsłużyć tak wysokiego vlana ???.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

13

Odp: Vlan id (VID, PVID ?

Help podany przez Ciebie podaje wsparcie tylko dla IP175D, a Ty masz innych chip. Więc standardowo się nie da.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14

Odp: Vlan id (VID, PVID ?

Cezary napisał/a:

Help podany przez Ciebie podaje wsparcie tylko dla IP175D, a Ty masz innych chip. Więc standardowo się nie da.

Nie chcę być upierdliwy (i być może z tego co napisałeś to wynika),
ale jak dobrze czytam tego helpa,
to dla IP175D obsługiwany jest parametr vid,
natomiast przy pvid nie ma żadnych obostrzeń,
więc może się da ?

     --vlan
        Attribute 1 (int): vid (VLAN ID (0-4095) [IP175D only])
     --port
        Attribute 4 (int): pvid (Primary VLAN ID)
TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

15

Odp: Vlan id (VID, PVID ?

Nie da się. Sterownik od IP175x implementuje tylko 16 vlanów, przy ustawieniu pvid jest to sprawdzane.

PS. Szybciej by było jak byś ustawił i sprawdził smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: Vlan id (VID, PVID ?

Cezary napisał/a:

Nie da się. Sterownik od IP175x implementuje tylko 16 vlanów, przy ustawieniu pvid jest to sprawdzane.

PS. Szybciej by było jak byś ustawił i sprawdził smile

Próbowałem, tak:

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'ifname' 'eth0.1'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'dhcp'

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

config 'switch_vlan' 'eth0_2'
        option 'device' 'eth0'
        option 'vlan' '2'
        option 'ports' '4 5t'

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '2 3 5t'
config 'switch_vlan' 'eth0_3'
        option 'device' 'eth'
        option 'vlan' '3'
        option 'ports' '0 1t 5t'
        option 'pvid' '3500'

Czyli w zamierzeniu na vlan 3, chciałem mieć wydzieloną dwa porty,
jeden tagowany (1) drugi odtagowany (0)
i ustawiam temu vlan'u :-) pvid=3500
Być może robię to źle,
ale swconfig pokazuje

root@OpenWrt:~# swconfig dev eth0 port 0 show
Port 1:
        status: down, auto-negotiate (in progress)
        link: 0
        tagged: 1
        pvid: 0
root@OpenWrt:~# swconfig dev eth0 port 0 show
Port 0:
        status: down, auto-negotiate (in progress)
        link: 0
        tagged: 0
        pvid: 3

Czyli chyba tego nie dał rady ustawić.

swconfig dev eth0 port 0 set pvid 3500

Napisał mi failed
Mam z tego wnioskować że się nie da?
Czy mam wnioskować że coś źle robię ?

Zastanawiały mnie dwa wpisy, w kontekście problemów z pvid:
1. https://dev.openwrt.org/ticket/7268
2. http://openrouter.info/forum/viewtopic.php?p=1140#p1140

Z tego właśnie powodu gdybałem że może coś źle robię,
stąd pytam na forum.

Cezary napisał/a:

Nie da się. Sterownik od IP175x implementuje tylko 16 vlanów, przy ustawieniu pvid jest to sprawdzane.

Zatem jak dobrze rozumiem, z tym sterownik IP175x, nie ujadę z tak wysokim vid?
Czyli po prostu nie jestem tego wstanie zrobić i kropka ?
Czy są jakieś alternatywy inny soft albo jakieś patche ?

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

17

Odp: Vlan id (VID, PVID ?

Chip tego nie wspiera...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: Vlan id (VID, PVID ?

rpc napisał/a:

no nie aż sprawdziłem i nie wiem jak u ciebie ale u mnie działa
proszę bardzo
na komputerze z linuxem ustawiłem dwa vlan 100 i 200
na openwrt w wr1043nd włączyłem tcpdump-mini z opcjami

tcpdump -n -e -vv -ttt -i wlan0 vlan

wynikiem zwykłego pingu z laptopa jest log z openwrt

root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
00:00:00.000079 00:1c:bf:9f:d7:60 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 100, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.10.10.1 tell 10.0.0.10, length 28
root@OpenWrt:~# tcpdump -n -e -vv -ttt -i wlan0 vlan
tcpdump: WARNING: wlan0: no IPv4 address assigned
tcpdump: listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes
00:00:00.000000 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000080 00:1c:bf:9f:d7:60 > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 94: vlan 200, p 0, ethertype IPv6, (hlim 1, next-header Options (0) payload length: 36) :: > ff02::16: HBH (rtalert: 0x0000) (padn)ICMP6, multicast listener report v2, length 28, 1 group record(s)[|icmp6]
00:00:00.000109 00:1c:bf:9f:d7:60 > 01:00:5e:00:00:16, ethertype 802.1Q (0x8100), length 58: vlan 200, p 0, ethertype IPv4, (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 40, options (RA))

więc jak widzisz da się i to działa

Ok, jak wspomniałem mam dir-300 z chipem IP175C, i jak twierdzi Cezary mój chip tego nie wspiera

Cezary napisał/a:

Nie da się. Sterownik od IP175x implementuje tylko 16 vlanów, przy ustawieniu pvid jest to sprawdzane.

Czy zatem możliwe jest że u Ciebie działa, a u mnie (z powodu powyższego) nie widać tak wysokich vlanów ?
Pytam proforma, bo może komuś się ta wiedza przyda.

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

19

Odp: Vlan id (VID, PVID ?

Ale rpc ma wr1043nd.  Z innych chipem od switcha.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: Vlan id (VID, PVID ?

Cezary napisał/a:

Nie da się. Sterownik od IP175x implementuje tylko 16 vlanów, przy ustawieniu pvid jest to sprawdzane.

A tak na marginesie, to skąd mieć taką informację jakie chipy, obsługują jakie vlany itp ?
Jest gdzieś może w jedynym miejscu w necie takie info ?
Może jakiś wpis dla potomnych, np w FAQ ?

TP-Link TL-WDR4300 v1, Reboot (17.01-SNAPSHOT, r3876-efb6ca1)

21

Odp: Vlan id (VID, PVID ?

Ja szukam w źródłach kernela po prostu; jak nie jest to implementowane szukam kart katalogowych poszczególnych chipów.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.