switch initialized.
root@OpenWrt:~# swconfig list
Found: switch0 - rtl8367b
root@OpenWrt:~#
but no traffic and dhcp.
br-lan Link encap:Ethernet HWaddr 00:11:22:33:44:56
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd00:cdde:fb0a::1/60 Scope:Global
inet6 addr: fe80::211:22ff:fe33:4456/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1936 (1.8 KiB)
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:56
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:4524 (4.4 KiB)
Interrupt:38
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:320 errors:0 dropped:0 overruns:0 frame:0
TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24960 (24.3 KiB) TX bytes:24960 (24.3 KiB)
latest log
kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.274434] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 2.287842] ssdk_dt_parse_mac_mode[299]:INFO:mac mode1 doesn't exit!
[ 2.287893] ssdk_dt_parse_mac_mode[307]:INFO:mac mode2 doesn't exit!
[ 2.293539] ssdk_dt_parse_port_bmp[1063]:INFO:port_bmp doesn't exist!
[ 2.299629] ssdk_dt_parse_interrupt[941]:INFO:intr-gpio does not exist
[ 3.911391] ssdk_mp_reset_init[1297]:INFO:MP reset successfully!
[ 4.272486] regi_init[2548]:INFO:Initializing SCOMPHY Done!!
[ 4.272740] regi_init[2574]:INFO:qca-ssdk module init succeeded!
[ 4.347252] dp2: ppe offload disabled: 0 for macid 2
[ 4.347315] dp2: Switch attached to macid 2 status: 0
[ 4.351523] nss-dp 39d00000.dp2 (unnamed net_device) (uninitialized): nss_dp_gmac: Registering netdev eth%d(qcom-id:2) with GMAC, mac_base: 0xffffffc082020000
[ 4.357414] Generic PHY fixed-0:00: attached PHY driver (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 4.372994] **********************************************************
[ 4.378914] * NSS Data Plane driver
[ 4.385561] **********************************************************
[ 4.394950] rtl8367b rtl8367b: switch phy addr=29
[ 4.395498] rtl8367b rtl8367b: using MDIO bus 'ipq4019_mdio'
[ 4.400874] rtl8367b rtl8367b: found chip num:6367 ver:00a0, mode:0000
[ 4.406173] rtl8367b rtl8367b: RTL8367S chip found (num:6367 ver:00a0)
[ 6.358161] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.367235] init: - preinit -
[ 12.081387] random: crng init done
[ 12.167880] nss-dp 39d00000.dp2 eth0: PHY Link up speed: 1000
[ 12.168506] adpt_mp_port_netdev_change_notify[1186]:ERROR:netdev change notify with incorrect port 0
[ 12.172881] ssdk_dev_event[2313]:ERROR:netdev change notify failed
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 14.283632] nss-dp 39d00000.dp2 eth0: PHY Link is down
[ 14.292814] procd: - early -
[ 14.293083] procd: - watchdog -
[ 14.864562] procd: - watchdog -
[ 14.865612] procd: - ubus -
[ 14.923360] procd: - init -
Please press Enter to activate this console.
[ 15.338906] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.533584] urngd: v1.0.2 started.
[ 15.610817] Loading modules backported from Linux version v6.11-0-g98f7e32f20d2
[ 15.610860] Backport generated by backports.git v6.1.110-1-31-g35e7a9061609
[ 15.679301] NET: Registered PF_QIPCRTR protocol family
[ 15.817589] PPP generic driver version 2.4.2
[ 15.819070] NET: Registered PF_PPPOX protocol family
[ 15.849888] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 24.787493] nss-dp 39d00000.dp2 eth0: PHY Link up speed: 1000
[ 24.789357] br-lan: port 1(eth0) entered blocking state
[ 24.792458] br-lan: port 1(eth0) entered disabled state
[ 24.801670] nss-dp 39d00000.dp2 eth0: entered allmulticast mode
[ 24.803168] nss-dp 39d00000.dp2 eth0: entered promiscuous mode
[ 25.831700] adpt_mp_port_netdev_change_notify[1186]:ERROR:netdev change notify with incorrect port 0
[ 25.831780] ssdk_dev_event[2313]:ERROR:netdev change notify failed
[ 25.840008] br-lan: port 1(eth0) entered blocking state
[ 25.846033] br-lan: port 1(eth0) entered forwarding state
swconfig dev switch0 show
Global attributes:
enable_vlan: 1
enable_vlan4k: 0
max_length: 1
Port 0:
mib: Port 0 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 1
link: port:0 link:down
Port 1:
mib: Port 1 MIB counters
ifInOctets : 11457
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 61
ifInBroadcastPkts : 9
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 11457
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 3
etherStatsPkts65to127Octets : 26
etherStatsPkts128to255Octets : 32
etherStatsPkts256to511Octets : 9
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 10
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 2
link: port:1 link:down
Port 2:
mib: Port 2 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 3
link: port:2 link:down
Port 3:
mib: Port 3 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 4
link: port:3 link:down
Port 4:
mib: Port 4 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 5
link: port:4 link:down
Port 5:
mib: Port 5 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 6
link: port:5 link:down
Port 6:
mib: Port 6 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 61
ifOutBroadcastPkts : 9
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 10
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 7
link: port:6 link:up speed:unknown full-duplex rxflow
Port 7:
mib: Port 7 MIB counters
ifInOctets : 0
dot3StatsFCSErrors : 0
dot3StatsSymbolErrors : 0
dot3InPauseFrames : 0
dot3ControlInUnknownOpcodes : 0
etherStatsFragments : 0
etherStatsJabbers : 0
ifInUcastPkts : 0
etherStatsDropEvents : 0
ifInMulticastPkts : 0
ifInBroadcastPkts : 0
inMldChecksumError : 0
inIgmpChecksumError : 0
inMldSpecificQuery : 0
inMldGeneralQuery : 0
inIgmpSpecificQuery : 0
inIgmpGeneralQuery : 0
inMldLeaves : 0
inIgmpLeaves : 0
etherStatsOctets : 0
etherStatsUnderSizePkts : 0
etherOversizeStats : 0
etherStatsPkts64Octets : 0
etherStatsPkts65to127Octets : 0
etherStatsPkts128to255Octets : 0
etherStatsPkts256to511Octets : 0
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
ifOutOctets : 0
dot3StatsSingleCollisionFrames : 0
dot3StatMultipleCollisionFrames : 0
dot3sDeferredTransmissions : 0
dot3StatsLateCollisions : 0
etherStatsCollisions : 0
dot3StatsExcessiveCollisions : 0
dot3OutPauseFrames : 0
ifOutDiscards : 0
dot1dTpPortInDiscards : 0
ifOutUcastPkts : 0
ifOutMulticastPkts : 0
ifOutBroadcastPkts : 0
outOampduPkts : 0
inOampduPkts : 0
inIgmpJoinsSuccess : 0
inIgmpJoinsFail : 0
inMldJoinsSuccess : 0
inMldJoinsFail : 0
inReportSuppressionDrop : 0
inLeaveSuppressionDrop : 0
outIgmpReports : 0
outIgmpLeaves : 0
outIgmpGeneralQuery : 0
outIgmpSpecificQuery : 0
outMldReports : 0
outMldLeaves : 0
outMldGeneralQuery : 0
outMldSpecificQuery : 0
inKnownMulticastPkts : 0
pvid: 8
link: port:7 link:down
VLAN 1:
info: VLAN 1: Ports: '06', members=0041, untag=0041, fid=0
ports: 0 6
VLAN 2:
info: VLAN 2: Ports: '16', members=0042, untag=0042, fid=0
ports: 1 6
VLAN 3:
info: VLAN 3: Ports: '26', members=0044, untag=0044, fid=0
ports: 2 6
VLAN 4:
info: VLAN 4: Ports: '36', members=0048, untag=0048, fid=0
ports: 3 6
VLAN 5:
info: VLAN 5: Ports: '46', members=0050, untag=0050, fid=0
ports: 4 6
VLAN 6:
info: VLAN 6: Ports: '56', members=0060, untag=0060, fid=0
ports: 5 6
VLAN 7:
info: VLAN 7: Ports: '01234567', members=00ff, untag=00ff, fid=0
ports: 0 1 2 3 4 5 6 7
VLAN 8:
info: VLAN 8: Ports: '67', members=00c0, untag=00c0, fid=0
ports: 6 7
02_network conf
tplink,ax55v1)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;