Portál AbcLinuxu, 10. května 2025 08:49

Dotaz: TX packets errors

23.5.2011 15:11 dusan456 | skóre: 12 | Poprad
TX packets errors
Přečteno: 301×
Odpovědět | Admin
Zdravím,

mám problém, že stále narastajú TX errors na jednom našom servry. Neviete prosím poradiť, čo by to mohlo spôsobovať?

Kábel bol najprv napojený na eth0, tak som skúsil ho napojiť na eth1, ale problém pretrváva naďalej.
# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:11:16:32:13:cc  
          --
          --
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:996905 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1001818 errors:24 dropped:0 overruns:0 carrier:0
          collisions:69999 txqueuelen:1000 
          RX bytes:109704274 (104.6 MiB)  TX bytes:811574963 (773.9 MiB)
          Interrupt:17 

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:10665 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10665 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1038904 (1014.5 KiB)  TX bytes:1038904 (1014.5 KiB)
Ďakujem

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Medved09 avatar 23.5.2011 16:18 Medved09 | skóre: 26 | Havlíčkův Brod / Brno
Rozbalit Rozbalit vše Re: TX packets errors
Odpovědět | | Sbalit | Link | Blokovat | Admin
Taky tam je vetsi mnozstvi kolizi - podle me se vase sitova karta a switch nedomluvili na rychlosti a/nebo duplexu. Co pise ethtool ?
Fordem tam, vlakem zpátky :-)
23.5.2011 17:04 dusan456 | skóre: 12 | Poprad
Rozbalit Rozbalit vše Re: TX packets errors
# ethtool eth1
Settings for eth1:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised auto-negotiation: Yes
	Speed: 100Mb/s
	Duplex: Half
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: g
	Wake-on: d
	Current message level: 0x000000ff (255)
	Link detected: yes
23.5.2011 19:02 tomk
Rozbalit Rozbalit vše Re: TX packets errors
To je ten samy stroj jako v dotazu server - restart pripojenia k internetu? V kazdem pripade plati to co jsem psal tam. Sit je potreba mit nastavenou ve shode s druhou stranou dratu. Je lepsi se domluvit, jestli maji zapnutou autodetekci a pokud ne, jake parametry maji byt. 100Mbps s half duplexem mi neprijde prilis obvykle.

Tomas
23.5.2011 21:16 dusan456 | skóre: 12 | Poprad
Rozbalit Rozbalit vše Re: TX packets errors
Áno, je to ten istý stroj.

Na tom druhom stroji je všetko vporiadku a tam je duplex: full

Chcel som to takto nastaviť aj u tohto:
ifdown eth1;
/usr/sbin/ethtool -s eth1 speed 100 duplex full;
ifup eth1;
ale nedá sa mi to zmeniť a ostáva stále half.

BigWrigley avatar 24.5.2011 21:52 BigWrigley | skóre: 33
Rozbalit Rozbalit vše Re: TX packets errors
Musite nejdriv vypnout autonegociaci:
ethtool eth1 autoneg off
a az potom
ethtool -s eth1 speed 100 duplex full
Kazopadne bych se primlouval za autonegociaci na obou stranach. Za pul roku na to zapomenete a budete to resit znova, az to pripojite nekam jinam.
Linux is like a wigwam - no windows, no gates and Apache inside.
25.5.2011 09:28 dusan456 | skóre: 12 | Poprad
Rozbalit Rozbalit vše Re: TX packets errors
Ďakujem, presne tak som to nakoniec urobil. Už nie sú žiadné chybné pakety, vyzerá to byť už v poriadku. Ďakujem všetkým za pomoc.
23.5.2011 17:25 dusan456 | skóre: 12 | Poprad
Rozbalit Rozbalit vše Re: TX packets errors
Pozerám aj, že RX a TX je off, nemalo by to byť on?
# ethtool -a eth1
Pause parameters for eth1:
Autonegotiate:	on
RX:		off
TX:		off
--
# ethtool -S eth1
NIC statistics:
     rx_octets: 197409725
     rx_fragments: 0
     rx_ucast_packets: 1792709
     rx_mcast_packets: 0
     rx_bcast_packets: 7835
     rx_fcs_errors: 0
     rx_align_errors: 0
     rx_xon_pause_rcvd: 0
     rx_xoff_pause_rcvd: 0
     rx_mac_ctrl_rcvd: 0
     rx_xoff_entered: 0
     rx_frame_too_long_errors: 0
     rx_jabbers: 0
     rx_undersize_packets: 0
     rx_in_length_errors: 0
     rx_out_length_errors: 0
     rx_64_or_less_octet_packets: 0
     rx_65_to_127_octet_packets: 0
     rx_128_to_255_octet_packets: 0
     rx_256_to_511_octet_packets: 0
     rx_512_to_1023_octet_packets: 0
     rx_1024_to_1522_octet_packets: 0
     rx_1523_to_2047_octet_packets: 0
     rx_2048_to_4095_octet_packets: 0
     rx_4096_to_8191_octet_packets: 0
     rx_8192_to_9022_octet_packets: 0
     tx_octets: 1485312504
     tx_collisions: 127184
     tx_xon_sent: 0
     tx_xoff_sent: 0
     tx_flow_control: 0
     tx_mac_errors: 46
     tx_single_collisions: 8574
     tx_mult_collisions: 884
     tx_deferred: 5283
     tx_excessive_collisions: 0
     tx_late_collisions: 115316
     tx_collide_2times: 0
     tx_collide_3times: 0
     tx_collide_4times: 0
     tx_collide_5times: 0
     tx_collide_6times: 0
     tx_collide_7times: 0
     tx_collide_8times: 0
     tx_collide_9times: 0
     tx_collide_10times: 0
     tx_collide_11times: 0
     tx_collide_12times: 0
     tx_collide_13times: 0
     tx_collide_14times: 0
     tx_collide_15times: 0
     tx_ucast_packets: 1814144
     tx_mcast_packets: 6
     tx_bcast_packets: 2
     tx_carrier_sense_errors: 0
     tx_discards: 0
     tx_errors: 0
     dma_writeq_full: 0
     dma_write_prioq_full: 0
     rxbds_empty: 0
     rx_discards: 0
     rx_errors: 0
     rx_threshold_hit: 0
     dma_readq_full: 0
     dma_read_prioq_full: 0
     tx_comp_queue_full: 0
     ring_set_send_prod_index: 0
     ring_status_update: 0
     nic_irqs: 0
     nic_avoided_irqs: 0
     nic_tx_threshold_hit: 0

23.5.2011 23:05 NN
Rozbalit Rozbalit vše Re: TX packets errors
Podival bych take, jak je to nastavene na tom portu switche..

NN

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.