2021-05-12 14:32:11
Arch Linux實現wifi和有線聯網
2020-06-16 17:27:03
本文實現的是如何在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
本文永久更新連結地址:http://www.linuxidc.com/Linux/2016-11/137666.htm
相關文章