歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Arch Linux實現wifi和有線聯網

本文實現的是如何在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
Copyright © Linux教程網 All Rights Reserved