服务器公司为我的专用服务器分配了一些 ip,但我不知道如何更改它。我应该手动更改 /etc/network/interfaces 中的 ip 号吗?我的/etc/network/interfaces
文件是这样的;
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eno1
iface eno1 inet static
address 106.***.***.250
netmask 255.255.255.248
network 106.***.***.248
broadcast 106.***.***.255
gateway 106.***.***.249
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search newenglanddns.io
如果您的数据中心中没有运行 DHCP,您必须执行以下操作: