What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Stock doesn't seem to use swconfig to configure IPTV VLANs!?

aalba86U

New Around Here
The device is a RT-AC1300UHP. Curious to know how stock manages to configure IPTV+
VLANs when it doesn't seem to fully use swconfig. swconfig only shows partial information
and enable_vlan = 0!

@RMerlin you mentioned in another thread that for eth1-switch there is a user-space tool
for configuration. I read up a bit on robocfg/swconfig but stock firmware seems to do
something slightly different.

Example:
switch0: QCA AR8327 AR8337(QCA AR8327 AR8337), ports: 7 (cpu @ 0), vlans: 128
--switch
Attribute 1 (int): enable_vlan (Enable 8021q VLAN)
Attribute 2 (int): max_frame_size (Set Max frame Size Of Mac)
Attribute 3 (none): reset_mibs (Reset All MIB Counters)
Attribute 4 (none): flush_arl (Flush All ARL table)
Attribute 5 (string): dump_arl (Dump All ARL table)
Attribute 6 (unknown): switch_ext (Switch extended configuration)
Attribute 7 (none): apply (Activate changes in the hardware)
Attribute 8 (none): reset (Reset the switch)
--vlan
Attribute 1 (int): vid (Configure Vlan Id)
Attribute 2 (ports): ports (VLAN port mapping)
--port
Attribute 1 (none): reset_mib (Reset Mib Counters)
Attribute 2 (string): mib (Get Mib Counters)
Attribute 3 (int): pvid (Primary VLAN ID)
Attribute 4 (string): link (Get port link information)


switch_stb_x=6
switch_wan0prio=0
switch_wan0tagid=10
switch_wan1prio=4
switch_wan1tagid=20
switch_wan2prio=4
switch_wan2tagid=30
switch_wantag=manual


IPTV Profile: Manual
Internet: 10
LAN3/VoIP: 30
LAN4/IPTV: 20

This works fine. But swconfig doesn't show the information.

swconfig dev switch0 show
enable_vlan = 0
MAC: 00:90:f5:f0:fc:33 PORTMAP: 0x20 VID: 0xa STATUS: 0x0
MAC: f4:f9:51:f1:b7:33 PORTMAP: 0x08 VID: 0x1 STATUS: 0x0
MAC: 4c:ed:fb:36:10:e4 PORTMAP: 0x01 VID: 0x1 STATUS: 0x0
MAC: 00:90:f5:f0:fc:33 PORTMAP: 0x20 VID: 0x1e STATUS: 0x0
MAC: 4c:ed:fb:36:10:e0 PORTMAP: 0x01 VID: 0xa STATUS: 0x0

No VLAN 20 0x14
swconfig dev switch0 vlan 10|20|30 get ports
- all empty! It doesn't show ports like vlan 20: '0t 4t' etc

swconfig dev switch0 port N get pvid
- all show 0
 
Similar threads
Thread starter Title Forum Replies Date
G NextDNS on Stock firmware ASUSWRT - Official 5

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top