Network card installation

Started by Darkopnsense, January 09, 2020, 09:59:37 PM

Previous topic - Next topic
Good evening,

I want to expand the possibilities of my P8B-X.

1) I added a pci wifi card not listed by FreeBSD 12.0-RELEASE hardware

My card is recognized

In console mode

# pciconf -lveV

ath0 @ pci0: 5: 0: 0: class = 0x028000 card = 0x10891a3b chip = 0x002b168c rev = 0x01 hdr = 0x00
     vendor = 'Qualcomm Atheros'
     device = 'AR9285 Wireless Network Adapter (PCI-Express)'
     class = network

But I don't know how to have it recognized by the OPNsense system.

2) I ordered a multi-port Intel Pro / 1000 PT list by hardware FreeBSD 12.0-RELEASE Server board Intel PRO / 1000 PT (82572) driver em (4), I hope that it will be recognized and installed automatic and be able to easily manage it in interfaces.

I am a constructive comment taker.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

The PCI system enumerates the card correctly by its vendor ID. The kernel has no driver for it so nothing else happens. Everything is working as it should (for sufficiently low values of 'working').

You may have seen all the forum messages about poor results with WiFi cards on FreeBSD so I hope you're not too disappointed ;-)

Bart...

Hello Bartjsmit,

Thank you for this relevant explanation.

No, I have not yet seen all of the forum posts on wifi cards.

I want to see how to add a lan card after the opnsense installation.

What I don't know, if I insert a freebsd compatible referenced card, will it automatically go up?

Otherwise, I am a process taker in console mode.

What I have read does not seem very obvious to me.

Cordially.
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Quote from: Darkopnsense on January 10, 2020, 10:22:52 AM
What I don't know, if I insert a freebsd compatible referenced card, will it automatically go up?

Yes indeed, the kernel will bring up the device and assign it a device name. You can assign WAN, LAN and OPTx interfaces to your network devices during installation or assign them from the console and web interface after.

Bart...

Hello Bartjsmit,

Thank you for this always relevant explanation.

Cordially.
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Be sure to not do this remotely. Sometimes the interface assignments screw up (as FreeBSD don't use UUIDs for NICs) and you have to manually reassign them via the console.

January 14, 2020, 02:00:28 PM #6 Last Edit: January 14, 2020, 04:09:22 PM by Darkopnsense
Good evening,

My card is recognized

In console mode

# pciconf -lveV

ath0 @ pci0: 5: 0: 0: class = 0x028000 card = 0x10891a3b chip = 0x002b168c rev = 0x01 hdr = 0x00
      seller = 'Qualcomm Atheros'
      device = 'AR9285 Wireless Network Adapter (PCI-Express)'
      class = network

  # ifconfig

ath0_wlan1: flags = 8802 <BROADCAST, SIMPLEX, MULTICAST> metric 0 mtu 1500
         ether dc: 85: de: 0f: c8: 99
         hwaddr dc: 85: from: 0f: c8: 99
         nd6 options = 21 <PERFORMNUD, AUTO_LINKLOCAL>
         media: automatic selection wireless IEEE 802.11 Ethernet (automatic selection)
         condition:  no transporter
         ssid "" channel 1 (2412 MHz 11b)
         regdomain 96 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss 7
         scanvalid 60 wme burst bintval 0
         groups: wlan

I would like to know the command line to change the status status: No carrier.

The other peripherals have the status either up or down.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello again,

i followed cd post

https://forum.opnsense.org/index.php?topic=5066.msg20242#msg20242

no change, any idea?

Aside from reporting that Freebsd does not handle wifi well.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello,

It is active but in minimum protocol.

ath0_wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether dc:85:de:0f:c8:99
        hwaddr dc:85:de:0f:c8:99
        inet6 fe80::de85:deff:fe0f:c899%ath0_wlan1 prefixlen 64 scopeid 0x7
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11b <adhoc>
        status: running
        ssid Dangosse channel 10 (2457 MHz 11b) bssid 12:a6:92:ca:55:75
        regdomain ETSI country FR indoor ecm authmode OPEN privacy OFF
        txpower 30 scanvalid 60 burst
        groups: wlan

If you have an idea to change the 802.11 b mode to b / g / n recognized and configurable in the web interface.

I take any constructive track, I suppose on the pilot side.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hi,
look at this sticky note for internal wifi devices and OPNsense: https://forum.opnsense.org/index.php?topic=6886.0

I used internal wifi with OPNsense 15.x - 17.x. I suggest you to use an external ap for wifi! Internal wifi is PITA due the bad driver support for FreeBSD.

good luck  ;)
Dirk