ArchLinux下的wifi(无线)问题解决

RealJianyuan 2014-04-08

接着:之前两篇:http://www.linuxidc.com/Linux/2014-04/99749.htm 与 http://www.linuxidc.com/Linux/2014-04/99750.htm
 
# 如果之前systemctl enable dhcpcd.service
 systemctl dhcpcd.service
 systemctl disable dhcpcd.service
 # 然后
 cd /etc/netctl
 cp examples/wireless-wpa .    # A simple WPA encrypted wireless connection
 vim wireless-wpa    # Modify
    + Interface=wlp8s0 # iw dev查看, 或ip link 或ifconfig
    + Connection=wireless
    + Security=wpa
    +
    + IP=dhcp
    + ESSID='wifi-name'
    + Key='wifi-passwd'
 # 注意,必须先完成以上才能进行一下,否则有一系列问题
 netctl enable wireless-wpa
 netctl start wireless-wpa
 reboot
 (
    相关文件夹: /etc/netctl # 网络配置文件夹,假如配置名字叫 wireless-wpa
                /etc/systemd/system #
                /etc/systemd/system  # [email protected]
                /etc/systemd/system/multi-user.target.wants # [email protected]
    相关命令:
        journalctl -xn
        systemctl --failed
        systemctl list-unit-files
        systemctl daemon-reload
 
        ip link
        ifconfig wlp8s0 up  # start wireless adapter
        ifconfig eno1 up # start wire adapter
 
        # dhcpcd network-adapter 动态分配IP
        dhcpcd eno1
        dhcpcd wlp8s0
 )

相关推荐

libowenhit / 0评论 2020-02-17