Device: Cudy TR1200, (custom) 24.10.2
Using wifi-wan, when inserting LAN-cable I see following logmessages:
Wed Sep 10 08:59:11 2025 user.notice root: LAN CABLE TO BE INSERTED
Wed Sep 10 08:59:22 2025 kern.info kernel: [ 4247.153875] rt3050-esw 10110000.esw: port 0 link up
Wed Sep 10 08:59:22 2025 daemon.notice netifd: Network device 'eth0' link is up
Wed Sep 10 08:59:22 2025 daemon.notice netifd: VLAN 'eth0.1' link is up
Wed Sep 10 08:59:22 2025 daemon.notice netifd: VLAN 'eth0.2' link is up
Wed Sep 10 08:59:22 2025 daemon.notice netifd: Interface 'wan' has link connectivity
Wed Sep 10 08:59:22 2025 daemon.notice netifd: Interface 'wan' is setting up now
Wed Sep 10 08:59:22 2025 kern.info kernel: [ 4247.161113] br-lan: port 1(eth0.1) entered blocking state
Wed Sep 10 08:59:22 2025 kern.info kernel: [ 4247.166704] br-lan: port 1(eth0.1) entered forwarding state
Wed Sep 10 08:59:22 2025 daemon.notice netifd: wan (5540): udhcpc: started, v1.36.1
Wed Sep 10 08:59:22 2025 daemon.notice netifd: wan (5540): udhcpc: broadcasting discover
Wed Sep 10 08:59:25 2025 daemon.notice netifd: wan (5540): udhcpc: broadcasting discover
Wed Sep 10 08:59:28 2025 daemon.notice netifd: wan (5540): udhcpc: broadcasting discover
Wed Sep 10 08:59:33 2025 user.notice root: LAN CABLE TO BE REMOVED
Wed Sep 10 08:59:35 2025 daemon.notice netifd: Network device 'eth0' link is down
Wed Sep 10 08:59:35 2025 kern.info kernel: [ 4260.256595] rt3050-esw 10110000.esw: port 0 link down
Wed Sep 10 08:59:35 2025 kern.info kernel: [ 4260.263548] br-lan: port 1(eth0.1) entered disabled state
Wed Sep 10 08:59:35 2025 daemon.notice netifd: VLAN 'eth0.1' link is down
Wed Sep 10 08:59:35 2025 daemon.notice netifd: VLAN 'eth0.2' link is down
Wed Sep 10 08:59:35 2025 daemon.notice netifd: Interface 'wan' has link connectivity loss
Wed Sep 10 08:59:35 2025 daemon.notice netifd: wan (5540): udhcpc: received SIGTERM
Wed Sep 10 08:59:35 2025 daemon.notice netifd: wan (5540): udhcpc: entering released state
Wed Sep 10 08:59:35 2025 daemon.notice netifd: wan (5540): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interf
Wed Sep 10 08:59:35 2025 daemon.notice netifd: Interface 'wan' is now down
~
Is it to be expected, that wan is activated, when LAN-cable inserted ?
/etc/conf/network:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
option metric '0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6t'
config device
option name 'br-nop'
option type 'bridge'
option bridge_empty '1'
list ports 'phy1-ap1'
config interface 'nop'
option device 'br-nop'
option proto 'static'
option ipaddr '192.168.11.1'
option netmask '255.255.255.0'
config interface 'tetherwan'
option device 'usb0'
option proto 'dhcp'
option metric '20'
config interface 'wifiwan'
option proto 'dhcp'
option metric '10'
/etc/board.json:
{
"model": {
"id": "cudy,tr1200-v1",
"name": "Cudy TR1200 v1"
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"role": "lan"
},
{
"num": 1,
"role": "wan"
},
{
"num": 6,
"device": "eth0",
"need_tag": false,
"want_untag": false
}
],
"roles": [
{
"role": "lan",
"ports": "0 6t",
"device": "eth0.1"
},
{
"role": "wan",
"ports": "1 6t",
"device": "eth0.2"
}
]
}
},
"network": {
"lan": {
"device": "eth0.1",
"protocol": "static"
},
"wan": {
"device": "eth0.2",
"protocol": "dhcp"
}
},
"wlan": {
"phy0": {
"path": "platform/10300000.wmac",
"info": {
"antenna_rx": 3,
"antenna_tx": 3,
"bands": {
"2G": {
"ht": true,
"max_width": 40,
"modes": [
"NOHT",
"HT20",
"HT40"
],
"default_channel": 1
}
},
"radios": [
]
}
},
"phy1": {
"path": "pci0000:00/0000:00:00.0/0000:01:00.0",
"info": {
"antenna_rx": 3,
"antenna_tx": 3,
"bands": {
"5G": {
"ht": true,
"vht": true,
"max_width": 160,
"modes": [
"NOHT",
"HT20",
"VHT20",
"HT40",
"VHT40",
"VHT80",
"VHT160"
],
"default_channel": 36
}
},
"radios": [
]
}
}
}
}