ip-config.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 26 Sep 2010 16:23:05 +0300
changeset 562 e31d58c070f7
parent 1 743f7a15697a
permissions -rw-r--r--
Нечитаемые согласные.

-*- 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