Hello All,

I am using qualcomm SoC and come to across below switch config in uci-default directory network script:

etc/uci-defaults/network

ap161)
        ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
        ucidef_add_switch "switch0" "1" "1" "1"
        ucidef_add_switch_vlan "switch0" "1" "6 4"
        ucidef_add_switch_vlan "switch0" "2" "0 1 2 3"

It is bit tough to get this configuration as I have experience with others SoC.

How eth1 eth2 LAN interfaces can use port id and tagging?

I was expecting, separate pid for eth1 eth2

like this      for eth1 : "1" " 0t 1 2"
                       eth2: "2"    "0t 3 4"

or something like.

Anyone has better explanation on this?

Update: This board use QCA8337 Switch with port 0 as CPU port with total 7 ports and 5 PHY

(Last edited by geek007 on 31 May 2017, 11:20)