Date: Wed, 29 Jun 2022 10:56:41 -0400 From: Chris Ross <cross+freebsd@distal.com> To: freebsd-net@freebsd.org Cc: Chris Ross <cross+freebsd@distal.com> Subject: Netstat -i 5-character interface name length? Message-ID: <F986B88D-4497-4290-9DE0-3387D734F5B9@distal.com>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello folks. I just noticed something that I=E2=80=99m sure has been = true forever, but I checked and it=E2=80=99s still true on my = 12.3-STABLE system. In the daily run output, I=E2=80=99m seeing the network interface names = truncated. This comes from netstat -I apparently only rendering the = first 5 characters of the interface name. Many of my systems have = `vlanNN` interfaces, but they show up as `vlanN` in netstat output. = Unfortautnely, I have all of vlan1, vlan3, vlan11, and vlan33 on one of = my systems (plus others). This makes it impossible to identify which of = the lines of output are which interface: vlan0 1500 <Link#7> 90:e2:ba: dd:ee:ff 7898136066 0 0 = 6455161338 0 0 0=20 vlan0 - A.B.C.D/ pool-A.B.C.D 1172409474 - - 780810867 - = - -=20 vlan1 1500 <Link#8> 90:e2:ba:dd:ee:ff 4317051938 0 0 = 4879301946 0 0 0=20 vlan1 - fe80::%vlan1/ fe80::92e2:baff:f 702196 - - = 4498316 - - -=20 vlan1 - 2001:470:e24c hostname 5966892 - - = 9302547 - - -=20 vlan3 1500 <Link#9> 90:e2:ba:dd:ee:ff 230398636 0 0 = 317573885 0 0 0=20 vlan3 - fe80::%vlan3/ fe80::92e2:baff:f 399612 - - = 4042723 - - -=20 vlan3 - 2001:470:e24c 2001:470:e24c:66 523819 - - 7747524 = - - -=20 [=E2=80=A6] vlan1 1500 <Link#13> 90:e2:ba:dd:ee:ff 220678168 0 0 = 525414925 0 0 0=20 vlan1 - 192.168.11.0 hostname 2931863 - - 6448727 = - - -=20 vlan1 - fe80::%vlan11 fe80::92e2:baff:f 518679 - - = 4145688 - - -=20 vlan1 - 2001:470:e24c 2001:470:e24c:11 614377 - - 7638691 = - - -=20 vlan3 1500 <Link#14> 90:e2:ba:dd:ee:ff 179779 0 0 = 173578 0 0 0=20 vlan3 - 192.168.33.0/ hostname 12888 - - = 12311 - - -=20 vlan3 - fe80::%vlan33 fe80::92e2:baff:f 939 - - = 26025 - - -=20 vlan3 - 2001:470:e24c 2001:470:e24c:33: 2227 - - = 2915 - - -=20 Can someone check if this is still so in 13 or CURRENT, and/or let me = know if I=E2=80=99m doing something wrong? - Chris= --Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hello= folks. I just noticed something that I=E2=80=99m sure has been = true forever, but I checked and it=E2=80=99s still true on my = 12.3-STABLE system.<div class=3D""><br class=3D""></div><div class=3D"">In= the daily run output, I=E2=80=99m seeing the network interface names = truncated. This comes from netstat -I apparently only rendering = the first 5 characters of the interface name. Many of my systems = have `vlanNN` interfaces, but they show up as `vlanN` in netstat output. = Unfortautnely, I have all of vlan1, vlan3, vlan11, and vlan33 on = one of my systems (plus others). This makes it impossible to = identify which of the lines of output are which interface:</div><div = class=3D""><br class=3D""></div><div class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan0= 1500 <Link#7> = 90:e2:ba:</span> <span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">dd:ee:ff</span><span style=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D""> 7898136066 = 0 0 6455161338 = 0 0 = 0 </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan0 = - A.B.C.D/ pool-A.B.C.D 1172409474 = - - 780810867 = - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 1500 = <Link#8> 90:e2:ba:dd:ee:ff = 4317051938 0 0 = 4879301946 0 0 = 0 </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 = - fe80::%vlan1/ fe80::92e2:baff:f = 702196 - - = 4498316 - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 = - 2001:470:e24c hostname = 5966892 - = - 9302547 - = - - </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">vlan3 1500 <Link#9> = 90:e2:ba:</span><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">dd:ee:ff</span><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D""> 230398636 0 = 0 317573885 0 = 0 0 </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">vlan3 - fe80::%vlan3/ = fe80::92e2:baff:f 399612 - = - 4042723 - = - - </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">vlan3 - 2001:470:e24c = 2001:470:e24c:66 523819 - = - 7747524 - = - - </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><font= color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" = class=3D"">[=E2=80=A6]</span></font></div><div class=3D""><font = color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" = class=3D"">vlan1 1500 <Link#13> = 90:e2:ba:</span></font><span style=3D"caret-color:= rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">dd:ee:ff</span><font = color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" = class=3D""> 220678168 0 = 0 525414925 0 = 0 = 0 </span></font><br style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color:= rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 = - 192.168.11.0 </span><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">hostname</span><span style=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D""> = 2931863 - - = 6448727 - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 = - fe80::%vlan11 fe80::92e2:baff:f = 518679 - - = 4145688 - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan1 = - 2001:470:e24c 2001:470:e24c:11 614377 = - - 7638691 = - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan3 1500 = <Link#14> 90:e2:ba:</span><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">dd:ee:ff</span><span style=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D""> 179779 = 0 0 173578 = 0 0 = 0 </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">vlan3 = - 192.168.33.0/ </span><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">hostname</span><span style=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D""> = 12888 - - = 12311 - = - - </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">vlan3 - fe80::%vlan33 = fe80::92e2:baff:f 939 = - - = 26025 - = - - </span><br = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" = class=3D"">vlan3 - 2001:470:e24c = 2001:470:e24c:33: 2227 - = - 2915 = - - = - </span><br style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D""></div><div class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><br = class=3D""></span></div><div class=3D""><font color=3D"#000000" = class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" class=3D"">Can = someone check if this is still so in 13 or CURRENT, and/or let me know = if I=E2=80=99m doing something wrong?</span></font></div><div = class=3D""><font color=3D"#000000" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0);" class=3D""><br class=3D""></span></font></div><div = class=3D""><font color=3D"#000000" class=3D""><span style=3D"caret-color: = rgb(0, 0, 0);" class=3D""> = - Chris</span></font></div></body></html>= --Apple-Mail=_8D107338-0FD8-46BD-8E46-ED3DF4257F07--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F986B88D-4497-4290-9DE0-3387D734F5B9>