1 安装必要的包
ifconfig,route在net-tools中,nslookup,dig在dnsutils中,ftp,telnet等在inetutils中,ip命令在iproute2中。
pacman -S net-tools dnsutils inetutils iproute2
2 两种方法配置网络
1.1 启动网卡
ifconfig eth0 up
1.2 获取ip
dhcpcd eth0
1.3 查看网卡
ifconfig
注:本文为网络搜集整理
2.1 查看下可用的网卡
ifconfig -a
2.2 配置/etc/rc.conf
interface=eth0
eth0="dhcp"
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0 IP netmask 子网掩码 broadcast 广播
(根据自己的情况来定)
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
#gateway 网关
ROUTES=(gateway)
2.3 配置/etc/reslov.conf
nameserver 61.128.128.68
nameserver 61.128.192.68
(根据自己的情况来定)
2.4 重启网络
/etc/rc.d/network restart
本文介绍在Arch Linux系统中配置网络的方法,包括安装必要软件包、启动网卡、获取IP地址及配置网络参数的具体步骤。

8782

被折叠的 条评论
为什么被折叠?



