Problem using my second network interface

hi, i very new to openwrt, my problem is that iI have 2 card one onboard and another pci expres, both are detect but only the onboard is working as eth0 the second one i can't find it, not even in luci qhen i create and interface. How can i add it as eth0 (or any other name) so i can configure?

Can you see the interface in ip link ?
If not, is the interface detected dmesg | grep -i eth or lspci ( <- will need pciutils package)

1 Like

i can't see it in ip link o dmesg, but I can see in lspci

You probably need to load modules/drivers for your card using the correct kmod-XXXXX module. eg realtek devices you have to load something like this...

opkg install kmod-8139cp kmod-8139too kmod-phy-realtek kmod-rtl8xxxu pciutils

1 Like

It would help troubleshooting to paste here what you see.

# lspci
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 0e)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 0e)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0e)
00:1c.1 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 2 (rev 0e)
00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 (rev 0e)
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 0e)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev 0e)
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5755 Gigabit Ethernet PCI Express
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
# opkg install kmod-8139cp kmod-8139too kmod-phy-realtek kmod-rtl8xxxu pciutils
Unknown package 'kmod-8139cp'.
Unknown package 'kmod-8139too'.
Unknown package 'kmod-phy-realtek'.
Unknown package 'kmod-rtl8xxxu'.
Package pciutils (3.6.2-3) installed in root is up to date.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-8139cp.
 * opkg_install_cmd: Cannot install package kmod-8139too.
 * opkg_install_cmd: Cannot install package kmod-phy-realtek.
 * opkg_install_cmd: Cannot install package kmod-rtl8xxxu.

Do a opkg update first.

ready I install everythingand reboot , the card is still there in lspci
but nothing in ip link

# lspci
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA AHCI Controller (rev 0e)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 0e)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e)
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 1 (rev 0e)
00:1c.1 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 2 (rev 0e)
00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 3 (rev 0e)
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express Root Port 4 (rev 0e)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller (rev 0e)
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5755 Gigabit Ethernet PCI Express
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether d0:50:99:34:4b:66 brd ff:ff:ff:ff:ff:ff
# dmesg | grep -i eth
[    6.748417] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    6.766043] 8139too: 8139too Fast Ethernet driver 0.9.28
[    6.803258] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    6.831769] r8169 0000:04:00.0 eth0: RTL8168g/8111g at 0xffffc9000000b000, d0:50:99:34:4b:66, XID 0c000800 IRQ 91
[    6.835328] r8169 0000:04:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    8.782578] r8169 0000:04:00.0 eth0: link down
[    8.782626] r8169 0000:04:00.0 eth0: link down
[    8.788038] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.703344] r8169 0000:04:00.0 eth0: link up
[   11.708363] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

It looks like the detected card is the realtek, so you need to add the modules for broadcom too.
kmod-tg3

from https://openwrt.org/docs/techref/hardware/soc/soc.broadcom.bcm47xx
New Broadcom devices with gigabit Ethernet are supported by the bgmac kernel driver. Unfortunately CPUs on most of these SoCs are too slow to provide 1000 Mb/s routing or NAT. It results in NAT being limited to something around 130Mb/s on BCM4706 and even less on slower units (like ~50Mb/s on BCM4718A1).
Maybe try...

opkg update && opkg install kmod-bcma kmod-bnx2 kmod-phy-broadcom

and then see if the ip link's show up

With this package works, thanks

But as I install everything else including trentmu recomenbdation, i don't know if I need something else.
When i make the final instalation i will depure this a test it.
Thanks for your help

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.