Translations:FAQ/72/zh

From GhostBSD Wiki
Revision as of 11:18, 12 October 2019 by Litchi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

如果未输出,则 GhostBSD 网络配置可能未检测到无线网卡。这时需要查看有没有安装了无线驱动。

sudo ifconfig | grep -B 3 802.11

通常 run0 是无线驱动。

run0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
       ether 00:1e:e5:e6:5d:1
       nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
       media: IEEE 802.11 Wireless Ethernet autoselect mode 11a

如果输出了类似上面的,则可以配置 /etc/rc.conf 文件(ee 为文本管理器,可替换为你喜欢的 vim、nano和 pluma等)。

sudo ee /etc/rc.conf

/etc/rc.conf 中添加文本(替换run0 为你的无线设备)

wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"

Esc 并保存,然后重启netif

sudo /etc/rc.d/netif restart

则无线已配置好,可能需要开启无线。

sudo ifconfig wlan0 up