Hi,
Can we get the LAN port status (connected or not) on RUT951 ?
This information was available on RUT950 with firmware 6.x or previous.
Thank you
Hi,
Can we get the LAN port status (connected or not) on RUT951 ?
This information was available on RUT950 with firmware 6.x or previous.
Thank you
Hello,
You can check the port status in Network → Ports in the WebUI. More information is available on our wiki page here: RUT951 Ports - Teltonika Networks Wiki.
Best regards,
In case you’re looking for a way to check port status using commandline, here are some methods:
# ethtool eth0
Settings for eth0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: external
Auto-negotiation: off
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: yes
# swconfig dev switch0 port 0 get link
port:0 link:up speed:1000baseT full-duplex txflow rxflow
# swconfig dev switch0 port 0 get speed
1000
# api get /ports_settings/status | jsonfilter -e '@.http_body.data[*].id'
_lan2
_lan3
_lan4
_wan5
# api get /ports_settings/config/_wan5 | jq -r '.http_body.data | "auto-negotiate: \(.
autoneg) [\(.advert|join(","))]"'
auto-negotiate: on [10mh,10mf,100mh,100mf,1000mf]
# api get /ports_settings/status | jq '.http_body.data | map(select(.state=="up"))'
[
{
"duplex": "true",
"num": 2,
"id": "_lan2",
"state": "up",
"name": "LAN",
"position": 1,
"speed": 1000,
"topology": [
{
"MAC": "90:ec:77:ab:cd:ef",
"VID": 1
}
],
"mac": "20:97:27:ab:cd:ef",
"enabled": "1"
}
]
*if you need to install jq:
opkg -e /etc/opkg/openwrt/distfeeds.conf update; opkg -e /etc/opkg/openwrt/distfeeds.conf install jq
Thank you vers much it’s exactly what I searched.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.