Help with swconfig

hi, I would like to understand how to make the configurations appear correctly in luci. as soon as I add this, the switch doesn't work anymore

config switch
	option name 'switch0'
	option reset '1'
	option enable_vlan '1'

output of swconfig dev switch0 show

root@R6260:~# swconfig dev switch0 show
Global attributes:
	enable_vlan: 1
Port 0:
	mib: Port 0 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:0 link:down
Port 1:
	mib: Port 1 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:1 link:down
Port 2:
	mib: Port 2 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:2 link:down
Port 3:
	mib: Port 3 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 10220
TxMulti    : 288
TxBroad    : 740
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 214
Tx65Byte   : 5381
Tx128Byte  : 1296
Tx256Byte  : 1609
Tx512Byte  : 341
Tx1024Byte : 2407
TxByte     : 4945777
RxDrop     : 0
RxFiltered : 0
RxUni      : 9190
RxMulti    : 50
RxBroad    : 12
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 78
Rx65Byte   : 7844
Rx128Byte  : 396
Rx256Byte  : 355
Rx512Byte  : 206
Rx1024Byte : 373
RxByte     : 1446203
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:3 link:up speed:1000baseT full-duplex 
Port 4:
	mib: Port 4 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 2
	link: port:4 link:down
Port 5:
	mib: Port 5 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 473
RxUni      : 0
RxMulti    : 27
RxBroad    : 446
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 6
Rx128Byte  : 21
Rx256Byte  : 446
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 158198
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 2
	link: port:5 link:up speed:1000baseT full-duplex 
Port 6:
	mib: Port 6 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 9201
TxMulti    : 50
TxBroad    : 12
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 78
Tx65Byte   : 7856
Tx128Byte  : 396
Tx256Byte  : 355
Tx512Byte  : 206
Tx1024Byte : 373
TxByte     : 1447043
RxDrop     : 0
RxFiltered : 0
RxUni      : 10232
RxMulti    : 288
RxBroad    : 740
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 214
Rx65Byte   : 5386
Rx128Byte  : 1299
Rx256Byte  : 1610
Rx512Byte  : 344
Rx1024Byte : 2407
RxByte     : 4949353
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:6 link:up speed:1000baseT full-duplex 
VLAN 1:
	vid: 1
	ports: 0 1 2 3 6 
VLAN 2:
	vid: 2
	ports: 4 5 
root@R6260:~# 


the device is a netgear r6260 so mt7621
just with this the switch work right but in luci there is no voice switch

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd1a:9cec:ace4::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'eth0'
	list ports 'rai0'
	list ports 'apclii0'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option ipaddr '192.168.1.2'



config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'

config interface 'wan6'
	option device 'eth1'
	option proto 'dhcpv6'

You should upgrade, MT7621 is on DSA since 21.02.

i'm on 22.03.2, i'm testing something

Are you testing how quickly it breaks? Swconfig will not work on DSA enabled devices AFAIK.

you can see it's working, i only want to appear right in luci

Is that how you define 'working'? :yum: Maybe explain what you'd like to achieve, it very much looks like a fool's errand now. Swconfig is not present on DSA enabled devices, so you already took the trouble to install it separately.

I've clarified your topic title a bit, this isn't a plain swconfig question, but a very specific one.

1 Like

why you edit my post, you don't even know wath i did?

Your original topic title was/is overly broad and misleading. You are asking help for swconfig on a DSA device. Have it your way.

here there is nothing about DSA, hope you get that

Read that?

2 Likes

and so?? please if you do not have the solution leave this tread alone

The point that has been made in several earlier replies is that you cannot, under any circumstances, use swconfig (or the LuCI switch page) on your router. Your device is dsa which is an entirely different method of managing the switch hardware.

To use a stupid analogy, if you switched from a piston engine to a jet, you can’t use the old methods of servicing your engine - for example, there is no timing belt in a jet engine. In your case, there is no swconfig or luci switch page anymore. Even if you install additional packages or try to manually insert the swconfig related configuration details, it doesn’t do anything (other than break your config).

2 Likes

ok, there is no DSA in my build, is swconfig.nothing hard.
this is another device on 22.03.2 running swconfig xiaomi ax3200 please see.


No. There is no swconfig. Only dsa.

1 Like

Is that a custom build?

1 Like

hope now is clear

Visually, that is clear. But is this a custom build?

1 Like

yes i build my custom firmware.
why we love openwrt?
because it's customizable

But it doesn’t work, properly, right?

1 Like

So to be clear, you just created a build with swconfig installed?

What else did you do to the build?

(We can't guess; and you're not being clear/detailed.)