{"id":1126,"date":"2025-03-13T09:40:33","date_gmt":"2025-03-13T09:40:33","guid":{"rendered":"https:\/\/thomas.w-p.me.uk\/blog\/?p=1126"},"modified":"2025-03-13T09:40:33","modified_gmt":"2025-03-13T09:40:33","slug":"ethernet-speed","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2025\/03\/ethernet-speed\/","title":{"rendered":"Ethernet Speed"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/serverfault.com\/questions\/207474\/how-do-i-verify-the-speed-of-my-nic\">https:\/\/serverfault.com\/questions\/207474\/how-do-i-verify-the-speed-of-my-nic<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to serverfault I found how to check link speed between two debian machines &#8211; iperf3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can see the expected max speed using ethtool:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#FAFAFA\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"# assuming eth0 is the interface we care about\n~$ sudo ethtool eth0 | grep Speed\n        Speed: 10000Mb\/s\" style=\"color:#90A4AE;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-lighter\" style=\"background-color: #FAFAFA\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># assuming eth0 is the interface we care about<\/span><\/span>\n<span class=\"line\"><span style=\"color: #39ADB5\">~<\/span><span style=\"color: #90A4AE\">$ sudo ethtool eth0 <\/span><span style=\"color: #39ADB5\">|<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #E2931D\">grep<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">Speed<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE\">        <\/span><span style=\"color: #E2931D\">Speed:<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #F76D47\">10000<\/span><span style=\"color: #91B859\">Mb\/s<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To see real-time speeds install iperf3, then run one machine as server and one as client:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#FAFAFA\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"# on both machines\napt install iperf3 -y\n# say no to the install at startup - this is just for occasional testing\n\n# on machine A, which is 192.168.1.3\niperf3 -s\n\n# on machine B - reach out to machine A's IP address\niperf3 -c 192.168.1.3\n\" style=\"color:#90A4AE;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-lighter\" style=\"background-color: #FAFAFA\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># on both machines<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E2931D\">apt<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">install<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">iperf3<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">-y<\/span><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># say no to the install at startup - this is just for occasional testing<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># on machine A, which is 192.168.1.3<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E2931D\">iperf3<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">-s<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #90A4AE; font-style: italic\"># on machine B - reach out to machine A&#39;s IP address<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E2931D\">iperf3<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #91B859\">-c<\/span><span style=\"color: #90A4AE\"> <\/span><span style=\"color: #F76D47\">192.168<\/span><span style=\"color: #91B859\">.1.3<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">I got 250 Mb\/s whilst doing a backup on the cabling I installed myself 25 years ago (before gigabit was a thing)  to a USB ethernet 25m away from the switch, so I will take that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/serverfault.com\/questions\/207474\/how-do-i-verify-the-speed-of-my-nic Thanks to serverfault I found how to check link speed between two debian machines &#8211; iperf3 You can see the expected max speed using ethtool: To see real-time speeds install iperf3, then run one machine as server and one as client: I got 250 Mb\/s whilst doing a backup on the cabling I installed &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2025\/03\/ethernet-speed\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ethernet Speed<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[123,27],"tags":[],"class_list":["post-1126","post","type-post","status-publish","format-standard","hentry","category-debian","category-geekiness"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=1126"}],"version-history":[{"count":1,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1126\/revisions"}],"predecessor-version":[{"id":1127,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1126\/revisions\/1127"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}