In earlier versions 'mii-tool' would iterate over interfaces and show which have link up. In 6.x it wants an interface as a parameter. What is the appropriate way to find which of some number of of interfaces are connected? Better yet, what is the least typing to get the mac addresses of those interfaces? -- Les Mikesell lesmikesell at gmail.com
Les Mikesell wrote:> In earlier versions 'mii-tool' would iterate over interfaces and show > which have link up. In 6.x it wants an interface as a parameter. > What is the appropriate way to find which of some number of of > interfaces are connected? Better yet, what is the least typing to > get the mac addresses of those interfaces?ethtool, or even lshw. mark
On 12/15/2011 12:45 PM, Les Mikesell wrote:> In earlier versions 'mii-tool' would iterate over interfaces and show > which have link up. In 6.x it wants an interface as a parameter. > What is the appropriate way to find which of some number of of > interfaces are connected? Better yet, what is the least typing to > get the mac addresses of those interfaces/sbin/ip link ls -- Benjamin Franz
On Dec 15, 2011, at 3:45 PM, Les Mikesell <lesmikesell at gmail.com> wrote:> In earlier versions 'mii-tool' would iterate over interfaces and show > which have link up. In 6.x it wants an interface as a parameter. > What is the appropriate way to find which of some number of of > interfaces are connected? Better yet, what is the least typing to > get the mac addresses of those interfaces?In 5 an 'ifconfig' without parameters would only list up interfaces and one would have to do an 'ifconfig -a' to see all interfaces. Maybe still true in 6? -Ross