I can sure one thing obviously. The information getting from 'ifconfg' is related to 'cat /proc/net/dev'.
For Example,
#cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
imq0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
imq1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
imq2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
eth0:50768275 51792 0 0 0 0 0 0 418280 77908 0 0 0 0 0 0
eth1:92372765 78651 0 0 0 0 0 0 25581 51484 0 0 0 0 0 0
br0: 52345 565 0 0 0 0 0 1 417158 768 0 0 0 0 0 0
#ifconfig
/proc/3695/net # ifconfig
br0 Link encap:Ethernet HWaddr 00:30:AB:00:00:01
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::230:abff:fe00:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:565 errors:0 dropped:0 overruns:0 frame:0
TX packets:768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:52345 (51.1 KiB) TX bytes:417158 (407.3 KiB)
eth0 Link encap:Ethernet HWaddr 00:30:AB:00:00:01
inet6 addr: fe80::230:abff:fe00:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51792 errors:0 dropped:0 overruns:0 frame:0
TX packets:77908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50768275 (48.4 MiB) TX bytes:418280 (408.4 KiB)
eth1 Link encap:Ethernet HWaddr 00:30:AB:00:00:02
inet addr:192.37.73.192 Bcast:192.37.73.255 Mask:255.255.255.0
inet6 addr: fe80::230:abff:fe00:2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78651 errors:0 dropped:0 overruns:0 frame:0
TX packets:51484 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92373618 (88.0 MiB) TX bytes:25581 (24.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
No comments:
Post a Comment