LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Drop packet on eth1 (https://www.linuxquestions.org/questions/linux-newbie-8/drop-packet-on-eth1-685558/)

tbaror 11-23-2008 09:32 AM

Drop packet on eth1
 
Hello,

i am having drop packet appearing on eth1 status (Linux rPath) which is ISCSI adapter.
eth1 nic is intel GT 32bit adapter
Device Received Sent Err/Drop
lo 0.55 KB 0.55 KB 0/0
eth0 5.12 MB 7.43 MB 0/0
eth1 7.56 GB 10.08 GB 0/12091

i am suspecting that the auto negotiate is the one causing those drops, i am trying to set it "autoneg off" via ethtool with no successes, since i dont have much of Linux experience if i can get help for set it correctly \

Thanks

Code:

root@localhost ~]# ethtool -s eth1 speed 1000 duplex full autoneg off
Cannot set new settings: Invalid argument
  not setting speed
  not setting duplex
  not setting autoneg


dxqcanada 11-23-2008 09:49 AM

Hmm, I think that your system would be using the e1000 module.
You can pass parameters to the module to change the duplex:
Code:

    * modprobe e1000 AutoNeg=0x01 (Restricts autonegotiation to 10 Half)
    * modprobe e1000 AutoNeg=1 (Same as above)
    * modprobe e1000 AutoNeg=0x02 (Restricts autonegotiation to 10 Full)
    * modprobe e1000 AutoNeg=0x03 (Restricts autonegotiation to 10 Half or 10 Full)
    * modprobe e1000 AutoNeg=0x04 (Restricts autonegotiation to 100 Half)
    * modprobe e1000 AutoNeg=0x05 (Restricts autonegotiation to 10 Half or 100 Half)
    * modprobe e1000 AutoNeg=0x020 (Restricts autonegotiation to 1000 Full)
    * modprobe e1000 AutoNeg=32 (Same as above)

You should be able to add one of these parameters in your modprobe.conf or modules.conf

MensaWater 11-23-2008 09:55 AM

Your command is syntactically correct.

It is telling you it can't set this interface the way you've requested. I was under the impression that GigE ethernet had to use autonegotiate using the full speed (1000).

Are you sure this is a GigE network card? It may simply be that the card you're using doesn't support speed 1000.

Run "ethtool eth1" and check the output. It should show you which modes are supported.

tbaror 11-23-2008 10:11 AM

Hi
first in which path i can find modprobe.conf or modules.conf

second this result of ethtool eth1
thanks

ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes

dxqcanada 11-23-2008 10:21 AM

Depending on your system ... /etc

Though on some distributions the /etc/modprobe.d/ or /etc/modules.d/ directory is used to hold special files to set module parameters.

I am assuming your ethernet driver is modular, and that it is the e1000 module.
You can verify this by checking with lsmod.
Then you can unload the module and load it with the parameter you want just to test.
Code:

# rmmod e1000
# modprobe e1000 AutoNeg=32

Then see what results.


All times are GMT -5. The time now is 06:04 PM.