pojin (ID: 1)
头衔:论坛坛主
等级:究级天王[荣誉]
积分:2826
发帖:230 篇
来自:保密
注册:2023-12-09 09:36:49
造访:2026-05-05 13:56:22
发帖:230 篇
来自:保密
注册:2023-12-09 09:36:49
造访:2026-05-05 13:56:22
vi /etc/network/interfaces# 修改为以下内容# iface etho inet dhcp
# 表示 eth0 接口使用静态 IP 地址
iface eth0 inet static
# IP 地址
address 192.168.3.172
# 子网掩码
netmask 255.255.255.0
# 默认网关
gateway 192.168.3.1
# 希望使用的 DNS 服务器地址
dns-nameservers 192.168.3.1# 重启网络服务/etc/init.d/networking restart