On Sun, 07 Apr 2002 14:27:35 +0200, Allan Olesen wrote:
>> Giver /sbin/ifconfig noget du kan bruge?
> Her skal det bemærkes, at ifconfig ofte kun oplyser pakkeantal.
On Sun, 7 Apr 2002 14:32:21 +0200, Rune Klausen wrote:
> Hvis man kan omregne pakkerne til bytes på en eller anden måde så
> gør det :)
Åh - ifconfig i Debian/unstable giver også bytes og desuden
menneskevenlige tal, deraf mit forslag:
virgil
$ /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:D0:B7:0B:F0:06
inet addr:192.168.0.110 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27304 errors:0 dropped:0 overruns:0 frame:0
TX packets:26719 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:11834739 (11.2 MiB) TX bytes:3051521 (2.9 MiB)
Interrupt:10 Base address:0x6000
virgil
$ dpkg -s `dpkg -S /sbin/ifconfig | cut -d: -f1`
Package: net-tools
Status: install ok installed
Priority: important
Section: net
Installed-Size: 608
Maintainer: Bernd Eckenfels <ecki@debian.org>
Version: 1.60-4
Replaces: netbase (<< 4.00)
Depends: libc6 (>= 2.2.4-4)
Description: The NET-3 networking toolkit
This package includes the important tools for controlling the network
subsystem of the Linux kernel. This includes arp, ifconfig, netstat,
rarp, nameif and route. Additionally, this package contains utilities
relating to particular network hardware types (plipconfig, slattach) and
advanced aspects of IP configuration (iptunnel, ipmaddr).
.
In the upstream package 'hostname' and friends are included. Those are
not installed by this package, since there is a special "hostname*.deb".
virgil
$
Mvh.
--
"Ett, två, tre, pang på rödbetan." Adam Sjøgren
asjo@koldfront.dk