1. /etc/network/interface
add
auto eth0
iface eth0 inet static
address 192.168.1.115
netmask 255.255.255.0
geteway 192.168.1.254
2./etc/init.d/networking restart
3.dns
/etc/resolv.conf
add
nameserver 202.96.134.133
4./etc/init.d/networking restart
ok
本文介绍如何在Linux系统中手动配置网络接口与DNS服务器。主要内容包括设置静态IP地址、子网掩码、默认网关及重启网络服务,同时更新DNS解析配置。
2598

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



