感谢支持
我们一直在努力

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

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-11/137666.htm

赞(0) 打赏
转载请注明出处:服务器评测 » Arch Linux实现wifi和有线联网
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏