wifigmr start error:no wifi interface is configured in /etc/rc.conf

when start program :wifimgr,we got outpu :

no wifi interface is configured in /etc/rc.conf 

The first step will be to configure the wireless network card to an interface. To find out what wireless network cards are in the system check the section Identify Network Adapters.

# ifconfig wlan0 create wlandev iwm0

output:

ifconfig: wlandev: bad value

so where is my wifi dev ? 

search for help :Solved - Ifconfig: wlandev: bad value | The FreeBSD Forums

use dmesg

dmesg |grep Wir
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
Intel(R) Wireless WiFi based driver for FreeBSD
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xe1000000-0xe1001fff at device 0.0 on pci2
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
Intel(R) Wireless WiFi based driver for FreeBSD
iwm0: <Intel(R) Dual Band Wireless AC 7265> mem 0xe1000000-0xe1001fff at device 0.0 on pci2
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ugen0.2: <YICHIP Wireless Device> at usbus0 (disconnected)
ugen0.2: <YICHIP Wireless Device> at usbus0
ukbd0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0
ums0: <YICHIP Wireless Device, class 0/0, rev 2.00/0.02, addr 1> on usbus0

so we have iwm0 ,the Intel Dual Wireless 

but I can't config it ....

change wifi :

  • TWT关闭开启(部分终端的驱动较旧,开启该功能可能存在一定兼容性问题)

close TWT

pciconf -lv 

iwm0@pci0:3:0:0:    class=0x028000 rev=0x59 hdr=0x00 vendor=0x8086 device=0x095a subvendor=0x8086 subdevice=0x5010
    vendor     = 'Intel Corporation'
    device     = 'Wireless 7265'
    class      = network
 

we found that wlan0 is no carrier

at last use :

wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf 

then it's ok 

status: associated

then add route :

route add default 192.168.0.1 

then network is ok 

but after service netif restart ,we need reuse 

wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf 

config wifi at TTY 

  • add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it:

network={
 ssid="myssid" 
 psk="mypsk" 
}
  • add the network entry to configure the network on startup:
# sysrc wlans_iwn0="wlan0"
# sysrc ifconfig_wlan0="WPA DHCP"

then :

# service netif restart

or write to /etc/rc.conf :

wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

 and then :

/etc/netstart 

after that ,I fount wifimgr is ok! 

 

summory

at last wifigmr error  solved ,so after  config wifi at TTY .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值