OPNsense Forum

English Forums => Hardware and Performance => Topic started by: phoenix on June 06, 2016, 07:25:56 pm

Title: Do I have a Realtek NIC Problem? Plus a WiFi NIC question.
Post by: phoenix on June 06, 2016, 07:25:56 pm
I've recently moved from running OPNsense in a VM to a piece of real hardware. This is an Intel 4560U dual core processor with two Realtek NICs on the motherboard, they are listed as follows:

Code: [Select]
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xf0104000-0xf0104fff,0xf0100000-0xf0103fff irq 18 at device 0.0 on pci2
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x2c800000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:e0:4c:68:07:0f
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib3: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
pci3: <ACPI PCI bus> on pcib3

re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xf0004000-0xf0004fff,0xf0000000-0xf0003fff irq 19 at device 0.0 on pci3
re1: Using 1 MSI-X message
re1: ASPM disabled
re1: Chip rev. 0x2c800000
re1: MAC rev. 0x00100000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 00:e0:4c:68:07:10
re1: netmap queues/slots: TX 1/256, RX
The problem that I'm having is that the NIC listed as re1 (my LAN NIC) is that the Amber light shows correctly as a Gigabit connection but the other Green LED is not lit at all - I do, however, have an internet connection for my LAN through this gateway. I seem to be having problems with the connection remaining 'up' all the time. There are periods when the upload/download speed drops considerably (down to 20-30 bytes/sec) and after a few (or sometimes longer) minutes it recovers to it's normal speed. I also sync my phone's email client with a mail server on the LAN and that connection frequently appears to be dead (it's a Zimbra mail server with an activesync connection from the phone). Doing a port test at these times shows that the port is apparently closed and again, it will pick up after some period of time.

The interesting thing is that when the PC boots the Green LED on the WAN & LAN ports will show green as OPNsense goes through it's boot routine, when it settles down to it's normal state with the Web UI available the LAN Green LED is always off. It also doesn't matter if I swap the WAN & LAN ports around, the LAN connection always shows  the Green LED as off whichever ports I plug it into. Just as a test I tried this with an OpenSUSE 42.1 install and both NICs worked correctly with the Green LEDs lit on both ports.

Is there anything I can do to debug this further to find the culprit for this problem?

I also have an Intel WiFi Link 5100 card in this machine, is that fully supported in FreeBSD? Despite being activated in the BIOS and the OPNsense Web UI, it still shows as "no carrier" in the output of ifconfig - relevant output (I hope) is this:

Code: [Select]
iwn0@pci0:4:0:0:        class=0x028000 card=0x12018086 chip=0x42328086 rev=0x00 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'WiFi Link 5100'
    class      = network
    bar   [10] = type Memory, range 64, base 0xf7c00000, size 8192, enabled
    cap 01[c8] = powerspec 3  supports D0 D3  current D0
    cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[e0] = PCI-Express 1 endpoint max data 128(128) FLR link x1(x1)
                 speed 2.5(2.5) ASPM L0s/L1(L0s/L1)
    ecap 0001[100] = AER 1 0 fatal 0 non-fatal 2 corrected
    ecap 0003[140] = Serial 1 001e7effff5e8e52

iwn0_wlan1: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:1e:7e:5e:8e:52
        inet6 fe80::21e:7eff:fe5e:8e52%iwn0_wlan1 prefixlen 64 scopeid 0x8
        inet 192.168.1.59 netmask 0xffffffff broadcast 192.168.1.59
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
        status: no carrier
        ssid phoenix2 channel 12 (2467 MHz 11g ht/20)
        regdomain ETSI country FR authmode WPA1+WPA2/802.11i privacy MIXED
        deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 bgscan bgscanintvl 300
        bgscanidle 250 roam:rssi 7 roam:rate 64 protmode OFF ampdulimit 8k
        -amsdutx amsdurx shortgi roaming MANUAL
Title: Re: Do I have a Realtek NIC Problem? Plus a WiFi NIC question.
Post by: fabian on June 06, 2016, 08:59:48 pm
Topic moved as requested.

Kind regards,

Fabian
Title: Re: Do I have a Realtek NIC Problem? Plus a WiFi NIC question.
Post by: phoenix on June 06, 2016, 09:07:18 pm
Thank you. :)