Статья http://www.aitishnik.ru/linux02.html , основное:
Затем редактируем файл /etc/resolv.conf:
# vim /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.123.254
netmask 255.255.255.0
network 192.168.123.0
broadcast 192.168.123.255
gateway 192.168.123.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.177.96.1 213.177.97.1
auto eth0# 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.123.254
netmask 255.255.255.0
network 192.168.123.0
broadcast 192.168.123.255
gateway 192.168.123.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.177.96.1 213.177.97.1
Затем редактируем файл /etc/resolv.conf:
nameserver 213.177.96.1
nameserver 213.177.97.1
nameserver 213.177.97.1
Комментариев нет:
Отправить комментарий