On Fri, Aug 5, 2011 at 11:32 AM, Dheeraj Gautam <[email protected]> wrote:
>>
>> What does ifconfig for your interface say?
>>
> Following the output of ifconfig on my system.
> 0=> bonded interface
> eth0 => physical interface
> eth1 => slave interface
>
> [admin@qa04 ~]# ifconfig 0
> 0 Link encap:Ethernet HWaddr 00:13:CC:01:91:3B
> inet addr:10.9.1.1 Bcast:10.9.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:699 errors:0 dropped:0 overruns:0 frame:0
> TX packets:14636 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:4096
> RX bytes:85716 (83.7 KiB) TX bytes:1814876 (1.7 MiB)
>
> [admin@qa04 ~]# ifconfig eth0
> eth0 Link encap:Ethernet HWaddr 00:21:5A:F6:CD:C4
> inet addr:10.157.42.157 Bcast:10.157.63.255 Mask:255.255.224.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:644117 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5534 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:4096
> RX bytes:80500670 (76.7 MiB) TX bytes:839843 (820.1 KiB)
> Interrupt:201 Memory:fd1f0000-fd200000
>
> [admin@qa04 ~]# ifconfig eth1
> eth1 Link encap:Ethernet HWaddr 00:13:CC:01:91:3B
> UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:4096
> RX bytes:0 (0.0 b) TX bytes:640 (640.0 b)
> Interrupt:209 Memory:fd2f0000-fd300000
Ah, that's right... linux doesn't mention the media speed in ifconfig like *BSD:
$ ifconfig re0
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric
0 mtu 1500
options=3899<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether e0:cb:4e:01:49:32
inet6 fe80::e2cb:4eff:fe01:4932%re0 prefixlen 64 scopeid 0x5
inet 192.168.20.2 netmask 0xffffff00 broadcast 192.168.20.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
A quick google search says that you need to use ethtool (
http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
), but there are other ways to determine the necessary details by
blasting ioctls, etc.
Cheers,
-Garrett
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users