Is there a way to determine the supported interface speed of a particular driver? If I have a gigabit ethernet device connected to a 100baseTX switch, how can I determine the interface supports gigabit ethernet? I have tried parsing the following. Is there a cleaner way to do this? sysctl -A | grep phy | grep desc
On Wed, Oct 17, 2007 at 07:03:22PM -0400, David Yeske wrote:> Is there a way to determine the supported interface speed of a > particular driver? If I have a gigabit ethernet device connected to a > 100baseTX switch, how can I determine the interface supports gigabit > ethernet? I have tried parsing the following. Is there a cleaner way > to do this? > > sysctl -A | grep phy | grep desc'ifconfig -m' might be what you are looking for. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Hi, David-- On Oct 17, 2007, at 4:03 PM, David Yeske wrote:> Is there a way to determine the supported interface speed of a > particular driver? If I have a gigabit ethernet device connected to a > 100baseTX switch, how can I determine the interface supports gigabit > ethernet? I have tried parsing the following. Is there a cleaner way > to do this?Perhaps you want the "ifconfig -m _interface_" command, as in: # ifconfig -m bge0 bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING> capability list: =1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:b0:d0:e1:92:a1 media: Ethernet autoselect (none) status: no carrier supported media: media autoselect media 1000baseTX mediaopt full-duplex media 1000baseTX media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media none -- -Chuck
> From: "David Yeske" <dyeske@gmail.com> > > Is there a way to determine the supported interface speed of a > particular driver? If I have a gigabit ethernet device connected to a > 100baseTX switch, how can I determine the interface supports gigabit > ethernet? I have tried parsing the following. Is there a cleaner way > to do this? > > sysctl -A | grep phy | grep descI think using that line you're only checking what kind of phy device you have. If it is connected to a 100baseTX switch, it must be using 100baseTX. For controlling and querying the media type that you're actually using, you can use ifconfig media parameter. The actual value that this parameter accepts are device dependent but in practice quite standard like 100baseTX or 1000baseTX. say, ifconfig | grep media: Greetings, Miguel