TP-Link TG-3468: random state

Hi All!
I use External PCI-Express network card: TP-Link TG-3468 v2 Gigabit Ethernet
on FreeBSD 11.4-RELEASE-p3.

/var/run/dmesg.boot
Code:
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xf7200000-0xf7200fff,0xf0000000-0xf0003fff irq 18 at device 0.0 on pci1
re0: Using 1 MSI-X message
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00200000
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 7c:8b:ca:01:a6:eb

pciconf -lv
Code:
re0@pci0:1:0:0: class=0x020000 card=0x34687470 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet

I noticed a strange behavior:
ifconfig re0
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 7c:8b:ca:01:a6:eb
        hwaddr 7c:8b:ca:01:a6:eb
        inet 10.30.0.1 netmask 0xffffff00 broadcast 10.30.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

Status active, but network traffic is empty!
One startup - network Ok, other startup - Bad and so on randomly.

I use arp and tcpdump for analysis.

I assume that the network interface is in the down status when it is first enabled.
Because if you do:
ifconfig re0 down
ifconfig re0 up

then the network card "comes to life".

I want to understand this random behavior.
And exclude this behavior.
We need stability.

Thank you all!
 

Attachments

  • photo_2020-10-09_10-06-17.jpg
    photo_2020-10-09_10-06-17.jpg
    151 KB · Views: 225
This question suggested ..
/etc/rc.conf:
ifconfig_re0="inet 10.30.0.1 netmask 255.255.255.0"
.. only this.

As usual when configuring the network interface.
 
There is another note - additional information.
There is a network interface re1.
This internal network card, on motheboard.

/var/run/dmesg.boot
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xc000-0xc0ff mem 0xf7004000-0xf7004fff,0xf7000000-0xf7003fff irq 19 at device 0.0 on pci4
re1: Using 1 MSI-X message
re1: Chip rev. 0x54000000
re1: MAC rev. 0x00100000
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: f8:32:e4:88:51:66

She has a stable behavior.
The driver is the same - the behavior is different.
 
As for the behavior of re0 - does not give MAC-address.
The connected active hardware does not see it.
The Ethernet layer does not work.
 
What is the corresponding routing table ?
netstat -rn
Also you could give net/realtek-re-kmod a shot (not sure if this card is supported)

Ok. I try it.

About routing:
If interface is UP netstat -rn is:
Code:
10.30.0.0/24       link#1             U           re0
10.30.0.1          link#1             UHS         lo0

If DOWN:
Code:
10.30.0.1          link#1             UHS         lo0

But not understand .. i used tcpdump .. why need analyse netstat?
 
Is that the full output of netstat -rn ? I don't see any default route. If the routing table are not setup correctly there will be no packet going throught the interface
 
Hi!
IP routing?
The problem is that the network card does not "give" its MAC-address (Ethernet Level).
Even if you include another computer in the network card, directly.
 
Is that the full output of netstat -rn ? I don't see any default route. If the routing table are not setup correctly there will be no packet going throught the interface
Default route exist - direct to another network interface, tun0: created after PPPoE connection.
And between re0 and re1 exist gateway.

But what is this information for?
 
The question arises: how do I find out the initial state of the network interface? (After booting the system)
 
pciconf -lv

Code:
re0@pci0:1:0:0: class=0x020000 card=0x34687470 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'

Status active, but network traffic is empty!
One startup - network Ok, other startup - Bad and so on randomly.

Try the port kernel driver net/realtek-re-kmod instead of base system re(4).
 
The issue is resolved.
The TP-Link network card went into the trash.
Replaced it with a D-Link with the same chip.
Works with the standard drivers without the "tambourine".
 
  • Thanks
Reactions: a6h
Back
Top