/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
2x3c905C NICs- underlige tal på trafik
Fra : rene


Dato : 25-04-01 13:15

Hej NG :)

Vi fik for et stykke tid siden fat på et lille script til MRTG, der kunne
vise os hvor meget trafik der løber gennem vores gateway (uden brug af
snmpd .. lækkert)
Scriptet læser fra /proc/net/dev

Det sjove er, at vi i stort set hele den tid vi har kørt med det (og før
det med snmpd) har obsereveret noget ret underligt mht. mngden af trafik
der kommer gennem netkortene.

Se selv her:
http://62.242.138.6/~rene/mrtg_tmp/ (perioden fra 8->12 dags dato viser
det helt tydeligt)

Det ser ud som om der kommer dobbelt så meget ind på det eksterne ben som
der kommer ud af det interne ben.
Tidligere havde vi to RT8139-baserede kort i maskinen, og der var
problemet det samme. Vi er så nu begyndt at spekulere på om det kunne
være en funktion i kernen der evt. sender forkerte oplysninger til
/proc/net/dev

Maskinen er netop i dag blevet opgraderet fra kerne 2.4.0-ac12 til 2.4.3
uden nogen ændring i logning af trafik.

Maskinen kører redHat6.2 med opgraderede utils som nævnt i Changes til
kernen)
Der kører en transperant proxy på maskinen (squid). Vi anvender iptables
til at forwarde net (og redirecte port 80 trafik til proxy'en på samme
maskine)


vis nogen mener at de gerne vil se vores iptables-script skal de bare
sige til .. det samme hvis anden info ønskes :)

på forhånd tak
/René



diverse dumps:


dmesg - net-delen:

PCI: Found IRQ 10 for device 00:09.0
3c59x.c:LK1.1.12 06 Jan 2000 Donald Becker and others. http://www.scyld.com/network/vortex.html $Revision: 1.102.2.46 $
See Documentation/networking/vortex.txt
eth0: 3Com PCI 3c905C Tornado at 0xe800, 00:01:02:f7:2c:64, IRQ 10
product code 'ER' rev 00.13 date 11-27-00
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 24, status 782d.
Enabling bus-master transmits and whole-frame receives.
PCI: Found IRQ 11 for device 00:0b.0
eth1: 3Com PCI 3c905C Tornado at 0xec00, 00:01:02:f7:2c:6c, IRQ 11
product code 'ER' rev 00.13 date 11-27-00
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
MII transceiver found at address 24, status 782d.
Enabling bus-master transmits and whole-frame receives.
eth0: using NWAY autonegotiation
eth1: using NWAY autonegotiation



[root@herakles /root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:F7:2C:64
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3735 errors:0 dropped:0 overruns:1 frame:0
TX packets:5249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xe800

eth1 Link encap:Ethernet HWaddr 00:01:02:F7:2C:6C
inet addr:62.242.138.6 Bcast:62.242.138.7 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4343 errors:0 dropped:0 overruns:0 frame:0
TX packets:3029 errors:0 dropped:0 overruns:0 carrier:0
collisions:11 txqueuelen:100
Interrupt:11 Base address:0xec00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16192 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0


[root@herakles /root]# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
03c0-03df : vga+
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
d000-dfff : PCI Bus #01
d000-d0ff : ATI Technologies Inc 3D Rage IIC AGP
e000-e00f : VIA Technologies, Inc. Bus Master IDE
e000-e007 : ide0
e800-e87f : 3Com Corporation 3c905C-TX [Fast Etherlink]
e800-e87f : eth0
ec00-ec7f : 3Com Corporation 3c905C-TX [Fast Etherlink] (#2)
ec00-ec7f : eth1



[root@herakles /root]# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT82C597 [Apollo VP3] (rev 4).
Master Capable. Latency=16.
Prefetchable 32 bit memory at 0xe0000000 [0xe3ffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] (rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 7, function 0:
ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 35).
Bus 0, device 7, function 1:
IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 16).
Master Capable. Latency=64.
I/O at 0xe000 [0xe00f].
Bus 0, device 7, function 3:
Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 48).
Bus 0, device 9, function 0:
Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 116).
IRQ 10.
Master Capable. Latency=64. Min Gnt=10.Max Lat=10.
I/O at 0xe800 [0xe87f].
Non-prefetchable 32 bit memory at 0xe9001000 [0xe900107f].
Bus 0, device 11, function 0:
Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (#2) (rev 116).
IRQ 11.
Master Capable. Latency=64. Min Gnt=10.Max Lat=10.

I/O at 0xe800 [0xe87f].
Non-prefetchable 32 bit memory at 0xe9001000 [0xe900107f].
Bus 0, device 11, function 0:
Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (#2) (rev 116).
IRQ 11.
Master Capable. Latency=64. Min Gnt=10.Max Lat=10.
I/O at 0xec00 [0xec7f].
Non-prefetchable 32 bit memory at 0xe9000000 [0xe900007f].
Bus 1, device 0, function 0:
VGA compatible controller: ATI Technologies Inc 3D Rage IIC AGP (rev 122).
IRQ 15.
Master Capable. Latency=64. Min Gnt=8.
Prefetchable 32 bit memory at 0xe6000000 [0xe6ffffff].
I/O at 0xd000 [0xd0ff].
Non-prefetchable 32 bit memory at 0xe5000000 [0xe5000fff].



lspci -vx:

00:00.0 Host bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3] (rev 04)
Flags: bus master, medium devsel, latency 16
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 1.0
00: 06 11 98 05 06 00 90 82 04 00 00 06 00 10 00 00
10: 08 00 00 e0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 a0 00 00 00 00 00 00 00 00 00 00 00

00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3 AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e4000000-e5ffffff
Prefetchable memory behind bridge: e6000000-e6ffffff
00: 06 11 98 85 07 00 20 22 00 00 04 06 00 00 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 d0 d0 00 00
20: 00 e4 f0 e5 00 e6 f0 e6 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Apollo PRO] (rev 23)
Subsystem: VIA Technologies, Inc.: Unknown device 0000
Flags: bus master, stepping, medium devsel, latency 0
00: 06 11 96 05 8f 00 00 02 23 00 01 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 06 11 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:07.1 IDE interface: VIA Technologies, Inc. VT82C586 IDE [Apollo] (rev 10) (prog-if 8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 64
I/O ports at e000 [size=16]
Capabilities: [c0] Power Management version 2
00: 06 11 71 05 07 00 90 02 10 8a 01 01 00 40 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 01 e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 00 00

00:07.3 Host bridge: VIA Technologies, Inc.: Unknown device 3050 (rev 30)
Flags: medium devsel
00: 06 11 50 30 00 00 80 02 30 00 00 06 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:09.0 Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 74)
Subsystem: 3Com Corporation: Unknown device 1000
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at e800 [size=128]
Memory at e9001000 (32-bit, non-prefetchable) [size=128]
Expansion ROM at e7000000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
00: b7 10 00 92 07 00 10 02 74 00 00 02 08 40 00 00
10: 01 e8 00 00 00 10 00 e9 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 b7 10 00 10
30: 00 00 00 e7 dc 00 00 00 00 00 00 00 0a 01 0a 0a

00:0b.0 Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 74)
Subsystem: 3Com Corporation: Unknown device 1000
Flags: bus master, medium devsel, latency 64, IRQ 11
I/O ports at ec00 [size=128]
Memory at e9000000 (32-bit, non-prefetchable) [size=128]
Expansion ROM at e8000000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
00: b7 10 00 92 07 00 10 02 74 00 00 02 08 40 00 00
10: 01 ec 00 00 00 00 00 e9 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 b7 10 00 10
30: 00 00 00 e8 dc 00 00 00 00 00 00 00 0b 01 0a 0a

01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage IIC AGP (rev 7a) (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc: Unknown device 0084
Flags: bus master, stepping, medium devsel, latency 64, IRQ 15
Memory at e6000000 (32-bit, prefetchable) [size=16M]
I/O ports at d000 [size=256]
Memory at e5000000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at <unassigned> [disabled] [size=128K]
Capabilities: [5c] Power Management version 1
00: 02 10 5a 47 87 00 90 02 7a 00 00 03 08 40 00 00
10: 08 00 00 e6 01 d0 00 00 00 00 00 e5 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 02 10 84 00
30: 00 00 00 00 5c 00 00 00 00 00 00 00 0f 01 08 00

 
 
Søg
Reklame
Statistik
Spørgsmål : 177513
Tips : 31968
Nyheder : 719565
Indlæg : 6408605
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste