Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 01:09:40 -0400
From:      Steve Bertrand <steve@ibctech.ca>
To:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   #netstat -rn output 
Message-ID:  <49C86B14.1090905@ibctech.ca>

next in thread | raw e-mail | index | archive | help
Hi all,

I don't know if this belongs here or not, but here it is anyway.

I'm in the middle of troubleshooting why two sub-interfaces on two
FreeBSD boxes (directly connected via XO cable) within a /30 can't
communicate, and I found that output when doing ``netstat'' is carved at
a char length for interface name.

Can the Netif column be expanded via the command line? If not, could
someone let me know where the format is declared, so I might have a
crack at forging it a bit? (I need to see 7 chars, not 6. ie: em3.30N):

pe-test-4# netstat -rn | grep 208.70.111
Destination        Gateway            Flags    Refs      Use  Netif
142.46.193.0/24    208.70.111.66      UG1         0    95133    em6
172.16.104.2       208.70.111.66      UGH1        0    16184    em6
172.16.104.3       208.70.111.54      UGH1        0    11745 em3.30
172.16.104.99      208.70.111.62      UGH1        0     1171 em1.99
208.70.107.0/25    208.70.111.54      UG1         0 28066384 em3.30

Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49C86B14.1090905>