// 修改网络地址
[email protected]:/etc/network# vi /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
auto eth0
iface eth0 inet static
address 192.168.1.130
netmask 255.255.255.0
gateway 192.168.1.1
// 修改DNS
在上述配置文件里面,添加
dns-nameservers 8.8.8.8 // 或者其它ip
时间: 2024-10-27 19:48:19