No network cards enable

Help with setting up network cards, including WiFi cards.
Post Reply
kinou
Posts: 6
Joined: Wed Jan 16, 2019 3:05 am
Has thanked: 0
Been thanked: 0

No network cards enable

Post by kinou » Wed Jan 16, 2019 4:32 am

Hello everyone!

I am a brand new user of this kind of OS. I come from Windows as a standard user.
As the subject said: "No network cards enable"
When I enable Wifi I can see hot spots but no connection to the Internet works.

here is the ifconfig
kinou@kinou ~> ifconfig
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 08:62:66:b7:9e:ad
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 7c:5c:f8:25:02:3d
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 2 (2417 MHz 11g)
regdomain FCC country US authmode OPEN privacy OFF txpower 30
bmiss 10 scanvalid 60 protmode CTS wme
groups: wlan
Thanks a lot for your help!

User avatar
ericbsd
Developer
Posts: 1367
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 36 times
Been thanked: 44 times

Re: No network cards enable

Post by ericbsd » Wed Jan 16, 2019 8:36 am

Was this on the live DVD/USB?

try:

Code: Select all

sudo service dhcpcd.wlan0 restart
on the first boot, the same thing could happen.

kinou
Posts: 6
Joined: Wed Jan 16, 2019 3:05 am
Has thanked: 0
Been thanked: 0

Re: No network cards enable

Post by kinou » Wed Jan 16, 2019 10:24 am

It was on the pc installed version.

I tried your code but it tell's me a peter parker's uncle quote and ask me a password that I can't write (black square)

User avatar
ericbsd
Developer
Posts: 1367
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 36 times
Been thanked: 44 times

Re: No network cards enable

Post by ericbsd » Wed Jan 16, 2019 10:42 am

sudo is to run service dhcpcd.wlan0 restart as superuser. it asks for your user password.

kinou
Posts: 6
Joined: Wed Jan 16, 2019 3:05 am
Has thanked: 0
Been thanked: 0

Re: No network cards enable

Post by kinou » Wed Jan 16, 2019 12:44 pm

That's the point, I can't write anything in the input field. A black square replace the writing line

User avatar
ericbsd
Developer
Posts: 1367
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 36 times
Been thanked: 44 times

Re: No network cards enable

Post by ericbsd » Wed Jan 16, 2019 1:57 pm

sudo with the password inputted should look like that
Screenshot_at_2019-01-16-13-50-40.png

If you type something nothing will appear. When you press enter if your password is right it should work like this
Screenshot_at_2019-01-16-13-53-27.png

kinou
Posts: 6
Joined: Wed Jan 16, 2019 3:05 am
Has thanked: 0
Been thanked: 0

Re: No network cards enable

Post by kinou » Thu Jan 17, 2019 5:33 am

Restarting [OK] but...
Nothing changes :/

Unsupported hardware?

wb7odyfred
Posts: 36
Joined: Sat Nov 12, 2016 5:44 pm
Has thanked: 0
Been thanked: 0

Re: Try these manual steps to enable networking.

Post by wb7odyfred » Fri Jan 18, 2019 1:03 am

RE: No network cards enable RE: Try these Manual steps to enable networking


Hi Kinou ,

Here are some FreeBSD resources, I read and give URLs below.
https://www.freebsd.org/doc/en_US.ISO88 ... eless.html The FreeBSD Network Wireless manual.
https://wiki.freebsd.org/WiFi/FAQ Here are the steps written for WIFI bringup on FreeBSD.
https://forums.freebsd.org/threads/i-ne ... 25n.60235/ TP Link WN725N device
https://www.freebsd.org/cgi/man.cgi?que ... &sektion=4 FreeBSD 11 RTWN driver details.

Make sure you have the correct WIFI firmware file for your WIFI device placed in the correct directory folder. TBD
https://www.freebsd.org/cgi/man.cgi?que ... ease-ports urtwn firmware (4)
http://srobb.net/fbsdquickwireless.html FreeBSD Quick Wireless Notes.


I wrote a detailed howto get network started manually in three posts in these forums. now that was with FreeBSD 11.0 (GhostBSD) and now the commands might have changed with http://TrueOS.org 18.xx version kernel.
https://forums.ghostbsd.org/viewtopic.php?f=64&t=570 RealTek RTL8188CE Wii-Fi PCI network hardware setup

https://forums.ghostbsd.org/viewtopic.php?f=64&t=526 Edimax EW-7811un Wifi USB nano dongle; 10.3 & 11.0 setup
https://forums.ghostbsd.org/viewtopic.php?f=64&t=16 How do I find out what driver I need?

From a terminal window using the command line, you should be able to edit those 3 files to match your network settings for your wifi environment and issue some commands and visually see the results. Learning the commands from reading a combination of those two forum posts should help you connect your GhostBSD to your local wifi network. I wrote these posts to document the commands to get a network connection operational. I came new to GhostBSD and did not know which commands to use in this OS to get started with WIFI networking. You can follow my steps and change some details to match your situation.


What Wifi card or usb dongle do you use for your network? Is the network at 2.4Ghz or 5Ghz or both, dual band?
List your PCI devices with this command.

Code: Select all

 pciconf -lv
List your USB devices with this command

Code: Select all

usbconfig  list
Which device is your WiFI device? Google FreeBSD and the name of your chip device model number "FreeBSD 8192cu" or "FreeBSD 8188CE"
What version of GhostBSD are you running

Code: Select all

uname -a

Code: Select all

dmesg | tail -10
List the last 10 lines of dmesg log file or read through the dmesg file using the less command dmesg | less


ifconfig doesn't show my wireless card

You're probably looking for

Code: Select all

sysctl -n net.wlan.devices
.

Also, make sure you've actually read the wireless networking chapter.The FreeBSD Network Wireless manual.https://www.freebsd.org/doc/en_US.ISO88 ... eless.html
My wireless card does not show up in

Code: Select all

sysctl -n net.wlan.devices
A driver might be missing. Check out the output of pciconf -lv and look for devices with the network class.

Now edit these 3 files /boot/loader.conf, /etc/rc.conf, and /etc/wpa_supplicant.conf
See those two forum posts for details on editing and commands to manually issue.


A user can either become a SuperUser root to issue priviledge commands or pre-pend the command with "sudo"

Code: Select all

su root
password:
Use the following line for testing with the Debug and Password debug printout options. The wpa_supplicant sets up the PSK or WEP or WPA2 details Wpa_supplicant command is not needed for an "OPEN" network connection but issue this command anyway for completeness. The dhclient command request a DHCP IP allocation for your network connection. [/size]

Code: Select all

killall dhclient
wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf 
dhclient wlan0 
Manually issue the wpa_supplicant command with the background Dameon option and dhclient commands

Code: Select all

killall dhclient
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf 
dhclient wlan0
# restart the two network services: network interface and network routing
# here are 2 commands to issue to restart the two network services: network interface and network routing.

Code: Select all

service  netif restart
service routing restart
Once you get the WiFi working manually, you will have verified the 3 files have the correct information inside them and then the automatic network connection should work. You can test wifi connectivity using the ping command

Code: Select all

sudo ping -c 5  he.net
or Ping the Hurricane Electric website "easy to quickly type he.net why I use it for testing." Hurricane Electric is also a internet backbone service provider.

Code: Select all

sudo ping -c 3 http://www.ghostbsd.org
test that well know website "GhostBSD" which you are presently reading.

use Netstat commands to list out the new network interface connections
use Sockstat commands to list out the socket connections

Code: Select all

netstat -r
or Network Status interfaces

Code: Select all

netstat -i
or socket status for ipv4

Code: Select all

sockstat -4
Check connectivity with ping command to a specific IP address like Google Domain Name service
Ping google Domain Naming Service (DNS) 3 times.

Code: Select all

ping -c 3 8.8.8.8
Ping Open Domain Naming Service (DNS) 3 times.

Code: Select all

ping -c 3 208.67.222.222
Ping Hurricane Electric Internet Service Provider 3 times.

Code: Select all

ping -c 3 he.net
Ping an OpenNic DNS server in Colorado ns4.co.us.dns.opennic.glue https://servers.opennicproject.org/

Code: Select all

ping -c 3 63.231.92.27
I would be happy for you to report back success, failures, and what contents of those 3 files worked for you, Kinou. You can use the full forum editor and the "Quote" and "Code" to encase your answers here in your replies. I hope I have been specific and not much complicated.

Fred Finster


EdiMax EW-7811un is a good USB nano device to use with GhostBSD, FreeBSD, and Linux for WIFI networking 150Mbps.
That should show the urtwn0 driver connected with the USB nano WiFi dongle Edimax EW-7811un
or 150Mbps Wireless N Nano USB Adapter TL-WN725N

ps. Like to hear about BSD news? http://bsdnow.tv You can download a MP3 audio only or watch the youtube video episode.

I am happy for others to add corrections or suggest commands for debugging a WIFI Lan interface connection. Please Comment it is easy.

kinou
Posts: 6
Joined: Wed Jan 16, 2019 3:05 am
Has thanked: 0
Been thanked: 0

Re: No network cards enable

Post by kinou » Mon Jan 21, 2019 6:06 am

Thanks a lot!

I'm working on it but I can't editing rc.conf

My DHCP is already in the file and i'm going to try the static IP as the Free BSD handbook says.

On the other hand here is the results of

pciconf -lv

Code: Select all

iwm0@pci0p:4:0:0:	class=0x028000 card=0x41708086 chip=0x08b18086 rev=0xbb hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wireless 7260'
    class      = network
none2@pci0:5:0:0:	class=0xff0000 card=0x202f1043 chip=0x528710ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8411B PCI Express Card Reader'
re0@pci0:5:0:1:	class=0x020000 card=0x200f1043 chip=0x816810ec rev=0x12 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
uname -a

Code: Select all

FreeBSD kinou.ghostbsd-pc.home 12.0-CURRENT FreeBSD 12.0-CURRENT #0 7ad4fada6(HEAD): Thu Aug  2 11:37:15 EDT 2018     root@hydra:/usr/obj/root/jenkins/workspace/TrueOS_-_Stable_-_Complete/TrueOS_Stable/amd64.amd64/sys/GENERIC  amd64
dmesg | tail -10

Code: Select all

dmesg: sysctl kern.msgbuf: Operation not permitted
su root

Code: Select all

Password:
su: Sorry
"rc.conf" file

Code: Select all

kldload_nvidia="nvidia-modeset nvidia"
root_rw_mount="NO"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
devfs_system_ruleset="devfsrules_common"
rc_interactive="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
keymap="fr.iso"
hostname="kinou.ghostbsd-pc.home"
zfs_enable="YES"
ifconfig_re0="DHCP"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"

Post Reply