OPNsense Forum

English Forums => Hardware and Performance => Topic started by: Darkopnsense on January 09, 2020, 09:59:37 pm

Title: Network card installation
Post by: Darkopnsense on January 09, 2020, 09:59:37 pm
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,
Title: Re: Network card installation
Post by: bartjsmit on January 10, 2020, 07:36:37 am
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...
Title: Re: Network card installation
Post by: Darkopnsense on January 10, 2020, 10:22:52 am
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.
Title: Re: Network card installation
Post by: bartjsmit on January 11, 2020, 09:08:45 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...
Title: Re: Network card installation
Post by: Darkopnsense on January 11, 2020, 10:24:15 pm
Hello Bartjsmit,

Thank you for this always relevant explanation.

Cordially.
Title: Re: Network card installation
Post by: mimugmail on January 12, 2020, 06:50:19 am
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.
Title: Re: Network card installation
Post by: Darkopnsense on January 14, 2020, 02:00:28 pm
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,
Title: Re: Network card installation
Post by: Darkopnsense on January 14, 2020, 02:31:18 pm
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,
Title: Re: Network card installation
Post by: Darkopnsense on January 14, 2020, 04:05:33 pm
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,
Title: Re: Network card installation
Post by: monstermania on January 15, 2020, 08:42:59 am
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