Компания-сервер назначила несколько ip-ов для моего выделенного сервера, но я не знаю, как это изменить. Должен ли я изменить номер ip в / etc / network / interfaces вручную? мой файл /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, вы должны сделать что-то вроде:
# device: eth0
auto eth0
iface eth0 inet static
address 10.20.30.40
netmask 255.255.255.0
gateway 10.20.30.1
dns-nameservers 8.8.8.8