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 '"""'
# 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://go2live.cn

发表评论

电子邮件地址不会被公开。 必填项已用*标注