Solved Problem 1000baseT speed on em driver

Hi to all. I have problem on Freebsd9.3Release(x64)FreeBSD 9.3-RELEASE (x64) with network card
Code:
em0@pci0:2:0:0: class=0x020000 card=0x202c8086 chip=0x10d38086 rev=0x00 hdr=0x00
  vendor  = 'Intel Corporation'
  device  = '82574L Gigabit Network Connection'
  class  = network
  subclass  = ethernet
  bar  [10] = type Memory, range 32, base 0xd0120000, size 131072, enabled
  bar  [14] = type Memory, range 32, base 0xd0100000, size 131072, enabled
  bar  [18] = type I/O Port, range 32, base 0x2000, size 32, enabled
  bar  [1c] = type Memory, range 32, base 0xd0140000, size 16384, enabled
  cap 01[c8] = powerspec 2  supports D0 D3  current D0
  cap 05[d0] = MSI supports 1 message, 64 bit
  cap 10[e0] = PCI-Express 1 endpoint max data 128(256) link x1(x1)
  speed 2.5(2.5) ASPM disabled(L0s/L1)
  cap 11[a0] = MSI-X supports 5 messages in map 0x1c enabled
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
ecap 0003[140] = Serial 1 00224dffff9e5033
  PCI-e errors = Correctable Error Detected
  Unsupported Request Detected
  Corrected = Advisory Non-Fatal Error

This not work 1000baseT speed in media autoselect on the gigabit switch, but
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
  ether 00:22:4d:9e:50:33
  inet 10.144.40.2 netmask 0xffffff00 broadcast 10.144.40.255
  media: Ethernet autoselect (100baseTX <full-duplex>)
  status: active
If manually:
# ifconfig em0 media 1000baseT mediaopt full-duplex ------>>>>> status: no carier !!!
------------
Code:
root@freebsd:/usr/home/andrian # ifconfig -m
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
  capabilities=5399b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO>
  ether 00:22:4d:9e:50:33
  inet 10.144.40.2 netmask 0xffffff00 broadcast 10.144.40.255
  media: Ethernet autoselect (100baseTX <full-duplex>)
  status: active
  supported media:
  media autoselect
  media 1000baseT
  media 1000baseT mediaopt full-duplex
  media 100baseTX mediaopt full-duplex
  media 100baseTX
  media 10baseT/UTP mediaopt full-duplex
  media 10baseT/UTP
Previously worked (1000baseT), just noticed (100baseTX), why? please help me...
 
  • Thanks
Reactions: Oko
Make sure you have a proper cable too. If the cable is just a little bit wonky it may not negotiate on 1000baseT.
 
On the other side is D-link Gigabit switch unmanageable.
That doesn't sound like a real Gigabit switch. D-link makes household items not real switches. Can you put something Cisco, Juniper or at least HP. I have em0 on most Free servers in my lab and I have never seen that. I also have FreeBSD running on 10 Gigabit gear as expected.
 
On the other side is D-link Gigabit switch unmanageable.
If it is an unmanaged switch it should just auto negotiate and work.

Make sure you have a proper cable too. If the cable is just a little bit wonky it may not negotiate on 1000baseT.
This is a good possibility. 100-BaseTX just uses the orange and green pairs (wires 1,2,3,6) for transmit and receive. 1000-BaseT uses all 4 pairs. Check it with a cable tester if you can. Swap it out and try again if you can't.
 
D-link Gigabit switch unmanageable

A good description of D-Link stuff in general, although I must admit that I've seen their cheap gigabit switches work fine. And it's not just which pairs of wires that are connected. Gigabit requires at least Cat 5 wiring. The longer the cable run, the more picky it will be.
 
If it is an unmanaged switch it should just auto negotiate and work.


This is a good possibility. 100-BaseTX just uses the orange and green pairs (wires 1,2,3,6) for transmit and receive. 1000-BaseT uses all 4 pairs. Check it with a cable tester if you can. Swap it out and try again if you can't.
Cable is work in the Windows netbook (1000baseT) and on D-link switch blink green link (1000baseT).
 
Oko
Honestly, this is just ignorance on your part.
Small unmanaged switches usually do fine, I've used a few by TP-Link which works fine for what it is. It's not datacenter grade but they do work fine on small networks). That said, if you just have a flat network there's little reason to get a managed switch as you probably wont need it/don't know how to use it anyways. If going for a HP or whatever for an unmanaged switch is just wasting your money. You'll be much better with Zyxel's GS1910/GS1920-series which are about as expensive but offers much more functionality (I'd even recommend these over HP's 1810 and 1910-series) and fanless. I've deployed several in office networks they are very nice in that regard.

wblock@
You should have at least CAT5e, CAT5 (non e) might work but it's not in spec.
D-Link does a few nice products however, these go on sale for ~60$ from time to time here and they're a great deal. https://wikidevi.com/wiki/D-Link_DIR-860L_rev_B1
Runs OpenWRT great (wifi needs work however) but given the price I won't complain at all, these work as office firewalls and VPN gateways. Unfortunately there's no *BSD support for the Mediatek SoCs afaik.

andrian
Try another cable (CAT5e, CAT6) and another port if possible.
loader.conf and sysctl.conf won't affect this.
//Danne
 
//Danne
I try another cable and another port on the switch - it is not work 1000baseT, but my Windows notebook is work speed 1000baseT.
 
Oko
Honestly, this is just ignorance on your part.
Small unmanaged switches usually do fine, I've used a few by TP-Link which works fine for what it is. It's not datacenter grade but they do work fine on small networks). That said, if you just have a flat network there's little reason to get a managed switch as you probably wont need it/don't know how to use it anyways. If going for a HP or whatever for an unmanaged switch is just wasting your money. You'll be much better with Zyxel's GS1910/GS1920-series which are about as expensive but offers much more functionality (I'd even recommend these over HP's 1810 and 1910-series) and fanless. I've deployed several in office networks they are very nice in that regard.
I like HP's 1810 and 1910 a lot. I was not recommending layer 3 or 4 switches. I just don't like the quality of D-Link hardware.
 
andrian
Does this computer/laptop link at Gbit (auto) if you try lets say the Ubuntu LiveCD?

Oko
Being a brand fan-boy is your loss in the long run, all brands have good and bad products. I'm very happy with the D-Link DIR-860L B1 for instance, Zyxel have very nice switches but their routers are so-so etc. HP have poor consumer laptops but their business line is decent (Intel platforms at least) and so on.
//Danne
 
Just throwing this out there. Bypass the switch altogether and use a CAT5e/CAT6 crossover cable for a point-to-point connection and see you can get the appropriate speeds. This way, you can rule out the switch as the problem. Make sure you are using either the T568A or T568B wiring schemes if you are making up your own cables. It seems obvious, but over the years, I've seen my share of made-up wiring schemes (typically by either by electricians without telcom experience or that one person that knows Excel better than everyone else) that "just work" initially, but after years up network upgrades, can't keep up.
 
Just throwing this out there. Bypass the switch altogether and use a CAT5e/CAT6 crossover cable for a point-to-point connection and see you can get the appropriate speeds. This way, you can rule out the switch as the problem. Make sure you are using either the T568A or T568B wiring schemes if you are making up your own cables. It seems obvious, but over the years, I've seen my share of made-up wiring schemes (typically by either by electricians without telcom experience or that one person that knows Excel better than everyone else) that "just work" initially, but after years up network upgrades, can't keep up.

As for the crossover cable - very good advice. I have two network interfaces on the motherboard, they can also check?
 
The problem is still a mystery, I replaced this problematic switch to another of the same model and o wonder - 1000baseT
Code:
root@freebsd:/usr/home/andrian # ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
  ether 00:22:4d:9e:50:33
  inet 10.144.40.2 netmask 0xffffff00 broadcast 10.144.40.255
  media: Ethernet autoselect (1000baseT <full-duplex>)
  status: active
connecting back to the troubled switch 100baseTX, but this problematic switch with other hosts running 1000baseT.
В моїй країні Україна кажуть - містика (In my country Ukraine people say - mystery). Thank all.
 
Back
Top