On Thu, Dec 1, 2016 at 2:35 PM, Mauricio Tavares <raubvo...@gmail.com> wrote:
> This is a WNDR3700v2 running
>
> I setup two vlans and port 3 (physical port 1) as the trunk:
>
> config interface lan
>         option ifname   eth0.2
>         option type     bridge
>         option proto    static
>         option ipaddr   192.168.2.1
>         option netmask  255.255.255.0
>         option dns      192.168.2.10
>         option gateway  192.168.2.2
>
> config interface dmz
>         option ifname   eth0.3
>         option type     bridge
>         option proto    static
>         option ipaddr   192.168.3.1
>         option netmask  255.255.255.0
>         option dns      192.168.3.10
>         option gateway  192.168.3.2
>
> config switch_vlan
>         option device   rtl8366s
>         option vlan     2
>         option ports    "0 1 2 3t 5t"
>
> config switch_vlan
>         option device   rtl8366s
>         option vlan     3
>         option ports    "3t 5t"
>
> Here is its route table
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> default         192.168.2.2   0.0.0.0         UG    0      0        0 br-lan
> 192.168.2.0        *               255.255.255.0   U     0      0
>   0 br-lan
> 192.168.3.0     *               255.255.255.0   U     0      0        0 br-dmz
>
> When I connect to my switch, the switch claims it can see traffic on
> vlan 2 at that port but nothing on vlan 3. What kind of traffic?
> Switch would tell me the MAC it is seeing on that vlan on that port.
> So, I would expect to see one MAC for vlan 2 and another for vlan 3.
> And how much data has been sent (broadcast requests and other crap) in
> each vlan. But I am seeing nothing at all on vlan 3 on the switch port
> the openwrt router is connected to And that would explain why I can't
> reach 192.168.3.1 from another machine in that vlan.

      As you can see, the router is sending data out on vlan 3:

br-dmz    Link encap:Ethernet  HWaddr E2:46:9A:5E:A7:45
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::e046:9aff:fe5e:a745/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25228 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1863768 (1.7 MiB)
[...]
eth0.2    Link encap:Ethernet  HWaddr E2:46:9A:5E:A7:45
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22368102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11357869 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:28802723922 (26.8 GiB)  TX bytes:5789314173 (5.3 GiB)

eth0.3    Link encap:Ethernet  HWaddr E2:46:9A:5E:A7:45
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1096468 (1.0 MiB)

but it seems nobody's listening.
>
> Sounds like I am doing something wrong here and I looked at
> http://wiki.openwrt.org/doc/uci/network/switch and am still confused.
> Could anyone shed some light here?
_______________________________________________
openwrt-users mailing list
openwrt-users@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to