ip-config.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 26 Sep 2010 16:52:43 +0300
changeset 563 405f99f70163
parent 1 743f7a15697a
permissions -rw-r--r--
Чтение tion/ssion/sion...

-*- mode: outline; coding: windows-1251 -*-

* Solaris

Îïèñàíèå ôàéëîâ êîíôèãóðàöèè:

  $ cat /etc/nodename       (ñåòåâîå èìÿ êîìïüþòåðà áåç äîìåíà)
  sparc
  $ cat /etc/resolv.conf    (Íàñòðîéêè DNS)
  domain bifit.int
  nameserver 192.168.1.1
  $ cat /etc/hostname.eri0  (èìÿ èç hosts èëè IP)
  sparc
  $ cat /etc/hosts          (íàçíà÷åíèå IP õîñòó)
  #
  # Internet host table
  #
  ::1 localhost             (îáÿçàòåëüíàÿ ñòðîêà)
  127.0.0.1   localhost     (îáÿçàòåëüíàÿ ñòðîêà)
  192.168.1.41    sparc   loghost   (îáÿçàòåëüíàÿ ñòðîêà, èìÿ íàñòðàèâàåìîãî õîñòà è åãî IP)
  192.168.1.26    gavenko
  $ cat /etc/netmask        (íàçíà÷èòü ñåòåâóþ ìàñêó äëÿ ïîäñåòåé)
  #
  #   network-number  netmask
  #
  192.168.1.0 255.255.255.0

* Debian

Îïèñàíèå ôàéëîâ êîíôèãóðàöèè:

  $ 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