Trying to get network up.

Help with setting up network cards, including WiFi cards.
Post Reply
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Trying to get network up.

Post by UnixLinuxB »

I've a dell latitude with an onboard iwm0, [ no iwlwifi.ko on the system ],
and a small usb dongle rtwn0.
going thru all manner of configurations, 'service netif start' has wpa_supplicant giving up.

.............................
3 entries for the rtwn in loader.conf were not enough.
wlan1="WPA SYNCDHCP" after wlans_rtwn0="wlan0" etc,
........
13.0-STABLE.
....
in one run of
wpa_supplicant -i wlan1 -c /etc/wpa_supplicant.conf, after a meticulous load of all rtwn drivers, an ioctl error appeared.
..........
So the em0, as a last resort: [ don't know why it has dhcp in rc.conf...
I am trying to get the knowledge to do a
' ifconfig em0 inet 192.168...... netmask 255.255.255.0
route add default .........
which I used for over ten years with other ethernet.
I suppose the other machine with a working ethernet on the lan, with a gateway of 192.168.0.1 and a network of 192.168.0.0/24
and 192.168.0.4 in use, mean the commands should avoid collision to get a lease from the same router.
......
Anyone use this latter methodology and suggest how to fill the missing numbers above? { .... > numbers }
....
Pardon the terse questions, typing into the forum is laggy today.
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: Trying to get network up.

Post by UnixLinuxB »

Following web examples,
ifconfig em0 inet 192.168.0.3 netmask 255.255.255.0
route add default 192.168.0.1 # the lan part on the router
" network is unreachable"
....
also dug out an eu0/axe0 usb-to-ethernet, recieved "device not configured" at connection attempts
RodMyers
Posts: 68
Joined: Sat Nov 27, 2021 8:16 pm

Re: Trying to get network up.

Post by RodMyers »

make sure you set the default route as well, my script. mine deletes anything previously configured. Also check out your /etc/resolv.conf as well

#!/bin/sh

sudo ifconfig wlan0 inet 192.168.0.3 netmask 255.255.255.0
sudo route delete default ; sudo route add default 192.168.0.1

sudo
UnixLinuxB
Posts: 12
Joined: Thu Mar 05, 2020 5:38 pm

Re: Trying to get network up.

Post by UnixLinuxB »

Running out of time, I reverted it to Freebsd-14, where I discovered:
rtwn0-usb, onboard wifi, failures most likely due low battery life
Even if wlan1 showed "associated" , internet did not come up for some reason...
I finally got ethernet with em0. ifconfig: route add default: after countless hours of retesting ... similar to the post above.
At least I learned a whole lot.
wb7odyfred
Posts: 203
Joined: Sat Nov 12, 2016 5:44 pm

Re: Trying to get network up.

Post by wb7odyfred »

https://forums.ghostbsd.org/viewtopic.php?f=64&t=526 Edimax rtl8192cu
https://forums.ghostbsd.org/viewtopic.php?f=64&t=570 Realtek rtl8188ce

Look at these examples, follow them to similarly engage your wifi device.

From this website learn what wifi device is inside your pc. bsd-hardware.info

Code: Select all

hw-probe -all -upload

Code: Select all

uname -a
ghostbsd-version -fokv
kldstat
FreeBSD fredTC93-pc 13.0-STABLE FreeBSD 13.0-STABLE GENERIC amd64

13.0-STABLE
1300525
22.03.16
22.04.22
Id Refs Address Size Name
1 115 0xffffffff80200000 29335f8 kernel
2 1 0xffffffff82b34000 1ae68 geom_eli.ko
3 1 0xffffffff82b4f000 5b7448 zfs.ko
4 1 0xffffffff83af9000 639c linprocfs.ko
5 4 0xffffffff83b00000 dbb0 linux_common.ko
6 1 0xffffffff83b0e000 3284 linsysfs.ko
7 1 0xffffffff83b12000 3530 fdescfs.ko
8 1 0xffffffff83b16000 388b8 linux.ko
9 1 0xffffffff83b4f000 30a58 linux64.ko
10 1 0xffffffff83b80000 6730 cuse.ko
11 1 0xffffffff83b87000 11cd8 fusefs.ko
12 1 0xffffffff83b99000 15d430 i915kms.ko
13 1 0xffffffff83cf7000 80020 drm.ko
14 2 0xffffffff83d78000 cab0 linuxkpi_gplv2.ko
15 1 0xffffffff83d85000 3378 acpi_wmi.ko
16 1 0xffffffff83d89000 3250 ichsmb.ko
17 1 0xffffffff83d8d000 2180 smbus.ko
18 1 0xffffffff83d90000 17310 if_iwm.ko
19 1 0xffffffff83da8000 2340 uhid.ko
20 1 0xffffffff83dab000 4350 ums.ko
21 1 0xffffffff83db0000 3380 usbhid.ko
22 1 0xffffffff83db4000 31f8 hidbus.ko
23 1 0xffffffff83db8000 3320 wmt.ko
24 1 0xffffffff83dbc000 4d00 ng_ubt.ko
25 3 0xffffffff83dc1000 aac8 netgraph.ko
26 2 0xffffffff83dcc000 a238 ng_hci.ko
27 2 0xffffffff83dd7000 25a8 ng_bluetooth.ko
28 1 0xffffffff83dda000 27040 ipfw.ko
29 1 0xffffffff83e02000 2260 pty.ko
30 1 0xffffffff83e05000 2a08 mac_ntpd.ko
31 1 0xffffffff83e08000 1ae78 ext2fs.ko
32 1 0xffffffff83e23000 4354 geom_linux_lvm.ko

Code: Select all

usbconfig list
usbconfig -d ugen0.3 dump_device_desc
pciconf -lv
ugen2.1: <Intel EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <Logitech USB Receiver> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.4: <ULT-Best Best USB Device> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA)
ugen0.3: <vendor 0x8087 product 0x07dc> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
usbconfig -d ugen0.3 dump_device_desc
ugen0.3: <vendor 0x8087 product 0x07dc> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x00e0 <Wireless controller>
bDeviceSubClass = 0x0001
bDeviceProtocol = 0x0001
bMaxPacketSize0 = 0x0040
idVendor = 0x8087
idProduct = 0x07dc
bcdDevice = 0x0001
iManufacturer = 0x0000 <no string>
iProduct = 0x0000 <no string>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001



iwm0@pci0:2:0:0: class=0x028000 rev=0x83 hdr=0x00 vendor=0x8086 device=0x08b2 subvendor=0x8086 subdevice=0x4270
vendor = 'Intel Corporation'
device = 'Wireless 7260'
class = network
Post Reply