Interface status 10Mbps or 100MBps

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
yanko
DD-WRT Novice


Joined: 14 Oct 2013
Posts: 17

PostPosted: Thu Nov 12, 2015 17:37    Post subject: Interface status 10Mbps or 100MBps Reply with quote
Is there a way to find out the speed at which an interface is connected (10Mbps or 100MBps) after negotiation? ifconfig does not seem to have this info, and nether do any of the status tabs - unless I have missed it.
Sponsor
Ah-Pin-Kor
DD-WRT User


Joined: 19 Sep 2015
Posts: 267

PostPosted: Fri Nov 13, 2015 13:07    Post subject: Reply with quote
Try this:

cat /proc/switch/eth0/port/2/status
1000HD

(replace port number with your own)

_________________

Netgear R7800 kongpro 19.07 20190919 || Netgear R7000 36070M kongac (Client Bridge=5GHz, AP=2.4GHz with bridged VAP)
Linksys WRT32X davidc502 OpenWrt || Linksys WRT1200ACv1 Gargoyle 1.11.x
Linksys WRT1900ACSv2 dd-wrt 39956
yanko
DD-WRT Novice


Joined: 14 Oct 2013
Posts: 17

PostPosted: Fri Nov 13, 2015 15:11    Post subject: Reply with quote
Thank you for the tip.
There isn't a "status" file, but there is a "media":

cat /proc/switch/eth0/port/0/media
10HD

However, all ports (0 though 5) return "10HD". Does this mean they are connected at 10Mbps? I know this can't be correct, because on both the WAN and LAN ports I have 10/100 devices and when I do a speed test I get more than 50Mbps. I have a WRT54G, by the way.
Thanks!
h8red
DD-WRT Guru


Joined: 28 Jun 2011
Posts: 580
Location: Vilnius, Lithuania

PostPosted: Fri Nov 13, 2015 17:24    Post subject: Reply with quote
Or:
swconfig dev eth0 show

I guess it shows 10Mbit if the device is turned off, but its link is alive

_________________
[Ramips] Nexx WT3020F Openwrt @kernel #4.14.167 (OpenVPN server, Wireguard server, AD blocking, SQM QOS, USB)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum