Домой

Настраиваем сеть в Debian8


Для версии Debian 8 (узнать версию можно так: http://online-helper.ru/kak-uznat-versiyu-debian.html)


1. Настройка сетевой интерфейс:
редактируем /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 eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.202
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1


2. Настраиваем ДНС
редактируем /etc/resolv.conf
Пример:
domain localdomain
search localdomain
nameserver 192.168.0.1

2. Перезапускаем сеть
/etc/init.d/networking restart