[OpenWrt-Devel] [PATCH v2] gemini: Bring up DSA switches
Linus Walleij
linus.walleij at linaro.org
Sun Jul 14 16:46:05 EDT 2019
On Sun, Jul 14, 2019 at 5:15 PM Pawel Dembicki <paweldembicki at gmail.com> wrote:
> > +storlink,gemini324)
> > + # These are all connected to eth1 thru VSC7385
> > + ucidef_set_interface "eth" ifname "eth1" protocol "none"
> > + ucidef_set_interfaces_lan_wan "eth1 lan1 lan2 lan3 lan4" "eth0"
> > + ;;
Ooops I say I shall fix it then I don't. eth1 is still there.
OK I fix a v3. The switch is working fine on the VSC7385 like
this.
> I can't reproduce working state on P2020RDB with this two methods.
> In my device work this sequence:
>
> ip link set eth0 up
> ip link set lan1 up
> ip link set lan2 up
> ip link set lan3 up
> ip link set lan4 up
> ip link add name br-lan type bridge
> ip link set dev lan1 master br-lan
> ip link set dev lan2 master br-lan
> ip link set dev lan3 master br-lan
> ip link set dev lan4 master br-lan
> ip addr add 192.168.1.1/24 dev br-lan
> ip link set dev br-lan up
> ip link set dev eth0 master br-lan
>
> I think, vsc73xx without vlan filtering is very tricky now.
I think you should have it like this:
ucidef_set_interface "eth" ifname "eth0" protocol "none"
ucidef_set_interfaces_lan "lan1 lan2 lan3 lan4"
If you don't have any WAN interface (uplink) on the device.
Yours,
Linus Walleij
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list