debian-networking.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:46:36 +0200
changeset 1905 fba288d59662
parent 1894 2e3bc2435d68
child 1912 8b81a8f0f692
permissions -rw-r--r--
Include only local subsections into TOC. This prevent duplication of TOC when build single page HTML document. Also this make unnecessary CSS hack to hide document title as top level section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

===================
 Debian networking
===================
.. contents::
   :local:

Описание файлов конфигурации::

  $ cat /etc/hostname       (сетевое имя компьютера без домена)
  debian-vm
  $ cat /etc/resolv.conf    (Настройки DNS)
  search bifit.int
  nameserver 192.168.1.1
  $ cat /etc/hostname.eri0  (имя из hosts или IP)
  sparc
  $ cat /etc/hosts          (назначение IP хосту)
  127.0.0.1     localhost                      (обязательная строка)
  192.168.1.26  debian-vm.bifit.int debian-vm  (обязательная строка)
  $ cat /etc/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.1.26          (назначить сетевой адрес интерфейса)
      netmask 255.255.255.0         (назначить сетевую маску для подсетей)
      network 192.168.1.0
      broadcast 192.168.1.255
      gateway 192.168.1.1
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 192.168.1.1
      dns-search bifit.int