On Mon, Dec 5, 2016 at 8:47 AM, Aaron Z <[email protected]> wrote:
> Not sure if this is how you intended it, but currently, you have it
> setup so that untagged traffic from Vlan2 will go to ports 0 1 and 2.
> Tagged traffic from vlan 2 will go to ports 3 and 5.
> No ports are setup with untagged traffic from port 3 and ports 3 and 5
> should see tagged traffic from vlan 3.
> I might check to see if you must have an untagged vlan on each port
> (other than the CPU port).
>
By design port 3 is the trunk and all vlans should go through it
tagged. That is in fact what the switch expects.
> If you run 'swconfig list' and 'swconfig dev switch0 show', do the
> switch name from 'swconfig list' and the vlan list from the end of
> 'swconfig dev switch0 show' match what you expect?
It sure does (and thanks for the commands!)
VLAN 2:
info: VLAN 2: Ports: '0123t5t', members=002f, untag=0007, fid=0
fid: 0
ports: 0 1 2 3t 5t
VLAN 3:
info: VLAN 3: Ports: '3t5t', members=0028, untag=0000, fid=0
fid: 0
ports: 3t 5t
I also ran swconfig dev rtl8366s show to see if it would spit out
something different.
I will need to look up on this command's man page
(https://wiki.openwrt.org/doc/techref/swconfig) later. For instance,
what do the members=X and untag=Y fields report?
> I have a TPLink 1043ND with several vlans, and 'swconfig dev switch0
> show' ends with the following output:
> VLAN 1:
> vid: 1
> ports: 0t 4t
> VLAN 2:
> vid: 2
> ports: 0t 3t 4t 5t 6t
> VLAN 3:
> vid: 3
> ports: 0t 4t
> VLAN 4:
> vid: 4
> ports: 0t 1 2 3 4
>
Interesting: I do not have vid manually defined. I ASSumed per
(https://wiki.openwrt.org/doc/uci/network/switch) it would use the
vlan number. So, if I had
# DMZ
config switch_vlan
option device rtl8366s
option vlan 3
option ports "3t 5t"
the default vid for this guy would be 3.
> One other question, in your /etc/config/network file, do you have a
> 'config switch' section? On my 1043, that section is as follows:
> config switch
> option name 'switch0'
> option reset '1'
> option enable_vlan '1'
>
Mine look like this
config switch
option name rtl8366s
option reset 1
# We do want to use vlans
option enable_vlan 1
# Blinkrate: 0=43ms; 1=84ms; 2=120ms; 3=170ms; 4=340ms; 5=670ms
option blinkrate 2
which is consistent with swconfig list:
Found: switch0 - rtl8366s
> If you do not have "option enable_vlan" set to 1, that may cause vlan issues.
>
Fun fact: tcpdump -i eth0.3 (Thanks David for making me stopping
be a lazy ass and installing it) in the router shows me some ARP
traffic
tcpdump: WARNING: eth0.3: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0.3, link-type EN10MB (Ethernet), capture size 65535 bytes
14:42:39.022970 IP 0.0.0.0 > all-systems.mcast.net: igmp query v2
14:42:39.023016 IP6 fe80::e046:9aff:fe5e:a745 > ff02::1: HBH ICMP6,
multicast listener querymax resp delay: 10000 addr: ::, length 24
14:42:39.553420 ARP, Request who-has 192.168.3.10 tell 192.168.3.1, length 28
14:42:40.552998 ARP, Request who-has 192.168.3.10 tell 192.168.3.1, length 28
14:42:41.552997 ARP, Request who-has 192.168.3.10 tell 192.168.3.1, length 28
but when I connect a laptop on port 3 and run wireshark for 10
minutes, I see tons 802.1q vlan 2 traffic but nothing for vlan 3. That
makes me think I must have it configured wrong, which leads to me
belie I am missing something when I set openwrt up.
> Aaron Z
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
> — Robert Heinlein, Time Enough for Love
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users