如何给Archlinux进行ip设置

来源:互联网 发布:招行香港一卡通 mac 编辑:程序博客网 时间:2024/05/21 11:49

1.配置/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.配置/etc/reslov.conf

nameserver 61.128.128.68
nameserver 61.128.192.68

(根据自己的情况来定)

3.之后系统重启

原创粉丝点击