1.# gedit /etc/network/interfaces
编辑,输入,下面是我个人的配置文件内容:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.192
netmask 255.255.255.0
gateway 192.168.1.1
2.# route add default gw 192.168.1.1
3.# gedit/etc/resolv.conf
添加: nameserver 192.168.1.1
4.如果之前的apt-get update 失败的话,现在再执行一下。
本文提供了一步一步的指导来帮助读者配置Ubuntu系统的网络设置。包括编辑网络接口配置文件、设置静态IP地址、添加默认网关及DNS服务器等关键步骤。

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



