Maybe I'm wrong, but when I change something in the Asus RT-AC58U switch page nothing works well and always ends in a factory reset.
I've run the swconfig dev switch0 show
command and output is not the same that I see in LuCi
VLAN 1:
vid: 1
ports: 0 1 2 3 4
VLAN 2:
vid: 2
ports: 0t 5
If I look at git target ipq40xx etc there is no specific board.json
(I think I am looking at the wrong place)
Filesystem has this:
{
"model": {
"id": "asus,rt-ac58u",
"name": "ASUS RT-AC58U"
},
"led": {
"wlan2g": {
"name": "WLAN2G",
"sysfs": "rt-ac58u:blue:wlan2G",
"trigger": "phy0tpt"
},
"wlan5g": {
"name": "WLAN5G",
"sysfs": "rt-ac58u:blue:wlan5G",
"trigger": "phy1tpt"
},
"usb": {
"name": "USB",
"sysfs": "rt-ac58u:blue:usb",
"type": "usbport",
"ports": [
"usb1-port1",
"usb2-port1",
"usb3-port1",
"usb4-port1"
]
},
"wan": {
"name": "WAN",
"sysfs": "rt-ac58u:blue:wan",
"type": "netdev",
"device": "eth1",
"mode": "link tx rx"
},
"lan": {
"name": "LAN",
"sysfs": "rt-ac58u:blue:lan",
"trigger": "switch0",
"type": "switch",
"port_mask": "0x1e",
"speed_mask": ""
}
},
"network": {
"lan": {
"ifname": "eth0",
"protocol": "static",
"macaddr": "18:31:bf:5a:96:80"
},
"wan": {
"ifname": "eth1",
"protocol": "dhcp",
"macaddr": "18:31:bf:5a:96:84"
}
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"device": "eth0",
"need_tag": false,
"want_untag": true
},
{
"num": 1,
"role": "lan"
},
{
"num": 2,
"role": "lan"
},
{
"num": 3,
"role": "lan"
},
{
"num": 4,
"role": "lan"
}
],
"roles": [
{
"role": "lan",
"ports": "1 2 3 4 0",
"device": "eth0"
}
]
}
}
}
Should I edit this file in order to add WAN interface as hardware config shows?
Best howto I found is this mail list entry
Any insight?