本文实现的是如何在archlinux系统中实现简单的wifi及有线联网
复制文件/etc/netctl/examples/wireless-wpa到/etc/netctl下
cp /etc/netctl/examples/wireless-wpa ../
配置无线信息
Description='A simple WPA encrypted wireless connection'
Interface=wlp8s0b1
Connection=wireless
Security=wpa
IP=dhcp
ESSID='ANAS-PUBLIC-TP'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '"""'
# See also: the section on special quoting rules in netctl.profile(5)
Key='anas7777'
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10
保存退出,启动无线网
systemctl start wireless-wpa
开机启动
systemctl enable wireless-wpa
复制文件/etc/netctl/examples/ethernet-dhcp到/etc/netctl下
cp /etc/netctl/examples/ethernet-dhcp ../
配置有线信息
Description='A basic dhcp ethernet connection'
Interface=enp7s0
Connection=ethernet
IP=dhcp
#DHCPClient=dhcpcd
#DHCPReleaseOnStop=no
## for DHCPv6
#IP6=dhcp
#DHCP6Client=dhclient
## for IPv6 autoconfiguration
#IP6=stateless
配置完毕,保存退出
启动有线联网
systemctl start ethernet-dhcp
开机启动
systemctl enable ethernet-dhcp