本文實現的是如何在Arch Linux系統中實現簡單的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 '""<key>"'
# 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