diff --git a/ru_RU.KOI8-R/books/Makefile b/ru_RU.KOI8-R/books/Makefile index 1746d79488..458d3332e8 100644 --- a/ru_RU.KOI8-R/books/Makefile +++ b/ru_RU.KOI8-R/books/Makefile @@ -8,7 +8,6 @@ SUBDIR = faq SUBDIR+= handbook SUBDIR+= porters-handbook -SUBDIR+= ppp-primer ROOT_SYMLINKS = faq handbook diff --git a/ru_RU.KOI8-R/books/developers-handbook/driverbasics/chapter.sgml b/ru_RU.KOI8-R/books/developers-handbook/driverbasics/chapter.sgml deleted file mode 100644 index 39bb5ae739..0000000000 --- a/ru_RU.KOI8-R/books/developers-handbook/driverbasics/chapter.sgml +++ /dev/null @@ -1,410 +0,0 @@ -<?xml version="1.0" encoding="koi8-r" standalone="no"?> -<!-- - The FreeBSD Russian Documentation Project - - $FreeBSD$ - $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/developers-handbook/driverbasics/chapter.sgml,v 1.1 2001/01/10 08:45:03 andy Exp $ - - Original revision: 1.3 ---> - -<chapter id="driverbasics"> - <title>��������� ��������� ��������� ��� FreeBSD</title> - - <para>��� ����� ������� ������ ������� (Murray Stokely) �� ������ ��������� - ����������, ������� ���������� �������� intro(4), ��������� ������� - ������ (Joerg Wunsch).</para> - - <sect1> - <title>��������</title> - - <para>��� ����� �������� ������� ��������� � ������� ��������� ��������� - ��������� ��� FreeBSD. � ���� ��������� ������ ���������� ������������ - � �������� ��� �����, ��������� � �������������, ����������� � �������, - �����, ��� �����, ���������� ���������� ��� ����������� ������� � - ������������. ������� ���������� �������� ����������� ����������� - ������������ �������, ����������� ��������� �����������. ������� ����� - ��� ���������� ������-����������, � ������ ������� ������� ���������� - ��������� ��������� ���������� ����������, ��� ������� �����-���� - ��������������� ����������. �������� ��������� ����� ���� - �������������� � ������� ���������� ��� ����� ����������� �� ���������� - ��� ������ ��������� ������������� ������������ ���� `kld'.</para> - - <para>����������� ��������� � Unix-�������� ������������ ������� �������� - ����� ����� ��������� (device-nodes), ������ ����� ���������� - ������������ �������. � �������� �������� ������� ��� ����� ������ - ��������� � �������� <filename>/dev</filename>. ���� ������� devfs - ��������� �� ������������� �� FreeBSD, ������ ���� ���������� ������ - ����������� ���������� � ��� ����������� �� ������� ���������������� - �������� ���������. ����������� ������ ��������� � ������� ��������� - ��� ������ ������� <command>MAKEDEV</command>.</para> - - <para>�������� ��������� ����� ���� ������� ��������� �� ��� ���������; - �������� ���������� � ������� ���������.</para> - </sect1> - - <sect1> - <title>�������� ������������� ������������ ���� - KLD</title> - - <para>��������� kld ��������� ��������� ��������������� ����������� - ��������� � ������� ���������������� �� ���������� �������. ��� - ��������� ������������� ��������� ��������� ��������� ����������� - ��������� � ���������� ���� ��� ���������� ������������ ��� - ������������ ���������.</para> - - <para>��� ������ � ����������� kld ������������ ��������� ������� - ��������������: - - <itemizedlist> - <listitem> - <simpara> - <command>kldload</command> - ��������� ����� ������ ���� - </simpara> - </listitem> - - <listitem> - <simpara> - <command>kldunload</command> - ��������� ������ ���� - </simpara> - </listitem> - - <listitem> - <simpara> - <command>kldstat</command> - ������� ������ ����������� � ������ - ������ ������� - </simpara> - </listitem> - </itemizedlist> - </para> - - <para>������ ������ ����</para> - - <programlisting> -/* - * KLD Skeleton - * Inspired by Andrew Reiter's Daemonnews article - */ - -#include <sys/types.h> -#include <sys/module.h> -#include <sys/systm.h> /* uprintf */ -#include <sys/errno.h> -#include <sys/param.h> /* defines used in kernel.h */ -#include <sys/kernel.h> /* types used in module initialization */ - -/* - * Load handler that deals with the loading and unloading of a KLD. - */ - -static int -skel_loader(struct module *m, int what, void *arg) -{ - int err = 0; - - switch (what) { - case MOD_LOAD: /* kldload */ - uprintf("Skeleton KLD loaded.\n"); - break; - case MOD_UNLOAD: - uprintf("Skeleton KLD unloaded.\n"); - break; - default: - err = EINVAL; - break; - } - return(err); -} - -/* Declare this module to the rest of the kernel */ - -DECLARE_MODULE(skeleton, skel_loader, SI_SUB_KLD, SI_ORDER_ANY); - </programlisting> - - <sect2> - <title>Makefile</title> - - <para>�� FreeBSD ������� ��������� ��� ��������� � make-�����, ������� - �� ������ ������������ ��� ������� ���������� ����������� ���������� - � ����.</para> - - <programlisting> -SRCS=skeleton.c -KMOD=skeleton - -.include <bsd.kmod.mk> - </programlisting> - - <para>������� ������ ������� <command>make</command> � ���� make-������ - �������� � �������� ����� <filename>skeleton.ko</filename>, ������� - ����� ��������� � ���� �������, ������: - - <screen> -&prompt.root kldload -v ./skeleton.ko - </screen> - </para> - </sect2> - </sect1> - - <sect1> - <title>��������� � �������� ����������</title> - - <para>Unix ���� ��������� ����� ����� ��������� ������� ��� ������������� - � ���������������� �����������. ����� ������������ ���������� � - ����� ����������, ������� ������ ���� �������������� ��� ��������� � - ���������������� �������� ����������. ������ - <command>/dev/MAKEDEV</command> ������� ����������� ������ ��������� � - ����� �������, ������ ���� �� ������ ���������� ������ ������������ - ��������, �� ����� ��������� ������������� � �������� ����������� - ������ ��������� ��� ������ ������� <command>mknod</command>.</para> - - <sect2> - <title>�������� ����������� ������ ���������</title> - - <para>��� �������� ����� ���������� ������� <command>mknod</command> - ��������� ������� ������ ���������. �� ������ ������� ��� ����� - ����� ����������, ��� ����������, ������� ����� ���������� � ������� - ����� ����������.</para> - </sect2> - - <sect2> - <title>������������ ����� ���������</title> - - <para>�������� ������� ���������, devfs, ������������� ������ � - ������������ ���� ��������� ���� �� ����������� ������������ ���� - �������� �������. ��� ��������� ������������� �������� ������� - �������� ��� ������������ ����� ���������� ��� ����� ���������� ��� - �������������� �������� ����������. Devfs ��� ��� ��������� � - ����������, ������ ��� ��� ���������� ������ ��������.</para> - </sect2> - </sect1> - - <sect1> - <title>���������� ����������</title> - - <para>������� ����������� ���������� �������� ������ ��������������� � - ��� �� �������� ������������. ��� ����� ���������������� ��� �������� - ���������� � � ������ �������� ������� ������� ���������� ������� - �������� ����� ���������.</para> - - <para>� ���� ������� ������� ������-���������� ���������� ����� ������ - ��������, ������� �� � ���� �����������, � ����� ����� �������� �� - ����� ��� ������ �� ����� ����������.</para> - - <programlisting> -/* - * Simple `echo' pseudo-device KLD - * - * Murray Stokely - */ - -#define MIN(a,b) (((a) < (b)) ? (a) : (b)) - -#include <sys/types.h> -#include <sys/module.h> -#include <sys/systm.h> /* uprintf */ -#include <sys/errno.h> -#include <sys/param.h> /* defines used in kernel.h */ -#include <sys/kernel.h> /* types used in module initialization */ -#include <sys/conf.h> /* cdevsw struct */ -#include <sys/uio.h> /* uio struct */ -#include <sys/malloc.h> - -#define BUFFERSIZE 256 - -/* Function prototypes */ -d_open_t echo_open; -d_close_t echo_close; -d_read_t echo_read; -d_write_t echo_write; - -/* Character device entry points */ -static struct cdevsw echo_cdevsw = { - echo_open, - echo_close, - echo_read, - echo_write, - noioctl, - nopoll, - nommap, - nostrategy, - "echo", - 33, /* reserved for lkms - /usr/src/sys/conf/majors */ - nodump, - nopsize, - D_TTY, - -1 -}; - -typedef struct s_echo { - char msg[BUFFERSIZE]; - int len; -} t_echo; - -/* vars */ -static dev_t sdev; -static int len; -static int count; -static t_echo *echomsg; - -MALLOC_DECLARE(M_ECHOBUF); -MALLOC_DEFINE(M_ECHOBUF, "echobuffer", "buffer for echo module"); - -/* - * This function acts is called by the kld[un]load(2) system calls to - * determine what actions to take when a module is loaded or unloaded. - */ - -static int -echo_loader(struct module *m, int what, void *arg) -{ - int err = 0; - - switch (what) { - case MOD_LOAD: /* kldload */ - sdev = make_dev(<literal>&</literal>echo_cdevsw, - 0, - UID_ROOT, - GID_WHEEL, - 0600, - "echo"); - /* kmalloc memory for use by this driver */ - /* malloc(256,M_ECHOBUF,M_WAITOK); */ - MALLOC(echomsg, t_echo *, sizeof(t_echo), M_ECHOBUF, M_WAITOK); - printf("Echo device loaded.\n"); - break; - case MOD_UNLOAD: - destroy_dev(sdev); - FREE(echomsg,M_ECHOBUF); - printf("Echo device unloaded.\n"); - break; - default: - err = EINVAL; - break; - } - return(err); -} - -int -echo_open(dev_t dev, int oflags, int devtype, struct proc *p) -{ - int err = 0; - - uprintf("Opened device \"echo\" successfully.\n"); - return(err); -} - -int -echo_close(dev_t dev, int fflag, int devtype, struct proc *p) -{ - uprintf("Closing device \"echo.\"\n"); - return(0); -} - -/* - * The read function just takes the buf that was saved via - * echo_write() and returns it to userland for accessing. - * uio(9) - */ - -int -echo_read(dev_t dev, struct uio *uio, int ioflag) -{ - int err = 0; - int amt; - - /* How big is this read operation? Either as big as the user wants, - or as big as the remaining data */ - amt = MIN(uio->uio_resid, (echomsg->len - uio->uio_offset > 0) ? echomsg->len - uio->uio_offset : 0); - if ((err = uiomove(echomsg->msg + uio->uio_offset,amt,uio)) != 0) { - uprintf("uiomove failed!\n"); - } - - return err; -} - -/* - * echo_write takes in a character string and saves it - * to buf for later accessing. - */ - -int -echo_write(dev_t dev, struct uio *uio, int ioflag) -{ - int err = 0; - - /* Copy the string in from user memory to kernel memory */ - err = copyin(uio->uio_iov->iov_base, echomsg->msg, MIN(uio->uio_iov->iov_len,BUFFERSIZE)); - - /* Now we need to null terminate */ - *(echomsg->msg + MIN(uio->uio_iov->iov_len,BUFFERSIZE)) = 0; - /* Record the length */ - echomsg->len = MIN(uio->uio_iov->iov_len,BUFFERSIZE); - - if (err != 0) { - uprintf("Write failed: bad address!\n"); - } - - count++; - return(err); -} - -DEV_MODULE(echo,echo_loader,NULL); - </programlisting> - - <para>����� ���, ��� ������������� ���� �������, � ����� �������� ������� - ��� ����� ������� ���� ���������� ��� ������ �������, �������� - ���������:</para> - - <screen> -&prompt.root mknod /dev/echo c 33 0 - </screen> - - <para>����� ���� ������� ��������, �� ������ ��������� ��������� - ��������:</para> - - <screen> -&prompt.root echo -n "Test Data" > /dev/echo -&prompt.root cat /dev/echo -Test Data - </screen> - - <para>�� �����������, ������������� �������� ������������, �������������� - � ��������� �����..</para> - - <para>�������������� ��������� ���������� - <itemizedlist> - <listitem> - <simpara><ulink - url="http://www.daemonnews.org/200010/blueprints.html">������� - �� ���������������� ��������� ������������� ������������ ���� - (KLD)</ulink> - <ulink - url="http://www.daemonnews.org">Daemonnews</ulink> - ������� 2000 - </simpara> - </listitem> - - <listitem> - <simpara><ulink - url="http://www.daemonnews.org/200007/newbus-intro.html">��� - ������ �������� ���� � ��������� NEWBUS</ulink> - <ulink - url="http://www.daemonnews.org">Daemonnews</ulink> ���� 2000 - </simpara> - </listitem> - </itemizedlist> - </para> - </sect1> - - <sect1> - <title>������� ��������</title> - - <para>� ������ ��������� ������� ��������� ����� ��������� ��� ������� � - ��� �� ������������. �� ����� ������� �� ������ ���������, ���������� - � ����, � �� ������������ ����� open(); �� ������������� ������� - ��������� � ����� ������ ���������� � �������� ���������� ������ - socket(2).</para> - - <para>��������� ���������� ���������� � ������ ifnet(), ���������� - loopback, ��������� �������� ����� ���� (Bill Paul), � ��� - �����..</para> - </sect1> -</chapter> diff --git a/ru_RU.KOI8-R/books/developers-handbook/locking/chapter.sgml b/ru_RU.KOI8-R/books/developers-handbook/locking/chapter.sgml deleted file mode 100644 index c1241c5207..0000000000 --- a/ru_RU.KOI8-R/books/developers-handbook/locking/chapter.sgml +++ /dev/null @@ -1,340 +0,0 @@ -<?xml version="1.0" encoding="koi8-r" standalone="no"?> -<!-- - The FreeBSD Russian Documentation Project - - The FreeBSD SMP Next Generation Project - - $FreeBSD$ - $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/developers-handbook/locking/chapter.sgml,v 1.1 2001/02/19 06:44:22 andy Exp $ - - Original revision: 1.2 ---> - -<chapter id="locking"> - <title>��������� �� ����������</title> - - <para><emphasis>��� ����� �������������� �������� FreeBSD SMP Next - Generation Project - <email>freebsd-smp@FreeBSD.org</email>.</emphasis></para> - - <para>���� �������� ��������� �������� ����������, ������������ � ���� - FreeBSD ��� ����������� ����������� ��������� ���������� ����������� � - ����. ���������� ����� ������������� � ���������� ����� ������. - ��������� ������ ����� ���� �������� � ������� ���������� mutex ��� - &man.lockmgr.9;. ��������� ���������� �������� ������ � ���� ����������� - ������������ ��� ������� � ��� ��������.</para> - - <sect1> - <title>��������</title> - - <para>������� (mutex) - ��� ������ ����������, ������������ ��� - ���������� ��������������� ����������������. � ���������, � ������ - ������ ������� ��������� ����� ������� ������ ���� ������. ���� - �����-�� ������ ����� �������� �������, ������� ��� ���-�� �����, �� - ������ ��������� ������� ��� ������������. � ���� FreeBSD ����������� - ��������� �������� ��������.</para> - - <para>�������� ����� ���� ����������� ����������, �� ��������������, ��� - ��� ���������� �� �������� �����. � ���������, ��������� �������� - ������ ����������� �����. ���� ��� ����� ��������� ���������� �� ����� - �����, ����������� ���������� ����� &man.lockmgr.9;.</para> - - <para>������ ������� ����� ��������� �������������� ������� - �������������:</para> - - <variablelist> - <varlistentry> - <term>��� ����������</term> - <listitem> - <para>��� ���������� <type>struct mtx</type> � �������� ������� - ����.</para> - </listitem> - </varlistentry> - - <varlistentry> - <term>���������� ���</term> - <listitem> - <para>��� ��������, ����������� ��� ����� - <function>mtx_init</function>. ��� ��� ��������� � ���������� - ����������� KTR � ��������������� ��������������� � ��������� - ���������� � ������������ ��� ������������� ��������� � - ���������� ����.</para> - </listitem> - </varlistentry> - - <varlistentry> - <term>���</term> - <listitem> - <para>��� �������� � �������� ������ <constant>MTX_*</constant>. - �������� ������� ����� ������� � ��� ������� ���, ��� ��� ������� - � &man.mutex.9;.</para> - - <variablelist> - <varlistentry> - <term><constant>MTX_DEF</constant></term> - <listitem> - <para>Sleep-�������</para> - </listitem> - </varlistentry> - - <varlistentry> - <term><constant>MTX_SPIN</constant></term> - <listitem> - <para>Spin-�������</para> - </listitem> - </varlistentry> - - <varlistentry> - <term><constant>MTX_COLD</constant></term> - <listitem> - <para>���� ������� ���������������� ����� ����. ������� �� - ������ ���� �������� ����� ������� - <function>MUTEX_DECLARE</function>, � ���� - <constant>MTX_COLD</constant> ������ ���� ������� � ������� - <function>mtx_init</function>.</para> - </listitem> - </varlistentry> - - <varlistentry> - <term><constant>MTX_TOPHALF</constant></term> - <listitem> - <para>���� spin-������� �� ��������� ����������.</para> - </listitem> - </varlistentry> - - <varlistentry> - <term><constant>MTX_NORECURSE</constant></term> - <listitem> - <para>���� ������� �� ����������� ����������� - ����������.</para> - </listitem> - </varlistentry> - </variablelist> - </listitem> - </varlistentry> - - <varlistentry> - <term>������</term> - <listitem> - <para>������ �������� ������ ��� ������ �������� ������, ������� - �������� ���� �������. ��� ������ �������� ������ ��� ����� � - ����� - <structname/��� ���������/.<structfield/��� ����� - ���������/.</para> - </listitem> - </varlistentry> - - <varlistentry> - <term>��������� �������</term> - <listitem> - <para>�������, ������� ����� �������, ���� ���� ������� - �����.</para> - </listitem> - </varlistentry> - </variablelist> - - <table frame="all" colsep="1" rowsep="1" pgwide="1"> - <title>������ ���������</title> - - <tgroup cols="5"> - <thead> - <row> - <entry>��� ����������</entry> - <entry>���������� ���</entry> - <entry>���</entry> - <entry>������</entry> - <entry>��������� �������</entry> - </row> - </thead> - - <!-- ���������� ������������ ����� --> - <tbody> - <row> - <entry>sched_lock</entry> - <entry><quote>sched lock</quote></entry> - <entry> - <constant>MTX_SPIN</constant> | - <constant>MTX_COLD</constant> - </entry> - <entry> - <varname>_gmonparam</varname>, - <varname>cnt.v_swtch</varname>, - <varname>cp_time</varname>, - <varname>curpriority</varname>, - <structname/mtx/.<structfield/mtx_blocked/, - <structname/mtx/.<structfield/mtx_contested/, - <structname/proc/.<structfield/p_contested/, - <structname/proc/.<structfield/p_blocked/, - <structname/proc/.<structfield/p_flag/ - (<constant>P_PROFIL</constant> XXX, - <constant>P_INMEM</constant>, - <constant>P_SINTR</constant>, - <constant>P_TIMEOUT</constant>, - <constant>P_SWAPINREQ</constant> XXX, - <constant>P_INMEN</constant> XXX), - <structname/proc/.<structfield/p_nice/, - <structname/proc/.<structfield/p_procq/, - <structname/proc/.<structfield/p_blocked/, - <structname/proc/.<structfield/p_estcpu/, - <structname/proc/.<structfield/p_nativepri/, - <structname/proc/.<structfield/p_priority/, - <structname/proc/.<structfield/p_usrpri/, - <structname/proc/.<structfield/p_rtprio/, - <structname/proc/.<structfield/p_rqindex/, - <structname/proc/.<structfield/p_stats->p_prof/, - <structname/proc/.<structfield/p_stats->p_ru/, - <structname/proc/.<structfield/p_stat/, - <structname/proc/.<structfield/p_cpticks/ - <structname/proc/.<structfield/p_iticks/, - <structname/proc/.<structfield/p_uticks/, - <structname/proc/.<structfield/p_sticks/, - <structname/proc/.<structfield/p_swtime/, - <structname/proc/.<structfield/p_slptime/, - <structname/proc/.<structfield/p_runtime/, - <structname/proc/.<structfield/p_pctcpu/, - <structname/proc/.<structfield/p_oncpu/, - <structname/proc/.<structfield/p_asleep/, - <structname/proc/.<structfield/p_wchan/, - <structname/proc/.<structfield/p_wmesg/, - <structname/proc/.<structfield/p_slpq/, - <structname/proc/.<structfield/p_vmspace/ - (XXX - � <function>statclock</function>), - <varname>pscnt</varname>, - <varname>slpque</varname>, - <varname>itqueuebits</varname>, - <varname>itqueues</varname>, - <varname>rtqueuebits</varname>, - <varname>rtqueues</varname>, - <varname>queuebits</varname>, - <varname>queues</varname>, - <varname>idqueuebits</varname>, - <varname>idqueues</varname>, - <varname>switchtime</varname>, - </entry> - <entry> - <function>setrunqueue</function>, - <function>remrunqueue</function>, - <function>mi_switch</function>, - <function>chooseproc</function>, - <function>schedclock</function>, - <function>resetpriority</function>, - <function>updatepri</function>, - <function>maybe_resched</function>, - <function>cpu_switch</function>, - <function>cpu_throw</function> - </entry> - </row> - - <!-- The vm86 pcb lock --> - <row> - <entry>vm86pcb_lock</entry> - <entry><quote>vm86pcb lock</quote></entry> - <entry> - <constant>MTX_DEF</constant> | - <constant>MTX_COLD</constant> - </entry> - <entry> - <varname>vm86pcb</varname> - </entry> - <entry> - <function>vm86_bioscall</function> - </entry> - </row> - - <!-- Giant --> - <row> - <entry>Giant</entry> - <entry><quote>Giant</quote></entry> - <entry> - <constant>MTX_DEF</constant> | - <constant>MTX_COLD</constant> - </entry> - <entry>nearly everything</entry> - <entry>lots</entry> - </row> - - <!-- The callout lock --> - <row> - <entry>callout_lock</entry> - <entry><quote>callout lock</quote></entry> - <entry> - <constant>MTX_SPIN</constant> - </entry> - <entry> - <varname>callfree</varname>, - <varname>callwheel</varname>, - <varname>nextsoftcheck</varname>, - <structname/proc/.<structfield/p_itcallout/, - <structname/proc/.<structfield/p_slpcallout/, - <varname>softticks</varname>, - <varname>ticks</varname> - </entry> - <entry> - </entry> - </row> - </tbody> - </tgroup> - </table> - </sect1> - - <sect1> - <title>���������� ��������� ����������</title> - - <para>����������, ������� ������ ����� ��������� &man.lockmgr.9;, - �������� ������������ ��������� ����������. ��� ���������� �������� - ������������ �� ������/������ � ��� ����� ������� �������� � ��������� - ��������.</para> - - <table> - <title>������ ���������� &man.lockmgr.9;</title> - - <tgroup cols="2"> - <thead> - <row> - <entry>��� ����������</entry> - <entry>������</entry> - </row> - </thead> - <tbody> - <row> - <entry><varname>allproc_lock</varname></entry> - <entry> - <varname>allproc</varname> - <varname>zombproc</varname> - <varname>pidhashtbl</varname> - <structname/proc/.<structfield/p_list/ - <structname/proc/.<structfield/p_hash/ - <varname>nextpid</varname> - </entry> - <entry><varname>proctree_lock</varname></entry> - <entry> - <structname/proc/.<structfield/p_children/ - <structname/proc/.<structfield/p_sibling/ - </entry> - </row> - </tbody> - </tgroup> - </table> - </sect1> - - <sect1> - <title>�������� ���������� ����������</title> - - <para>����������, ���������� ��������, �������� ������ ����������, - ������� �� ���������� ����� �����������. ������ ����� ��� ������� � - ������ ���������� ������������ ����������� ��������� ��������, ��� - ������� � &man.atomic.9;. ���� ��������� ���������� ������������ ����� - �������, ���� ������ ��������� �������������, ����� ��� ��������, - ����������� � �������� ����������� �����������.</para> - - <itemizedlist> - <listitem> - <para><varname>astpending</varname></para> - </listitem> - - <listitem> - <para><structname/mtx/.<structfield/mtx_lock/</para> - </listitem> - </itemizedlist> - </sect1> -</chapter> diff --git a/ru_RU.KOI8-R/books/developers-handbook/pci/chapter.sgml b/ru_RU.KOI8-R/books/developers-handbook/pci/chapter.sgml deleted file mode 100644 index 32a689d1a4..0000000000 --- a/ru_RU.KOI8-R/books/developers-handbook/pci/chapter.sgml +++ /dev/null @@ -1,222 +0,0 @@ -<?xml version="1.0" encoding="koi8-r" standalone="no"?> -<!-- - The FreeBSD Russian Documentation Project - - $FreeBSD$ - $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/developers-handbook/pci/chapter.sgml,v 1.1 2001/02/19 06:50:23 andy Exp $ - - Original revision: 1.1 ---> - -<chapter id="pci"> - <title>���������� PCI</title> - - <para>��� ����� ��������� ���������� FreeBSD �� ��������� ��������� - ���������, ���������� �� ���� PCI.</para> - - <sect1><title>����������� � �����������</title> - - <para>����� ��������� ���������� � ���, ��� ��� ���� PCI �������� �� - �������������� ����������� � ���������� ����������� ������������ �������� - kld ��������� ����������� � ������-���� �� ���.</para> - - <programlisting> -/* - * Simple KLD to play with the PCI functions. - * - * Murray Stokely - */ - -#define MIN(a,b) (((a) < (b)) ? (a) : (b)) - -#include <sys/types.h> -#include <sys/module.h> -#include <sys/systm.h> /* uprintf */ -#include <sys/errno.h> -#include <sys/param.h> /* defines used in kernel.h */ -#include <sys/kernel.h> /* types used in module initialization */ -#include <sys/conf.h> /* cdevsw struct */ -#include <sys/uio.h> /* uio struct */ -#include <sys/malloc.h> -#include <sys/bus.h> /* structs, prototypes for pci bus stuff */ - -#include <pci/pcivar.h> /* For get_pci macros! */ - -/* Function prototypes */ -d_open_t mypci_open; -d_close_t mypci_close; -d_read_t mypci_read; -d_write_t mypci_write; - -/* Character device entry points */ - -static struct cdevsw mypci_cdevsw = { - mypci_open, - mypci_close, - mypci_read, - mypci_write, - noioctl, - nopoll, - nommap, - nostrategy, - "mypci", - 36, /* reserved for lkms - /usr/src/sys/conf/majors */ - nodump, - nopsize, - D_TTY, - -1 -}; - -/* vars */ -static dev_t sdev; - -/* We're more interested in probe/attach than with - open/close/read/write at this point */ - -int -mypci_open(dev_t dev, int oflags, int devtype, struct proc *p) -{ - int err = 0; - - uprintf("Opened device \"mypci\" successfully.\n"); - return(err); -} - -int -mypci_close(dev_t dev, int fflag, int devtype, struct proc *p) -{ - int err=0; - - uprintf("Closing device \"mypci.\"\n"); - return(err); -} - -int -mypci_read(dev_t dev, struct uio *uio, int ioflag) -{ - int err = 0; - - uprintf("mypci read!\n"); - return err; -} - -int -mypci_write(dev_t dev, struct uio *uio, int ioflag) -{ - int err = 0; - - uprintf("mypci write!\n"); - return(err); -} - -/* PCI Support Functions */ - -/* - * Return identification string if this is device is ours. - */ -static int -mypci_probe(device_t dev) -{ - uprintf("MyPCI Probe\n" - "Vendor ID : 0x%x\n" - "Device ID : 0x%x\n",pci_get_vendor(dev),pci_get_device(dev)); - - if (pci_get_vendor(dev) == 0x11c1) { - uprintf("We've got the Winmodem, probe successful!\n"); - return 0; - } - - return ENXIO; -} - -/* Attach function is only called if the probe is successful */ - -static int -mypci_attach(device_t dev) -{ - uprintf("MyPCI Attach for : deviceID : 0x%x\n",pci_get_vendor(dev)); - sdev = make_dev(<literal>&</literal>mypci_cdevsw, - 0, - UID_ROOT, - GID_WHEEL, - 0600, - "mypci"); - uprintf("Mypci device loaded.\n"); - return ENXIO; -} - -/* Detach device. */ - -static int -mypci_detach(device_t dev) -{ - uprintf("Mypci detach!\n"); - return 0; -} - -/* Called during system shutdown after sync. */ - -static int -mypci_shutdown(device_t dev) -{ - uprintf("Mypci shutdown!\n"); - return 0; -} - -/* - * Device suspend routine. - */ -static int -mypci_suspend(device_t dev) -{ - uprintf("Mypci suspend!\n"); - return 0; -} - -/* - * Device resume routine. - */ - -static int -mypci_resume(device_t dev) -{ - uprintf("Mypci resume!\n"); - return 0; -} - -static device_method_t mypci_methods[] = { - /* Device interface */ - DEVMETHOD(device_probe, mypci_probe), - DEVMETHOD(device_attach, mypci_attach), - DEVMETHOD(device_detach, mypci_detach), - DEVMETHOD(device_shutdown, mypci_shutdown), - DEVMETHOD(device_suspend, mypci_suspend), - DEVMETHOD(device_resume, mypci_resume), - - { 0, 0 } -}; - -static driver_t mypci_driver = { - "mypci", - mypci_methods, - 0, - /* sizeof(struct mypci_softc), */ -}; - -static devclass_t mypci_devclass; - -DRIVER_MODULE(mypci, pci, mypci_driver, mypci_devclass, 0, 0); - </programlisting> - - <para>�������������� ���������� - <itemizedlist> - <listitem><simpara><ulink - url="http://www.pcisig.org">PCI Special Interest - Group</ulink></simpara> - </listitem> - <listitem><simpara>PCI System Architecture, Fourth Edition by - Tom Shanley, et al.</simpara></listitem> - </itemizedlist> - </para> -</sect1> -</chapter> diff --git a/ru_RU.KOI8-R/books/ppp-primer/Makefile b/ru_RU.KOI8-R/books/ppp-primer/Makefile deleted file mode 100644 index d2c46588c4..0000000000 --- a/ru_RU.KOI8-R/books/ppp-primer/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# -# $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/ppp-primer/Makefile,v 1.2 2001/07/25 10:17:01 phantom Exp $ -# $FreeBSD$ -# Original revision: 1.1 -# -# Build the PPP Primer -# - -MAINTAINER=athome@ukrpost.net - -DOC?= book - -FORMATS?= html-split html - -INSTALL_COMPRESSED?= gz -INSTALL_ONLY_COMPRESSED?= - -# -# SRCS lists the individual SGML files that make up the document. Changes -# to any of these files will force a rebuild -# - -# SGML content -SRCS= book.sgml - -DOC_PREFIX?= ${.CURDIR}/../../.. - -.include "${DOC_PREFIX}/share/mk/doc.project.mk" diff --git a/ru_RU.KOI8-R/books/ppp-primer/book.sgml b/ru_RU.KOI8-R/books/ppp-primer/book.sgml deleted file mode 100644 index ca52e96dfe..0000000000 --- a/ru_RU.KOI8-R/books/ppp-primer/book.sgml +++ /dev/null @@ -1,2458 +0,0 @@ -<?xml version="1.0" encoding="koi8-r" standalone="no"?> -<!DOCTYPE book PUBLIC "-//FreeBSD//DTD DocBook XML V4.2-Based Extension//EN" - "../../../share/sgml/freebsd42.dtd" [ -<!ENTITY % entities PUBLIC "-//FreeBSD//ENTITIES DocBook FreeBSD Entity Set//RU" "../../share/sgml/entities.ent"> -%entities; -]> - -<!-- - The FreeBSD Russian Documentation Project - - $FreeBSD$ - $FreeBSDru: frdp/doc/ru_RU.KOI8-R/books/ppp-primer/book.sgml,v 1.9 2004/07/16 12:06:27 den Exp $ - - Original revision: 1.11 ---> - -<book lang="ru"> - <bookinfo> - <title>��������� ����������� �� PPP</title> - - <authorgroup> - <author> - <firstname>����</firstname> - <surname>����</surname> - <affiliation> - <address><email>SimsS@IBM.net</email></address> - </affiliation> - </author> - </authorgroup> - - <releaseinfo>$FreeBSD$</releaseinfo> - - <abstract> - <para>��� ��������� ����������� �� ���������������� FreeBSD-������, - ��������������� ��� ��������������/����� �������������� ������� � - ��������� ����� (LAN). ���������������, ��� ���, ��� ������� � ������ - ����������� ��������� � ������ FreeBSD 2.2+, ����� �������, ���������� - �����������.</para> - </abstract> - </bookinfo> - - <preface> - <title>������� �����:</title> - - <para>�� ������ ������ ������������� ������������� PPP-���������� ������ - FreeBSD 2.2 (����� ��������� ��� <emphasis remap="it">"IIJ-PPP"</emphasis>) - ������������ ���������� ������� ��� ������������� ���������� � ��������. - ��� �����������, ��������� ����� ��� "<emphasis - remap="it">��������</emphasis>", "<emphasis - remap="it">IP-����������</emphasis>" ��� "<emphasis remap="it">���������� - ������� ������� (NA�)</emphasis>", ��������� FreeBSD-������� - ��������������� ��� ������������� ������������� ����� ��������� ����� �� - ���� Ethernet � ��������-����������� (ISP). ������� � ��������� ���� - ����� ������������ FreeBSD-������� ��� �������� ���������� � ��������, - ��������� ���� ������������ ������������� ����������.</para> - - <para>��� ����������� ��������� ���: - - <itemizedlist> - <listitem> - <para>��������������� FreeBSD-������� ��� ��������� ��������� - ����������,</para> - </listitem> - - <listitem> - <para>������������ ��� ���������� ��������� � ������� ��������� - ��������� ����,</para> - </listitem> - - <listitem> - <para>��������������� Windows-������� ��� ������������� - FreeBSD-������� ��� ����� � ��������.</para> - </listitem> - </itemizedlist> - </para> - - <para>���� �������� ����� ������� ����������� �������� �������� ������ ��� - ���������������� IP-����������, ��� ����� �������� ������������ ������� - ������ �������� ���������, ����������� ��� ���������������� � ��������� - ������� ���������� ����������; ������ ������ ����������� �������� - ��������������� � ����� ���� ����������� ��� ���������� �������� - ���������������� ��������� �������� ����������� �������������� � - �������������� FreeBSD-������.</para> - </preface> - - <chapter> - <title>���������� ��������� ����</title> - - <para>���� ��������� PPP �����, � ������ ��� � ����, ���� ���������������� - <emphasis>������</emphasis> ��� ����� FreeBSD-�������, ��� ����� ����� - ���� ������������ � �������� "�����" (��� "��������������") ����� - �������, ��������������� � ��������� ����, ��������� � ���������� ��� - ������� �������������� ��������.</para> - - <sect1> - <title>�������� ��������� ����</title> - - <para>� �������� �������, ������� �� ����� ������������ � ���� - �����������, ���������� �������� ��������� ����, �������������� �� - �������: - - <programlisting> -+---------+ ----> ������������� ���������� � �������� -| FreeBSD | \ (�.�.: NetCom, AOL, AT&T, EarthLink � �.�.) -| |-------- -| "Curly" | -| | -+----+----+ - | -|----+-------------+-------------+----| <-- ���� Ethernet - | | | - | | | -+----+----+ +----+----+ +----+----+ -| | | | | | -| Win95 | | WFW | | WinNT | -| "Larry" | | "Moe" | | "Shemp" | -| | | | | | -+---------+ +---------+ +---------+ - </programlisting> - </para> - </sect1> - - <sect1> - <title>��������� ��������� ����, �������� � ������ �����������</title> - - <para>���� ��������� �������� � ���� ����������� ��������� ����� - ��������� ����:</para> - - <para>������� � ������� ��� ������� ������� � ������, ����������� ������� - Ethernet-�������: - <itemizedlist> - <listitem> - <para>������ ��� ����������� FreeBSD ("Curly") � ������� ��������� - NE-2000, ������������������ ��� 'ed0'</para> - </listitem> - - <listitem> - <para>������� ������� ��� ����������� Windows '95 ("Larry") � - "�������" 32-������� ���������� ���������� Microsoft - TCP/IP</para> - </listitem> - - <listitem> - <para>������� ������� ��� ����������� Windows for Workgroups - ("Moe") � 16-������� Microsoft TCP/IP-������������</para> - </listitem> - - <listitem> - <para>������� ������� ��� ����������� Windows NT ("Shemp") � - "�������" 32-������� ���������� ���������� Microsoft - TCP/IP</para> - </listitem> - </itemizedlist> - </para> - - <para>IP-������ ������� Ethernet-����������� ���� ��������� ���� ����� �� - ���� �������, ����������������� (�� RFC 1918) ��� ������������� � - �������� ��������� �����. ����� ������� �� ����� ������ ������������ - ��� �� ����� ������ � ����� ��������� ���� � ����� �����, ����� - ���������. IP-������ ������������ ���:</para> - - <informaltable> - <tgroup cols="3"> - <thead> - <row> - <entry>���</entry> - <entry>IP-�����</entry> - <entry>��������</entry> - </row> - </thead> - <tbody> - <row> - <entry><hostid>Curly</hostid></entry> - <entry><hostid role="ipaddr">192.168.1.1</hostid></entry> - <entry>������� FreeBSD</entry> - </row> - - <row> - <entry><hostid>Larry</hostid></entry> - <entry><hostid role="ipaddr">192.168.1.2</hostid></entry> - <entry>������� Windows '95</entry> - </row> - - <row> - <entry><hostid>Moe</hostid></entry> - <entry><hostid role="ipaddr">192.168.1.3</hostid></entry> - <entry>������� Windows for Workgroups</entry> - </row> - - <row> - <entry><hostid>Shemp</hostid></entry> - <entry><hostid role="ipaddr">192.168.1.4</hostid></entry> - <entry>������� Windows NT box</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para>� ������ ����������� ���������, ��� ����� �� FreeBSD-������� - ��������� � ������� ����������������� ���������� - ('<filename>/dev/cuaa0</filename>' ��� '<emphasis - remap="tt">COM1:</emphasis>' ��� ������� � DOS-������������).</para> - - <para>� �������, �� ����� �������, ��� ��� ��������-��������� - ������������� ������������� IP-������ ��� ��� ����� ������ � - PPP/FreeBSD, ��� � ��� �����. (�.�. ������������ ������������ - IP-������ �� ����� �������� ����������.) ��������� � ���������������� - ����������� PPP-���� �� ������� ��������� �� 2-�� ������� ����������� - "���������������� FreeBSD-�������".</para> - </sect1> - </chapter> - - <chapter id="system-config"> - <title>���������������� FreeBSD-�������</title> - - <para>����� ��� ��� �� ������� ����������� ��������� ����, ����� - FreeBSD-������� ������ ���� �������� ��� �������� ����� - ����������:</para> - - <para> - <itemizedlist> - <listitem> - <para>��� ���� FreeBSD-�������; � ����� ������� - ��� "Curly",</para> - </listitem> - - <listitem> - <para>������������ ����,</para> - </listitem> - - <listitem> - <para>���� <filename>/etc/hosts</filename>, ������� ��������� - ������������ ���� � IP-������� ������ ����� � ����� ��������� - ����.</para> - </listitem> - </itemizedlist> - </para> - - <para>���� �� ��������� ��������� FreeBSD, ��������� ������� ����������, �� - ��������� ��������� �������� ��� ���������������� ��� ����� - FreeBSD-�������.</para> - - <para>����, ���� �� �������, ��� FreeBSD-������� ���� ��������� - ���������������� �� ������ ���������, ���������� ��� ��� ��� ��������� - ������������ ���� ���������� ��� �������������� ������������� ������� � - ����������.</para> - - <sect1> - <title>�������� ����� ���� FreeBSD-�������</title> - - <para>��������, ��� ��� ���� FreeBSD-������� ��� ���� ���������� � - ��������� � �������� ��������� ���������. ��� ��������, ��� ��� - ������������� ���, ������� ��������� �������:</para> - - <para> - <informalexample> - <screen> -# hostname - </screen> - </informalexample> - </para> - - <para>�������� ��� ���� FreeBSD-�������. ���� ��� �������� ���������� - (� ��� ����� ����������� :-) ���������� � <xref - linkend="verify-ether-if-config"/>.</para> - - <para>��������, ��� ����� ��������� ����, � ���������� ������ ������� - `hostname`, �� �� ������� 'curly.my.domain', ���� �� ��� ���� ���� - ����������� ��������� � �������� ��� ����� ���������. (�� ������ ����� - �� ������ ��������� �������� �� ����� ".my.domain", �� ���������� ��� - �����. ����� ������ ����� - ��� ���, ������� ��������� ����� ������ - ������.)</para> - - <para>���� �� ��� ���� �� ���� ���������� � �������� ��������� FreeBSD - �������� �� ������� ����� ����� 'myname.my.domain`. ����� ��� - ���������� ��������������� ���� <filename>/etc/rc.conf</filename> ��� - ��������� ����� ������.</para> - - <sect2> - <title>���������������� ����� ���� FreeBSD-�������</title> - - <para><emphasis><emphasis remap="bf">�������: �� ������ ���� - ���������������� � ������� ��� ������������ 'root' ��� �������������� - ��������� ���������������� ������!</emphasis></emphasis></para> - - <para><emphasis><emphasis remap="bf">��������������: ���� �� ��������� - ������ ��� �������������� ��������� ���������������� ������, ����� - ��������� ���, ��� ������� �� ������ ����������� ���������! ������ - ��������� ���������!</emphasis></emphasis></para> - - <para>���������������� ����, � ������� ������������ ��� ���� - FreeBSD-������� ��� �������� ���������� - <filename>/etc/rc.conf</filename>. ����������� ������� ��������� - �������� ('<emphasis remap="tt">ee</emphasis>') ��� �������������� - ����� �����.</para> - - <para>����� ����, ��� �� ����������������� � ������� ��� ������������ - 'root' ��������� ���� <filename>/etc/rc.conf</filename> � ��������, - ��������� ��������� �������: - <informalexample> - <screen> -# ee /etc/rc.conf - </screen> - </informalexample> - </para> - - <para>��������� ������� ���������� ��������, ������������� � ����� - ����� �� ��� ���, ���� �� ������� ������, ������� ���������� ��� - ���� FreeBSD-�������. �� ���������, ��� ������ �������� ���: - <informalexample> - <screen> ---- -### Basic network options: ### -hostname="myname.my.domain" # Set this! ---- - </screen> - </informalexample> - - ������ � ��� ������ ����� ��������� (� ����� �������): - <informalexample> - <screen> ---- -### Basic network options: ### -hostname="curly.my.domain" # Set this! ---- - </screen> - </informalexample> - </para> - - <para>������� ��� ����, ������� ������� 'Esc' ��� ������ � ��������� - ����. �������� ����� "�������� ��������" � �������� ������������� �� - ������ "��������� ���������?".</para> - </sect2> - </sect1> - - <sect1 id="verify-ether-if-config"> - <title>�������� ������������ Ethernet-����������</title> - - <para>������� ���, ��� � ������ ����������� ���������������, ��� - Ethernet-��������� � ������� FreeBSD ���������� '<emphasis - remap="tt">ed0</emphasis>'. ��� ����������� �������� ��� ����������� - NE-1000, NE-2000, WD/SMC (������� 8003, 8013) � ������� ��������� - Elite Ultra (8216).</para> - - <para>������ ������ ������� ��������� ����� ����� ��������� ����� � - ������� FreeBSD. ���������� � �������� ����� ���������� �������� (FAQ) - �� ������������ ������ �������� ��������. ���� � ��� �������� - ��������� ��� ����������� ����� ���������� ��� ������ �������� - ��������, ���������� � FAQ �� FreeBSD, ������� ����������� ��� - ���������� � �������� ��� � ������ ������������� (�.e. ��: '<emphasis - remap="tt">de0</emphasis>', '<emphasis remap="tt">zp0</emphasis>' - � �.�.).</para> - - <para>��� � � ������ � ������ ����, Ethernet-��������� FreeBSD-������� - ��� ����� ���� ��������������� � �������� ��������� �������.</para> - - <para>��� ������ ������������ ����������� ����� FreeBSD-������� (Ethernet - � ������), ������� ��������� �������: - <informalexample> - <screen> -# ifconfig -a - </screen> - </informalexample> - -(��� ������� ������������ ������: "������ ��� <emphasis remap="bf">�</emphasis> -����<emphasis remap="bf">�</emphasis>��� <acronym>������</acronym>������ -��� ���� ������� ���������.") </para> - -<para>������: -<informalexample> -<screen># ifconfig -a - ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 - inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 - ether 01:02:03:04:05:06 - lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 - tun0: flags=8050<POINTOPOINT,RUNNING, MULTICAST> mtu 1500 - sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 - ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 - lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 - inet 127.0.0.1 netmask 0xff000000 -# _</screen> -</informalexample> -</para> - -<para>� ���� �������, �������� ��������� ����������:</para> - -<para><emphasis remap="tt">ed0:</emphasis> ��������� Ethernet</para> - -<para><emphasis remap="tt">lp0:</emphasis> ��������� ������������� ����� (� -������ ����������� �� ���������������)</para> - -<para><emphasis remap="tt">tun0:</emphasis> "����������" ����������; -<emphasis>��� ���� �� ������� ������������� ppp!</emphasis></para> - -<para><emphasis remap="tt">sl0:</emphasis> SL/IP ���������� (� ������ -����������� �� ���������������)</para> - -<para><emphasis remap="tt">ppp0:</emphasis> ��� ���� ���������� PPP (��� ���� -ppp; � ������ ����������� �� ���������������)</para> - -<para><emphasis remap="tt">lo0:</emphasis> ���������� "��������� �����" (� -������ ����������� �� ���������������)</para> - -<para>��� ����� �� �������, ���������� 'ed0' � �������� ��������� � ��������. -��������� ����������: -<orderedlist> - -<listitem> -<para>��� ��������� "<acronym>�������</acronym>",</para> -</listitem> - -<listitem> -<para>����� ��������- ("<emphasis remap="tt">inet</emphasis>") �����, (� ������ -������ 192.168.1.1)</para> -</listitem> - -<listitem> -<para>������� ���������� ����� ������� ("����� ����"; 0xffffff00 �� �� �����, -��� � 255.255.255.0), and</para> -</listitem> - -<listitem> -<para>������ ���������� ����������������� ����� (� ������ ������ 192.168.1.255). -</para> -</listitem> - -</orderedlist> -</para> - -<para>���� �� ���������� ��� Ethernet-����� �������� ��� �������� ����: -<informalexample> -<screen>ed0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 - ether 01:02:03:04:05:06</screen> -</informalexample> - -�� ��� (�����) ��� �� ���� ���������������.</para> - -<para>���� ������������ Ethernet-���������� �����, �� �� ������ ������� � -<xref linkend="list-lan-hosts"/>.</para> - -<sect2 > -<title>���������������� Ethernet-����������</title> - -<para><emphasis><emphasis remap="bf">�������: �� ������ ���� ���������������� � -������� ��� ������������ 'root' ��� �������������� ��������� ���������������� -������!</emphasis> -</emphasis></para> - -<para><emphasis><emphasis remap="bf">��������������: ���� �� ��������� ������ -��� �������������� ��������� ���������������� ������, ����� ��� ���������, ��� -������� �� ������ ����������� ���������! ������ ���������!</emphasis></emphasis></para> - -<para>��������� ��� ��������� �������� ���������� ��� �������� ������� ��������� -� ����� <filename>/etc/rc.conf</filename>. ��� �������������� ����� ����� �� -������ ������������ ������� ��������� �������� ('ee') .</para> - -<para>����� ����, ��� �� ����������������� � ������� ��� ������������ 'root', -��������� ���� <filename>/etc/rc.conf</filename> � ��������, ��������� -��������� �������:</para> - -<para><command> # ee /etc/rc.conf</command></para> - -<para>�������� � ������ 20-� ������ ������ � ����� <filename>/etc/rc.conf</filename> -�� �������� ������, ������� ��������� �� ������� ����������, ������� ����� -������������� ��� �������� �������. � ����������� ���������������� ����� ��� -������ �������� ���, ��� �������� ����:</para> - -<para> -<informalexample> -<screen>network_interfaces="lo0" # List of network interfaces (lo0 is loopback).</screen> -</informalexample> -</para> - -<para>��� ���������� ��������� ��� ������, ����� �������� FreeBSD � ���, ��� �� -������� �������� ������ ����������, ������� ��� '<emphasis remap="tt">ed0</emphasis>'. -�������� ��� ������ ���, ��� �������� ����:</para> - -<para> -<informalexample> -<screen>network_interfaces="lo0 ed0" # List of network interfaces (lo0 is loopback).</screen> -</informalexample> -</para> - -<para>(�������� �������� �� ������ ����� ������������� ���������� ��������� -����� ("<emphasis remap="tt">lo0</emphasis>") � ����������� Ethernet -("<emphasis remap="tt">ed0</emphasis>")! </para> - -<para><emphasis><emphasis remap="bf"> �������: ���� ���� Ethernet-����� ����� ���, -�������� �� '<emphasis remap="tt">ed0</emphasis>', �� ������ ���� ������� ���, -������� ������������� ������ ����������.</emphasis></emphasis></para> - -<para>���� �� ������������� FreeBSD, ��������� ������� ����������, �� ������ -'<literal>network_interfaces=</literal>' ��� ������ �������� ���������� � ����� -������� ��������. � ���� ��� ���, �� ��� ��� ��������� ������������ ��������� -����� ����������.</para> - -<para>���������� ��������� ��� Ethernet-���������� ('<emphasis remap="tt">ed0</emphasis>'):</para> - -<para>��� �������, ������������ �������� ����������, ��������� ������, ������� -���������� ������� ��������� ��� ������� ����������. � ����������� ����� -<filename>/etc/rc.conf</filename> ���� ������, � ������� �������:</para> - -<para> -<informalexample> -<screen>ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. -</screen> -</informalexample> -</para> - -<para>��� ���������� �������� ������ ������, ����� ���, ����� ���������� ��������� -��� ���������� '<emphasis remap="tt">ed0</emphasis>'.</para> - -<para>���� �� ������������� FreeBSD, ��������� ������� ����������, �� ������ -'<literal>ifconfig_ed0=</literal>' ��� ������ �������������� ����� ����������� -��������� �����. ���� ��� ���, �� ��������� ������������ ��������� ����������. -</para> - -<para>� ����� ������� �� ������� ������ ����� ����� ����������� ���������� -��������� �����, ������� ����� ��������� ���:</para> - -<para> -<informalexample> -<screen>ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0"</screen> -</informalexample> -</para> - -<para>����� ��������� �������������� ����� <filename>/etc/rc.conf</filename> -������ ����������� � ��������� ������� ����������� ����� ��������� �������� -���:</para> - -<para> -<informalexample> -<screen>--- -network_interfaces="ed1 lo0" # List of network interfaces (lo0 is loopback). -ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. -ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0" ----</screen> -</informalexample> -</para> - -<para>��� ������ ��� ����������� ��������� � ���� <filename>/etc/rc.conf</filename> -����� �������, ������� ������� 'Esc' ��� ������ ����. �������� "�������� -��������" � ����������� ������ "��������� ���������?".</para> - -</sect2> -</sect1> - -<sect1> -<title>��������� ������ �������� �������</title> - -<para>�� ��������� FreeBSD-������� �� ���������� IP-������ ����� ���������� -�������� ������������. ������� �������, ������� ������������� (����� ��������� -��� ������� �����) ���������.</para> - -<para>���� �� ������������� ������������ FreeBSD-������� ��� ��������������� -������� ������� ��������, �� �� ��� ���� ����� ������ ��������� ���� � -����� ��������-����������� , �� ������ ���������� ���� ������ � ������� � -<xref linkend="list-lan-hosts"/>.</para> - -<para>���� �� �� ������������� ������������ ��������� PPP �� FreeBSD-������ ��� -������������� ��� ������� ������� ����� ��������� ����, �� ��� ���������� -�������� ����� �������� IP-�������.</para> - -<para>��� ��������� ������ �������� IP-������� ��� ���������� ��������������� -���� <filename>/etc/rc.conf</filename>.</para> - - <para>���� ���� �������� ��������������� ����������, ��������� � - ����������� ����� <filename>/etc/defaults/rc.conf</filename>. �� - ��������� ����� �� ��������� �������� ������</para> - - <programlisting>gateway_enable="NO"</programlisting> - - <para>� ���� �����. ����� �������� ����� �������� IP-������� ��������� - ������ ��� ��������</para> - - <programlisting>gateway_enable="YES"</programlisting> - - <para><filename>/etc/rc.conf</filename>.</para> - -<para><emphasis><emphasis remap="bf">����������: ������ ����� ��� ��������� ��� -'<literal>gateway_enable="YES"</literal>', ���� ����� �������� IP-������� ��� -������� ��� ��������� FreeBSD-�������.</emphasis></emphasis></para> - -</sect1> - -<sect1 id="list-lan-hosts"> -<title>�������� ������ ���� ����� ��������� ���� (<filename>/etc/hosts</filename>)</title> - -<para>�������������� ������ ��� ���������������� ��������� ���� �������� �������� -������ ���� � IP-������� ���� ������, ������� ���������� � ����� ��������� ����. -���� ������ ���������� � ����� '<filename>/etc/hosts</filename>'.</para> - -<para>����������� ������ ����� ����� �������� ������ ���� ������ � ���� ���. -��� ��� � ����� ���������� ��������� ����� ('lo0'). �� ������� ����������� -�������, ��� ��� ���������� ����� ��� "localhost" � ������ ����� IP-����� -127.0.0.1. <xref linkend="verify-ether-if-config"/>.</para> - - -<para>����� ��������������� ���� <filename>/etc/hosts</filename> ������� -��������� �������: -<informalexample> -<screen> # ee /etc/hosts </screen> -</informalexample> -</para> - -<para>�������� ������ � ����� ����� (��������� �������� �� �����������; ��� -�������� ����� �������� ����������!) � �������, ��������� ������ ����� ��������� -����, ��������� IP-������ � �����: -<informalexample> -<screen> -192.168.1.1 curly curly.my.domain # ������� FreeBSD -192.168.1.2 larry larry.my.domain # ������� Windows '95 -192.168.1.3 moe moe.my.domain # ������� Windows for Workgroups -192.168.1.4 shemp shemp.my.domain # ������� Windows NT</screen> -</informalexample> -</para> - -<para>(������ '<emphasis remap="tt">127.0.0.1 localhost</emphasis>' �� -��������� � ����������.)</para> - -<para>��� ������ ��� ����������� ��������� � ���� <filename>/etc/hosts</filename> -����� �������, ������� ������� 'Esc' ��� ������ ����. �������� "�������� -��������" � ����������� ������ "��������� ���������?".</para> - -</sect1> - -<sect1> -<title>������������ FreeBSD-�������</title> - -<para>�����������! FreeBSD-������� ���������������� ��� �������������� � ���� -Unix-�������! ���� �� ������� ��������� � ���� <filename>/etc/rc.conf</filename>, -�� ��� �������� ������������ ������������� ���� FreeBSD-�������. ���� �� -"������ ���� ������": -<itemizedlist> - -<listitem> -<para>������� � ���� ���������, ��������� � ������������ �����������, �</para> -</listitem> - -<listitem> -<para>�� ���������, ��� ������� ��������������� ��� ������ ����� ������ � -������������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>����� ������������ ������� ������������� ��������� ������� ����������. -</para> - - -<sect2> -<title>�������� ���������������� ���������� ��������� �����</title> - -<para>��� �������� ������������ ������������ ���������� ��������� �����, -����������������� � ������� ��� ������������ 'root' � �������: -<informalexample> -<screen># ping localhost</screen> -</informalexample> -</para> - -<para>�� ������ ������� ��������� -<informalexample> -<screen># ping localhost -PING localhost.my.domain. (127.0.0.1): 56 data bytes -64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.219 ms -64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.287 ms -64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.214 m -[...]</screen> -</informalexample> - -���������, ������� ����� ���������� �� ��� ���, ���� �� �� ������� ���������� -������ Ctrl-C.</para> - -</sect2> - -<sect2> -<title>�������� ���������������� Ethernet-����������</title> - -<para>��� �������� ������������ ������������ Ethernet-����������, �������: -</para> - -<para> -<informalexample> -<screen># ping curly</screen> -</informalexample> -</para> - -<para>�� ������ ������� ��������� -<informalexample> -<screen># ping curly -PING curly.my.domain. (192.168.1.1): 56 data bytes -64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.219 ms -64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.200 ms -64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.187 ms -[...]</screen> -</informalexample> - -���������.</para> - -<para>����� �������, �� ��� �� ������ �������� �������� � ���� ���� ��������, -��� ��, ��� ����� (loopback � curly) ������ ��������� ������������� � -������������ �� IP-�������� (127.0.0.1 � 192.168.1.1). ��� ����� �������� ����, -��� ���� <filename>/etc/hosts</filename> �� �������� ������.</para> - -<para>���� �� IP-����� ���� "curly" �� ������������� �������� 192.168.1.1 ��� -IP-����� ���� "localhost" �� ������������� �������� 127.0.0.1, ��������� � -<xref linkend="list-lan-hosts"/> � ��������� ������ � ����� -'<filename>/etc/hosts</filename>'.</para> - -<para>���� ����� � ������, ���������� � ���������� ���������� ������� PING, -������������� ����������������, �� �������� �����-�� ������ ��-�� ����, ��� -���-�� ������� � ������������ ����������, �� ��������� � -<xref linkend="system-config"/> � ��������� ��� � ������ ������.</para> - -<para>����� ����, ��� ��� ����� ������������ ���������, ������ ���������� � -���������� �������.</para> - -</sect2> -</sect1> -</chapter> - -<chapter> -<title>���������������� PPP-����������</title> - -<para>PPP-������� ������������ ��� �������� ������ ����������������: -"�������������" (��� "����������") � "��������������".</para> - -<para>� ������������� ������ ��:</para> - -<para> -<itemizedlist> - -<listitem> -<para>������� �������������� ���������� � ����� ��������-�����������,</para> -</listitem> - -<listitem> -<para>�������������� �����, ������������� �� ��������, ��������� �����, ����� -� �.�., � �.�...,</para> -</listitem> - -<listitem> -<para>������� "����������" ���������� � ����� ��������-�����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>� �������������� ������, ��������� PPP � ���� ������ �� ����������, -������������� � ������� FreeBSD, � ������������� ������������� ���������� � -��������-�����������, � ����� ������������� "���������" ��� ��� �������������, -��� ������ �������� ������� ��������� ����� ��������� ����.</para> - -<para>� ���� ������� �� ����� ������������� ���������������� ����� ������� -������, �� ������ �������� ������ ���������������� ppp-����� ��� -���������������� � �������������� ������.</para> - -<sect1> -<title>�������� ����� ������������ ���������������� ������ PPP</title> - - <note> - <para>� ����������� ��������� ������ FreeBSD � �������� - <filename>/usr/share/examples/ppp</filename> ������������ ������� - ���������������� ������, ��� ��� ���� ������� ������������.</para> - </note> - -<para>������, ����� ��������� ����� ��������� � �����, ������� ����� -�������������� ���������� PPP, ������������� ������� ����� ����������� ������, -������� ���� ������� � �������� ��������� FreeBSD-�������.</para> - -<para>����������������� � ������� ��� ������������ 'root' � ��������� -��������� ��������:</para> - -<para>������� � ������� '<filename>/etc</filename>:</para> - -<para><emphasis remap="tt"># cd /etc</emphasis></para> - -<para>�������� ����� ������������ ������ � �������� 'ppp':</para> - -<para><emphasis remap="tt"># cp -R ppp ppp.ORIGINAL</emphasis></para> - -<para>����� ���� � �������� '<filename>/etc</filename>' �� ������ ������� ��� -����������� '<emphasis remap="tt">ppp</emphasis>' � -'<filename>ppp.ORIGINAL</filename>' .</para> - -</sect1> - -<sect1> -<title>�������� ����������� ���������������� ������ PPP</title> - -<para>�� ���������, � �������� ��������� FreeBSD ��������� ��������� �������� -���������������� ������ � ��������� <filename>/etc/ppp</filename> � -<filename>/usr/share/examples/ppp</filename>. ���������� �������� ����� ��� -������������ � ����� �������; ��� ���� ����� � ���������� ������ � ������ -������������� �� ������������ � ������������ ��������� PPP.</para> - -<para>�� <emphasis>������������</emphasis> ����������� ��� ������� ��� ����� � -������������ �� ��� ��������� ����������� ������������ �� ���� �������������. -</para> - -<para>����� ��������� ���������� � ��������� `ppp` �� ������ ��������, �������� -man-�������� ����������� ����������� �� ppp: -<informalexample> -<screen># man ppp</screen> -</informalexample> -</para> - -<para>����� ��������� ���������� � ����� �������� `chat`, ������������� -���������� PPP, �� ������ ��������, �������� man-�������� ����������� -����������� �� chat: -<informalexample> -<screen># man chat</screen> -</informalexample> -</para> - -<para>� ���� ������� ������� ������������� ���������� ���������������� ������ -��������� PPP.</para> - -<sect2> -<title>���� '<filename>/etc/ppp/ppp.conf</filename>'</title> - -<para>� ����� '<filename>/etc/ppp/ppp.conf</filename>' ���������� ���������� � -���������, ����������� ��� ��������� PPP-����������. � ���� ����� ����� -����������� ����� ����� ������������. ����� ��������� �������� ���������� � -���������� ����� ����� �� ������ �������� � <ulink -url="../handbook/index.html">����������� �� FreeBSD</ulink>.</para> - -<para>���� ������ ��������� ������ ����������� ������������ ��� ��������� -����������� "��������" ����������.</para> - -<para>���� �������� ������ ����� /etc/ppp/ppp.conf, ������� ����� �������������� -��� ����������� ��������-����� ��� ����� ��������� ����: - -<note> - <para>������ �������� ���������� ��� <filename>/etc/ppp/ppp.conf</filename> - �� ������ ����� � �������� ����������� &man.ppp.8;. � ��������� - �������� ��������, ��� ��� ������ ������� �� �������� ������� - ���������������� ���������� (�������� <literal>default:</literal>, - <literal>interactive:</literal>), ��� �������� ������������ � - <quote>!</quote> (�������� <literal>!include</literal>), ��� - ������������ <emphasis>�������</emphasis> ����� ������ � ������ - ������ (indented)!</para> -</note> - -<programlisting>############################################################################### -# ���������������� ���� PPP ('/etc/ppp/ppp.conf') -# -# ����������� ���������; ��� ������ ����������� ��� ������� ��������� PPP -# � ����������� ��� ������������ ���� ������. -############################################################################### -default: - set device /dev/cuaa0 - set speed 57600 - disable pred1 - deny pred1 - disable lqr - deny lqr - set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT" - set redial 3 10 -############################################################################### -# -# ��� �������������� ������ ����������� ��������� ������������: -# -# ������ ������ `ppp -alias interactive' -# -############################################################################### -interactive: - set authname ���_�����_��_���������_������� - set authkey ���_������_��_���������_������� - set phone �������_���_������_������� - set timeout 300 - set openmode active - accept chap -############################################################################### -# -# ��� ������ � �������� �� ������������� (��� ���������������) -# ����������� ��������� ������������: -# -# ������ ������: `ppp -auto -alias demand' -# -############################################################################### -demand: - set authname ���_�����_��_���������_������� - set authkey ���_������_��_���������_������� - set phone �������_���_������_������� - set timeout 300 - set openmode active - accept chap - set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 - add 0 0 127.2.2.2 -############################################################################### -# ����� ����� /etc/ppp/ppp.conf</programlisting> - -���� ����, ������ ��� ��������� � ���������� �������, �������� ��� -��������������� ���������������� ������:</para> - -<sect3> -<title>"<emphasis remap="tt">�����������</emphasis>" ������</title> - -<para>'<emphasis remap="tt">�����������</emphasis>'������ �������� ��������� � -���������, ������������ �� ���� ��������� ������� ����� �����. ��� ������ -������ ����������� � ������ ������.</para> - -<para>� ���� ������ ����� ��������� "����������� ���������� ���������", ������� -����������� ��� ���� ������ �������; ��������, ��������� ������ � �������� -�������, ������� ������ �� ����������, ���������� �� ���� � �������� ������ -���� ����� ����������� ����������.</para> - -<para>���� ��������� �������� ������ ������ � "�����������" ������ ������� ����� -'<filename>/etc/ppp/ppp.conf</filename>': -<informalexample> -<screen>set device /dev/cuaa0</screen> -</informalexample> - -��� ������ �������� ��������� PPP, ��� �� ���������� ������������ ������ -���������������� ����. � ������� FreeBSD ���������� '<filename>/dev/cuaa0</filename>' -- ��� ��� �� ����� ����, ������� �������� ��� ������ "<emphasis remap="tt">COM1:</emphasis>" -� �������� DOS, Windows, Windows 95 � �.�...</para> - -<para>���� ��� ����� ��������� � ����� <emphasis remap="tt">COM2:</emphasis>, �� -���������� ������� �������� '<filename>/dev/cuaa1</filename>, -���� <emphasis remap="tt">COM3:</emphasis> - '<filename>/dev/cuaa2</filename>'. -</para> - -<para> -<informalexample> -<screen>set speed 57600 </screen> -</informalexample> -</para> - -<para>��� ������ ������������� �������� �������� � ������ ��� ���������� ����� -���������������� ������ � �������. � ���� �����, ������������ � ������ -������������, ����� ������������ �������� 28.8�, ������������ ��� �������� � -�������� 57600 �� �������� ����������������� ���������� �������� �� ����� -������� ��������, ������� ����� ��������������� ������� ���������� ����������� -������, � ���������� ������������� ������ ������, ����������� � ��������� -������ �������.</para> - -<para>���� � ��� ��������� �������� ��� ��������� ��������� ����������, -���������� �������� ��� �������� �� �������� 38400 ���, ��� ������, �� -19200.</para> - -<para> -<informalexample> -<screen>disable pred1 -deny pred1</screen> -</informalexample> -</para> - -<para>��� ��� ������ ��������� ����� ������ "CCP/Predictor type 1", ���������� -� ��������� PPP. ������� ������ `ppp` ������������ ������ ������ � ������������ -� ������������ ���������� ���� ��������. � ���������, ������ ��������-���������� -���������� ������������, ������� �� ������������ ��� �����������. ����������� -������� ��������� ������ "�� ����", ������ �� �� ��������� ������� � -������������������ �������, �������� ���� ����� �� ����� ���� � �������� -���������� ���� ���������� ��� � ��� ���������.</para> - -<para> -<informalexample> -<screen>disable lqr -deny lqr</screen> -</informalexample> -</para> - -<para>��� ��� ������ ������������ ������� "������ � �������� �����", ������� -�������� ������ ������ ������������ ��������� Point-to-Point (PPP). -(�� ����� ��������� ����������� ���������� � RFC-1989.)</para> - -<para>������ ������ "disable lqr" �������� ��������� PPP �� �������� �������� -� ��������� �������� ����� ���������� �� ��������� ����.</para> - -<para>������ ������ "deny lqr" �������� ��������� PPP ��������� ����� ������� -���������� ���� �������� � �������� �����.</para> - -<para>��������� ����������� ������ ����� ���������� �������������� ��������� -������ � ��������������, � ����� ��������� � �������� ����� � ��������� ������ -�������������� ����������� �� ���������, �� �������� ��� ��� ������ � -����������� ������������ ����� ����� �� ����� � ����� ������ ������������ -�������.</para> - -<para> -<informalexample> -<screen>set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 -OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"</screen> -</informalexample> -</para> - -<para><emphasis>����������: (���� �������� ���������� ������ ����� �������; -��� �������� �����, ������� �� ��������� � ���� ��������� ������ -��������������.)</emphasis></para> - -<para>��� ������ �������� ��������� PPP ��� �������� � ������� � ���������� -��������� ���������� ��������� ��� ��� ����������: -<itemizedlist> - -<listitem> -<para>������� ������� ��������, ���� ����� ������ ��� "BUSY" ("������"),</para> -</listitem> - -<listitem> -<para>������� ������� ��������, ���� ����� ������ ��� "NO CARRIER" ("��� �������"),</para> -</listitem> - -<listitem> -<para>��������� PPP ������� ���������� ������� ������������ ������� � ������� -5-���������� ���������: -<itemizedlist> - -<listitem> -<para>������������� ��������� PPP �� ������� �� ������ ������� ������� -(������������ ���� ��������� �������� \"\" � ��������� dial)</para> -</listitem> - -<listitem> -<para>��������� ����� �������� ������ ������ ������������� "ATE1Q0M0" � ����� -������ "OK". ���� ����� �� ����� �������, �� ��������� ����� ��������� ������� -�� ����� ������� "AT" � ����� ������� ������ "OK", </para> -</listitem> - -<listitem> -<para>����� �������� � ����� ������ ������� ��������� ��������� ����� ����� -1 ������� (���������� ��������� "\\d" � ��������� dial). ����� ��������� "ATDT" -���� ����������� �������� ������� ��� ������� � �������������� �������� ������ -������; ���� ���� ���������� ����� �� ������������ ������� ������, �������� -"ATDT" �� "ATDP". ������� "\\T" ���������� ����� ������������ ��� ��������� -������ �������� (������� ����� ������������� ����������� �� ��������� -"set dial").</para> -</listitem> - -</itemizedlist> -</para> -</listitem> - -<listitem> -<para>� �������, ����� ��� ��� ���������� ������������ ����-��� � 40 ������, -��������� PPP ������� "�������" ��� "CONNECT"("����������"), ������������ -�������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>������ � ����� ����� ����� "�������" ����� ������������������ ��� ������ -������� � ��������� PPP ������� � ����������.</para> - -<para>(����� ��������� ���������� �� ����� ����-��������, ������������� -����������� PPP ����� ��������, ����������� � man-�������� ����������� -����������� �� "chat".)</para> - -<para> -<informalexample> -<screen>set redial 3 10</screen> -</informalexample> - -��� ������ ���������� ���������� ������� ������� (�������� 3), ������������ -���������� PPP � ������, ���� ���������� �� ����� ���� ����������� �����. -�������� ����� ��������� ����� 10 ��������.</para> - -</sect3> - -<sect3> -<title>"<emphasis remap="tt">�������������</emphasis>" ������</title> - -<para>'<emphasis remap="tt">�������������:</emphasis>' ������ �������� ��������� � -���������, ������������ ��� ��������� "�������������" PPP-������ � ������������� -���������� ���������. � ��������� ���� ������ ����� ������������� ��������� -������, ����������� � "�����������" ������.</para> - -<para>� �������, ������������ � ���� ������ ������� ����������� ���������������, -��� �� ������ ����������� � ��������� ��������, ������� "��������" ��� -���������������� ������������ ��� ������������� ����� ��������. �� ����, � ���� -������� ������������ �������� CHAP ��� ��������� ����������.</para> - -<para>���������, ��� ���� ��������� ������� Windows '95 ����� ���������� -���������� ������� �������� ������ "������������", �� ����� ������ ������������ -������ �������� �� "���".</para> - -<para>� ������ �������, ����� �� ������������ � ����� ��������-�����������, -��������� �������� ������� Microsoft Windows '95, ��� ���������� ������������ -�������������� �������� �������� ������� �� ������ Microsoft Plus! ��� �� -������ �������� ������ "������� ���� ��������� ����� ����������" � ��������� -���������� ��� Windows '95, � ����� ��� ���������� ��������� � ������� -���������������� ������ PPP � ���������� ���������� �� ppp, ��� ����, ����� -�������� ������� "�������� / �����" ��� ��������� ���������� � ����� -��������-�����������. ������� "set login" ������������ ��� ��� ��� ���� -����.</para> - -<para>� ��� �����, ������� ������ ��������-����������, ������� ����� ��� -���������� PAP- ��� CHAP-�������������!</para> - -<para>������� ������������, ���������� ����� ���� ������� ������������ ��� -���������� �: -<itemizedlist> - -<listitem> -<para>Various Shiva LanRovers</para> -</listitem> - -<listitem> -<para>IBM Network (<ulink url="http://www.ibm.net">http://www.ibm.net</ulink>)</para> -</listitem> - -<listitem> -<para>AT&T WorldNet (<ulink url="http://att.com/worldnet">http://att.com/worldnet</ulink>)</para> -</listitem> - -<listitem> -<para>Erol's (<ulink url="http://www.erols.com">http://www.erols.com</ulink>)</para> -</listitem> - -</itemizedlist> -</para> - -<para>���� ��������� �������� ������ ������ � "�������������" ������ ������� -����� '<filename>/etc/ppp/ppp.conf</filename>':</para> - -<para> -<informalexample> -<screen>set authname ���_�����_��_���������_�������</screen> -</informalexample> - -��� ������ ���������� ���, ������� ����� ������������ ��� ����������� �� -��������� �������.</para> - -<para> -<informalexample> -<screen>set authkey ���_������_��_���������_�������</screen> -</informalexample> - -��� ������ ���������� ������ ��� ����������� �� ��������� �������.</para> - -<para> -<informalexample> -<screen>set phone �������_���_������_�������</screen> -</informalexample> - -��� ������ ���������� ����� ��������, �� �������� ����� ������������� ����� -��������� �������. ���� � ��� ����������� ���� ����-��� ����� ������� �������� -���������� ������� ����� '<emphasis remap="tt">9</emphasis>'.</para> - -<para> -<informalexample> -<screen>set timeout 300</screen> -</informalexample> - -��� ������ �������� ��������� PPP, ����� ��� ������������� "������" ������, -���� � ������� 300 ������ (5 �����) �� ������ �� ������������ �������� ������. -�� ������ ������� ����������� ��������, ������� ������������� ����� �����������. -</para> - -<para> -<informalexample> -<screen>set openmode active</screen> -</informalexample> - -��� ������ �������� ��������� PPP � ���, ��� ��� ������ ������ ���������� -����������, ��� ������ ���������� �������� ���������� ��������� ����������. -��������� ��������� ���� ������ ��� �������������, ��������� ���. ��������� -����� ��������� ������������� ���� ������� ���������� ����� �� ���� ���������� -� �������� ��������� ����������.</para> - -<screen>accept chap</screen> - -<para>��� ������ �������� ��������� PPP ������������ "Challenge-Handshake -Authentication Protocol" ("�������� �������������� ������-�����������") ��� -����� ��������������. �������� �������������� ������������ � ������, -������������ ����� ��������� � ��������� ��������, ������� �� ����� 'authname' -� 'authkey', ��������� ����.</para> - -</sect3> - -<sect3> -<title>������ "<emphasis remap="tt">������</emphasis>"</title> - -<para>"<emphasis remap="tt">Demand</emphasis>"-������ �������� ��������� � -���������, ������������ ��� ��������� PPP-���������� "� ������� �� ����������" -� ������������ ��������� ��������. ��������� ���� ������ ����� ����� �������� -������ �� "�����������" ������, ������� ����� �������� ���� �������������. -</para> - -<para>�� ����������� ���� ��������� ����� ��� ������ ��������� ��������� -���������������� ������, ������� ���������� "�������������" ������������.</para> - -<para>��� ���� �������� ������, �������, ����������� � ���� ������� ������� -����������� �������������, ��� �� ������������ � ��������� ��������, ������� -�������� ��� ������������ �������� CHAP ��� ��������� ����������.</para> - -<para>���� ��������� �������� ������ ������ ������ "demand" � ������� ����� -'<filename>/etc/ppp/ppp.conf</filename>':</para> - -<para> -<informalexample> -<screen>set authname ���_�����_��_���������_�������</screen> -</informalexample> - -��� ������ ���������� ���, ������� ����� ������������ ��� ����������� �� -��������� �������.</para> - -<para> -<informalexample> -<screen>set authkey ���_������_��_���������_�������</screen> -</informalexample> - -��� ������ ���������� ������, ������� ����� ����������� ��� ����������� �� -��������� �������.</para> - -<para> -<informalexample> -<screen>set phone �������_���_������_���������_�������</screen> -</informalexample> - -��� ������ ���������� ����� ��������, �� �������� ����� ������������� ����� -��������� �������.</para> - -<para> -<informalexample> -<screen>set timeout 300</screen> -</informalexample> -</para> - -<para>��� ������ �������� ��������� PPP, ����� ��� ������������� "������" -������, ���� � ������� 300 ������ (5 �����) �� ������ �� ������������ �������� -������. �� ������ ������� ����������� ��������, ������� ������������� ����� -�����������.</para> - -<para> -<informalexample> -<screen>set openmode active</screen> -</informalexample> -</para> - -<para>��� ������ �������� ��������� PPP � ���, ��� ��� ������ ������ ���������� ����������, -��� ������ ���������� �������� ���������� ��������� ����������. ��������� -��������� ���� ������ ��� �������������, ��������� ���. ��������� ����� -��������� ������������� ���� ������� ���������� ����� �� ���� ���������� � -�������� ��������� ����������.</para> - -<para> -<informalexample> -<screen>accept chap</screen> -</informalexample> -</para> - -<para>��� ������ �������� ��������� PPP ������������ "Challenge-Handshake -Authentication Protocol" ("�������� �������������� ������-�����������") ��� -����� ��������������. �������� �������������� ������������ � ������, -������������ ����� ��������� � ��������� ��������, ������� �� ����� 'authname' -� 'authkey', ��������� ����.</para> - -<para> -<informalexample> -<screen>set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0</screen> -</informalexample> -</para> - -<para>��� ������� ������������� ���� "���������" IP-������� ��� ��������� � -��������� ������ PPP-����������. ��� ������������� ��������� PPP ������� -IP-����� 127.1.1.1 ��� ��������� ������� '<emphasis remap="tt">tun0</emphasis>' -(�����������) ���������� � 127.2.2.2 ��� ��������� �������. ���������� -'<filename>/0</filename>' � ������� ������ �������� ��������� PPP, ��� � ���� -������� ��� �������� ����� � ��� ����� (� ���������� ������!) ���� -�������� ����� ��������� � ��������� ���������, ����� ���������� ������������. -������ 255.255.255.0 �������� ��������� PPP ����� ����� ������� ��������� ��� -���� ������-�����������.</para> - -<para>���������, �� �������, ��� ��� ��������-��������� ����������� ��� -IP-������ ��� ����� ������ ����������! ���� ��� ��������-��������� �������� ��� -������������ IP-�����, �� �� ������� ��� ������������ ����� ������� ������ ��� -����� <emphasis>������</emphasis> ������ <emphasis remap="tt">127.1.1.1 -</emphasis>.</para> - -<para>� �����, ���� ��� ��������-��������� ������� ��� ������������ IP-�����, -������� �� ���������� �� ����� �������, �� ������� ������ ���� ����� ����� -<emphasis>������</emphasis> ������ <emphasis remap="tt">127.2.2.2</emphasis>. -</para> - -<para>� ����� �������, �������� ������� ����� ����� �������� ������� -'<filename>/0</filename>' � ����� ������� ������. ��� ���� ��������� PPP -����������� �������� �����(�) ����������, ���� ��� ����� -<emphasis>����������</emphasis>.</para> - -<para> -<informalexample> -<screen>add 0 0 127.2.2.2</screen> -</informalexample> -</para> - -<para>��� ��������� ������ �������� ��������� PPP, ��� ��� ������ �������� -������� �� ��������� ��� IP-�������, ������� ��������� �� (���������) IP-����� -������� ��������-����������.</para> - -<para><emphasis><emphasis remap="bf">����������: ���� �� ����������� ������������ -����� ��������-����������� ����� ������ <emphasis remap="tt">127.2.2.2</emphasis> -� ���������� ������, ����������� ���� �� ����� � �����, ������ -<emphasis remap="tt">127.2.2.2</emphasis></emphasis></emphasis>.</para> - -<para>������� ���� "���������" ������� ��� IP-�������, ��������� PPP �������� -����������� � ������ �������: -<itemizedlist> - -<listitem> -<para>��������� ������, ������� FreeBSD-������� ��� �� ����� ���� ����������, -</para> -</listitem> - -<listitem> -<para>������������� ���������� � ��������-����������� -"<emphasis>�� ����</emphasis>",</para> -</listitem> - -<listitem> -<para>������������������� IP-������ ��������� � ��������� ������ ����������, -</para> -</listitem> - -<listitem> -<para>���������� ������ ����� ����� ������� �������� � ��������-����������� -</para> -</listitem> - -</itemizedlist> - -�������������!</para> - -<para>��� ������ �������� ������� (� ��������), ��������� � �������� ����-���� -� "�����������" ������, ������� � � ������� ����� ���������� ������� ������ -TCP/IP ����� ����� ����, ��������� PPP ����� ������������� ��������� ���������� -(�������� ������ "������" ������) � ������� ����� ����������� ������.</para> - -</sect3> -</sect2> - -<sect2> -<title>���� '<filename>/etc/ppp/ppp.linkup</filename>'</title> - -<para>������ �����, ����������� ��� ������ ������������ PPP ��������� � -'<filename>/etc/ppp/ppp.linkup</filename>'. ���� ���� �������� ���������� -��� ���������������� ��������� PPP ����� ���� ��� ������������� ���������� ����� -�����������.</para> - -<para>� ������ ������������� ������������ "������� ��� �������������" ��������� -PPP ����� ��������� ������� ������� �� ���������, ������� ��� ���������� ��� -��������� ������� ���������� � �������� �� ��������� ����� (127.2.2.2 � ����� -������� �� ����������� �������) � ���������� ����� ������� �� ���������, -������� ��������� �� �������� IP-����� ��������� ������ (������� ����� ������� -� �������� ��������� �������������� ����������).</para> - -<para>���������������� ���� '<filename>/etc/ppp/ppp.linkup</filename>': -<informalexample> -<screen>#########################################################################= - -# ���� ��������� ���������� PPP ('/etc/ppp/ppp.linkup') -# -# ���� ���� �������������� ����� ����, ��� PPP ��������� ������� ����������. -# -# ��������� ����� ����� ������������ � ��������� �������. -# -# 1) �������, ������������ ����� ������������ ��� IP-������ � ����������� -# ��������� � ���� �������. -# -# 2) ���� IP-����� �� ������, �� ������������ ����� �����, ������������� -# �� ����� ������� PPP � ����������� ��������� � ���� �������. -# -# 3) ���� �� ������� ������ �� ���� �������������� ����, �� ����������� -# ������� 'MYADDR:'. -# -##############################################################################= -# -# ��� ������ ������������ � ������������ "demand" � ����� /etc/ppp/ppp.conf: -demand: - delete ALL - add 0 0 HISADDR -# -# ��� ������ ������������ � ����� /etc/ppp/ppp.conf ���������� ���: -# -MYADDR: - add 0 0 HISADDR -############################################################################## -# ����� ����� /etc/ppp/ppp.linkup</screen> -</informalexample> - -��������, ��� ������, ������� �������� "demand:" � ���� ����� ��������� -����� ������������, ������������� � ����� '<filename>/etc/ppp/ppp.conf</filename>'. -��� ������ �������� ��������� PPP � ���, ��� ��� ������ ���������� ����� -�����������, � �������������� ���� ������������, ��� ������: -<orderedlist> - -<listitem> -<para>������� ����� ���������� �� IP-�������������, ������� ������� ��������� -PPP</para> -</listitem> - -<listitem> -<para>�������� ������� �� ���������, ����������� �� �������� IP-����� ��������� -�������.</para> -</listitem> - -</orderedlist> -</para> - -<para>��������� �������� �������� ��, ��� �� ������������ � ����� -'<filename>/etc/ppp/ppp.conf</filename>', ������� �������� ��������� -'<emphasis remap="tt">set ifaddr</emphasis>' � -'<emphasis remap="tt">add 0 0</emphasis>' (�.e. ���������, ������������ ��� -������������ "������ ��� �������������") ��������� ������� "delete ALL" � -"add 0 0 HISADDR" � ����� <filename>/etc/ppp/ppp.linkup</filename>.</para> - -<para><emphasis><emphasis remap="bf">��� ��������, ������� ��������� -�������������� ������������� ����������.</emphasis></emphasis></para> - -<para>��� ������������ ���� �� ��������� � ����� -<filename>/etc/ppp/ppp.linkup</filename> ����� ������������ ��� �������, -��������� � ������ "MYADDR:" ����� �����. ��� ������ ����� ��������� -������������ ��� "������� ��� �������������" (����� ��� � ����� -"�������������:" �������). ��� ������ ������ ��������� ������� �� ��������� -�� �������� ����� ��������-���������� (�� ��������� �������).</para> - -</sect2> -</sect1> - -<sect1> -<title>IP-����������</title> - -<para>��� ����� ����������������, ������� ��������� ���� ��� ��� ����� -��������� � ����� FreeBSD-�������, ������� ����� �������������� ��� ���������� -� ��������-����������� �� �������������� ������.</para> - -<para>����, ����� ��� �����������, �� ����������� ���� ������������ ���� - -���������� ���� FreeBSD-������� � ���������, ��������� ppp, �� ������ ������� -���� <xref linkend="testing-the-network"/>.</para> - -<para>���� �� ������������� ������������ ��������� PPP � ������ "������� ��� -�������������" ��� �� ����������� ���������������� IP-������ ����� ������� -��������� � ��������� ���� �������������. ��� ����������� �������� ��� ������� -����������: "<emphasis>IP-����������</emphasis>", -"<emphasis>���������� ������� ������� (NAT)</emphasis>", -"<emphasis>�������� �������</emphasis>" ��� -"<emphasis>���������� �������������</emphasis>".</para> - -<para>�������� �� ������������, ���� �����, ������, �� �������� ��������������. -���� ��������� PPP �������� ���������, �� ��� �� ����� ���������� ������ ����� -������������ ��������� ���� � ������������� �����������. ����������, ������ -FreeBSD-������� ����� ����� � ��������-�����������; ������ �� ������� ������� -�� ����� "��������� ������������" ��� �� ����� ����������.</para> - -<para>��������, ���� ��������� ����������� ����� �� ��������� ���� ������: -</para> - -<para><emphasis remap="tt"># ppp interactive (������������� �����)</emphasis> -</para> - -<para> ���</para> - -<para><emphasis remap="tt"># ppp -auto demand (����� ������� ��� �������������), -</emphasis></para> - -<para>�� ������� ����� ��������������� ��� ������� ������� Internet -<emphasis>������</emphasis> �� FreeBSD-�������.</para> - -<para>��� ������� ��������� PPP ��� ����� ����� ��������� ��������� ���� � -��������, ������ ���� ������������ ���� �� ���� ����������� ������:</para> - -<para><emphasis remap="tt"># ppp -alias interactive (������������� �����) -</emphasis></para> - -<para> ���</para> - -<para><emphasis remap="tt"># ppp -auto -alias demand (����� ������� ��� -�������������)</emphasis></para> - -<para>��� �� �� ������ ������������ ������� -<emphasis remap="tt">``alias enable yes''</emphasis> � ���������������� -����� ��������� PPP. (�� ����� ��������� ����������� ���������� � man-�������� -����������� �����������).</para> - -<para>������ ��� � ����, ���� �� ����������� ������� � -<xref linkend="config-window-system"/>.</para> - -</sect1> -</chapter> - -<chapter id="config-window-system"> -<title>���������������� Windows-������</title> - -<para>��� ���� ������� � ������� 1, ���� ��������� ���� ������� �� ����� -FreeBSD-������� ("Curly"), ������� ������������� ��� ���� (��� �������������) -����� ��������� �����, ���������� ��� ��������� ���� ������� Windows-�������. -��� ����, ����� ���� ��������� ���� ����� ������������ "Curly" � �������� -��������������, ��� ������ ���� ��������� ����������������. �������� ��������, -��� ���� ������ �� ��������� ��� ��������������� ������� ������� Windows ��� -�������������� �������� ��������������. ���� ��� ���������� ����� ��������� -���������� ���� ���������, � ���������� ��� ���������� � -<ulink url="http://www.aladdin.co.uk/techweb">http://www.aladdin.co.uk/techweb</ulink>. -</para> - -<sect1> -<title>���������������� Windows '95</title> - -<para>������� ���������������� Windows '95 ��� ���������������� � �������� -��������������� � ��������� ���� ������� ������������ �����. ������������ ���� -Windows '95 ������ ���� ������� �������� ��� ������������� ������� FreeBSD � -�������� ����� �� ��������� � ������ ��������-����������. ��� ����� ��������� -��������� ��������:</para> - -<para><emphasis remap="bf">�������� ���� "hosts" ��� Windows '95:</emphasis> -</para> - -<para>��� ����, ����� ���� ����������� ����������� � ������� ��������� �� -��������� TCP/IP ������ ����� ��������� ����, ���������� ������� ���������� -����� ����� "hosts", ������� ��� ���������� �� FreeBSD-������� � -<xref linkend="list-lan-hosts"/>. -<itemizedlist> - -<listitem> -<para>������� ������ "�����", �������� ����� "���������...", ����� ������� -������ "notepad \WINDOWS\HOSTS" (��� �������) � ������� ������ "OK"</para> -</listitem> - -<listitem> -<para>� ��������� ������� ������ � ����� ������ �� ����� "hosts", ���������� � -<xref linkend="list-lan-hosts"/>.</para> -</listitem> - -<listitem> -<para>����� ��������� ��������������, �������� ��������, �������������� -�������� ����!</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� ������� �������� TCP/IP -Windows '95</emphasis>: -<itemizedlist> - -<listitem> -<para>������� ������ "�����" �� ������ �����, �������� ����� "���������" � -"������ ����������".</para> -</listitem> - -<listitem> -<para>������ ������� �� ������ "����", ����� ������� ��������������� ����. -</para> - -<para> -�������� ���� � ����������� ������� ����������.</para> -</listitem> - -<listitem> -<para>�� �������� "������������", �������� � ������ ������������� ����������� -������ "TCP/IP-><emphasis>���_������_��������_����������</emphasis>", ��� -"<emphasis>���_������_��������_����������</emphasis>" - ��� ��� ��� -Ethernet-�������� ����� �������).</para> - -<para>���� ��������� TCP/IP ����������� � ������ �������������, ������� ������ -"��������" � ���������� ��� ����� ��� ��� ���������� ���������.</para> - -<para>(���������: "�������� | �������� | Microsoft | TCP/IP | OK")</para> -</listitem> - -<listitem> -<para>������� ������ "��������", ����� ������� ���� �������� ���������� -���������� TCP/IP.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">������������ IP-������:</emphasis> -<itemizedlist> - -<listitem> -<para>�������� �������� "IP-�����"</para> -</listitem> - -<listitem> -<para>�������� �����-������ "������� IP-����� ����� �������". -</para> - -<para>(� ����� ��������� ���� ������� Windows '95 ����� ��� "Larry".)</para> -</listitem> - -<listitem> -<para>� ���� "IP-�����" ������� �������� "192.168.1.2".</para> -</listitem> - -<listitem> -<para>� ���� "����� �������" ������� �������� 255.255.255.0 .</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� �����:</emphasis> -<itemizedlist> - -<listitem> -<para>�������� �������� "����" -</para> - -<para>� ����� ��������� ���� FreeBSD-������� ����� ��������������� ��� ���� � -��������, ������� ����� ���������������� ������ ����� ��������� ����� Ethernet -� ������������� PPP-�����������. ������� IP-����� ��� Ethernet-���������� -FreeBSD-�������, 192.168.1.1, � ���� "����� ����" � ������� ������ "��������". -���� � ������ ���������� ������ �����, �� ������ ������� �� �� ������ -����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� DNS:</emphasis></para> - -<para>� ������ ����������� ���������������, ��� ��� ��������-��������� -����������� ��� ������ �������� �������� ���� (��� DNS-��������), ������� �� -������ ������������. ���� �� �� ������� ��������� DNS-������ �� ����� -��������� FreeBSD-�������, ���������� � ������� 6, "���������� ��� -�������������� ���������". ���� ������ ������� ��� ������� ���. -</para> - -<para> -<itemizedlist> - -<listitem> -<para>�������� �������� "������������ DNS"</para> -</listitem> - -<listitem> -<para>���������, ��� �����-������ "�������� DNS" �������. -</para> - -<para>(���� ��� ������ �� �������, �� ����� �������� ������ �� ����, -������� �� ����� � ����� "hosts" � ������� ������� ����� �������� �� ��� ��� -�� �� ���� ������!)</para> -</listitem> - -<listitem> -<para>� ���� "��� ����������" ������� ��� ������� Windows '95, � ����� ������: -"Larry".</para> -</listitem> - -<listitem> -<para>� ���� "�����" ������� ��� ����� ��������� ����, �.�.: "my.domain"</para> -</listitem> - -<listitem> -<para>� ������ "������� ��������� �������� DNS", ������� IP-����� DNS-�������, -�������(�) ��������� ��� ��� ��������-��������� � ������� ������ "��������". -��������� ��� ��������� ������� ���, ������� ���������� ��� ����� ���� ������� -DNS-�������� ������ ����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">������ ��������� TCP/IP � Windows '95:</emphasis></para> - -<para>� ����� ������ ��������� �� ��������� "�������������", "������������ WINS" -� "��������" �� ������������.</para> - -<para>���� �� ��������� ������������ ������ WINS, ���������� � -<ulink url="http://www.localnet.org">http://www.localnet.org</ulink> ��� -��������� ����� ��������� ���������� � ��������� ���� ������, �������� � -��������� � ���������� ������ ��������� ����� ��������.</para> - -<para><emphasis remap="bf">���������� �������� ����������������:</emphasis> -<itemizedlist> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� ������� TCP/IP.</para> -</listitem> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� � ����������� ����.</para> -</listitem> - -<listitem> -<para>������������� ��� ���������, ���� ��� ����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>��� ���!</para> - -</sect1> - -<sect1> -<title>���������������� Windows NT</title> - -<para>���������������� Windows NT ��� ���������������� � �������� ������� -��������� ���� ������������ ������������. ��������� ���������������� Windows NT -����� ������ ��� � ��� Windows 95. �������������� ������� ����������� ���� � -���������������� ����������.</para> - -<para>��������, ��������� � ���� ������, ��������� � Windows NT 4.0 Workstation, -�� �������� �� �� �����, ��� � � NT 3.5x. �� ������ ���������� � ������� -"���������������� Windows for Workgroups", ���� �� �������������� -Windows NT 3.5<emphasis remap="it">x</emphasis>, ��� ��� ���������������� -��������� NT 3.5 � Windows for Workgroups ���� � ��� ��.</para> - -<para>��������� ��������� ��������: </para> - -<para><emphasis remap="bf">�������� ���� "hosts" ��� Windows NT:</emphasis></para> - -<para>��� ����, ����� ���� ����������� ����������� � ������� ��������� TCP/IP -������ ����� ��������� ����, ���������� ������� ���������� ����� ����� "hosts", -������� ��� ���������� �� FreeBSD-������� � ������� 3.4. -<itemizedlist> - -<listitem> -<para>������� ������ "�����" �� ������ �����, �������� ����� "���������...", -����� ������� ������ "notepad \WINNT\SYSTEM32\DRIVERS\ETC\HOSTS" (��� �������) -� ������� ������ "OK"</para> -</listitem> - -<listitem> -<para>� ��������� ������� ������ � ����� ������ �� �����, ���������� � -������� 3.4.</para> -</listitem> - -<listitem> -<para>����� ��������� ��������������, �������� ��������, �������������� -�������� ����!</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� ������� �������� TCP/IP ��� -Windows NT</emphasis>: -<itemizedlist> - -<listitem> -<para>������� ������ "�����" �� ������ �����, �������� "���������" � -"������ ����������".</para> -</listitem> - -<listitem> -<para>������ ������� �� ������ "����", ����� ������� ��������������� ����. -</para> -</listitem> - -<listitem> -<para>�� �������� "�������������" ��������� ���� "��� ����������" � -"������� ������". � ���� ������� �� ����� ������������ "Shemp" � �������� -����� ���������� � "Stooges" � �������� ����� ������� ������. ������� ������ -"��������" � �������� ��� ���� �� ���������.</para> -</listitem> - -<listitem> -<para>�������� �������� "���������". - -</para> - -<para>�� ������� ������ ������������� ������� ����������. � ���� ������ ����� -�������������� ��������� ����������, �� � ����� ������ ����� �����������, ��� -����� ������������ ������ ���� - "�������� TCP/IP". ���� "�������� TCP/IP" -����������� � ������, �� ������� ������ "��������" ��� ��� ���������.</para> - -<para>(���������: "�������� | TCP/IP �������� | OK") </para> -</listitem> - -<listitem> -<para>�������� "�������� TCP/IP" � ������� ������ "��������". -</para> - -<para>�������� ���� � ����������� ����������, ������������ ���������� -��������� ��������� ��������� TCP/IP.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� IP-������:</emphasis></para> - -<para>���������, ��� Ethernet-��������� ������ � ������ "�������". ���� ��� �� -���, �� "���������" ������, ������� ����������� ������ ���������� �� ��������. -<itemizedlist> - -<listitem> -<para>�������� �����-������ "������� IP-����� ����� �������", ��� ����������� -���� ��������� �����. -</para> - -<para>� ����� ��������� ���� ������� Windows NT ����� ��� "Shemp".</para> -</listitem> - -<listitem> -<para>� ���� "IP-�����" ������� �������� "192.168.1.4".</para> -</listitem> - -<listitem> -<para>� ���� "����� �������" ������� �������� 255.255.255.0.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� �����:</emphasis></para> - -<para>� ����� ��������� ���� FreeBSD-������� ����� ��������������� ��� ���� � -��������, ������� ����� ���������������� ������ ����� ��������� ����� Ethernet -� ������������� PPP-�����������. -<itemizedlist> - -<listitem> -<para>������� IP-����� ��� Ethernet-���������� FreeBSD-�������, 192.168.1.1, -� ���� "����� ����" � ������� ������ "��������". -</para> - -<para>���� � ������ "������������� �����" ��������� ������ �����, �� ������ -������� �� �� ������ ����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� DNS:</emphasis></para> - -<para>� ������ ����������� ���������������, ��� ��� ��������-��������� -����������� ��� ������ �������� �������� ���� (��� DNS-��������), ������� �� -������ ������������.</para> - -<para>���� �� �� ������� ��������� DNS-������ �� ����� ��������� -FreeBSD-�������, ���������� � ������� 6, "���������� ��� �������������� -���������". ���� ������ ������� ��� ������� ���. -<itemizedlist> - -<listitem> -<para>�������� �������� "DNS"</para> -</listitem> - -<listitem> -<para>� ���� "��� ����������" ������� ��� ������� Windows NT, � ����� ������: -"Shemp".</para> -</listitem> - -<listitem> -<para>� ���� "�����" ������� ��� ����� ��������� ����, �.�.: "my.domain"</para> -</listitem> - -<listitem> -<para>� ������ "������� ��������� �������� DNS", ������� IP-����� DNS-�������, -�������(�) ��������� ��� ��� ��������-��������� � ������� ������ "��������". -��������� ��� ��������� ������� ���, ������� ���������� ��� ����� ���� ������� -DNS-�������� ������ ����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">������ ��������� TCP/IP � Windows NT:</emphasis></para> - -<para>� ����� ������� ������������� ���������� "����� WINS" � "�������������" -�� �����������������.</para> - -<para>���� �� ������� ������������ ������ WINS, ���������� �� ������ -<ulink url="http://www.localnet.org">http://www.localnet.org</ulink> ��� ����� -��������� ���������� � ��������� ���� ������, �������� � ��������� ���������� -������ ��������� ����� ��������.</para> - -<para><emphasis remap="bf">���������� �������� ����������������:</emphasis> -<itemizedlist> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� ������� TCP/IP.</para> -</listitem> - -<listitem> -<para>������� ������ "�������", ����� ������� ���� � ����������� ����.</para> -</listitem> - -<listitem> -<para>������������� ��� ���������, ���� ��� ����������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>��� ���!</para> - -</sect1> - -<sect1> -<title>���������������� ������� Windows for Workgroups</title> - -<para>���������������� ������� Windows for Workgroups ��� ���������������� -� �������� �������� ������� ������� ������� ������� � ��������� Microsoft -TCP/IP-32, ������������� �� ������� �������. �������� TCP/IP ��� Windows -for Workgroups �� ������������ �� ������������ �������-������ ��� �� ��������. -�������, ���� ��� ��� ����������, ����������� �� �� ������ �� ������ -<ulink url="ftp://ftp.microsoft.com:/peropsys/windows/public/tcpip">ftp://ftp.microsoft.com:/peropsys/windows/public/tcpip</ulink>.</para> - -<para>��� ������ �������� TCP/IP ����� ���������, ��������� ��������� ��������: -</para> - -<para><emphasis remap="bf">�������� ���� "hosts" ��� Windows for Workgroups: -</emphasis></para> - -<para>��� ����, ����� ���� ����������� ����������� � ������� ��������� TCP/IP -������ ����� ��������� ����, ���������� ������� ���������� ����� ����� "hosts", -������� ��� ���������� �� FreeBSD-������� � ������� 3.4. -<itemizedlist> - -<listitem> -<para>� ��������� �������� �������� ���� "����", ����� �������� ����� -"���������...", ������� ������ "notepad \WINDOWS\HOSTS" (��� �������) � ������� -������ "OK".</para> -</listitem> - -<listitem> -<para>� ��������� ������� ������ � ����� ������ �� �����, ���������� � ������� -3.4.</para> -</listitem> - -<listitem> -<para>����� ��������� ��������������, �������� ��������, �������������� -�������� ����!</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� ���� TCP/IP ��� Windows for -Workgroups</emphasis> -<itemizedlist> - -<listitem> -<para>� ������� ���� ��������� �������� �������� ������ "����" ������� -�������� ������ ���� �� ������. </para> -</listitem> - -<listitem> -<para>������� ��� ���� �� ������ "��������� ����". </para> -</listitem> - -<listitem> -<para>� ������ "������� ����������" ������� ��� ���� �� ������ -"Microsoft TCP/IP-32". </para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� IP-������ ������� Windows for -Workgroups:</emphasis> </para> - -<para>���������, ��� � ������ "�������" ������ ���������� Ethernet-���������, -� ��������� ������ �������� ��� �� ������ ���������. -<itemizedlist> - -<listitem> -<para>���������, ��� ������ "�������� �������������� ��������� DHCP" ��������. -</para> -</listitem> - -<listitem> -<para>� ����� ��������� ���� ��� ������� Windows for Workgroups, ������� �� -������� "Moe" � ���� "IP-�����" ������� �������� "192.168.1.3".</para> -</listitem> - -<listitem> -<para>� ���� "����� �������" ������� �������� 255.255.255.0.</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� �����:</emphasis></para> - -<para>� ����� ��������� ���� FreeBSD-������� ����� ��������������� ��� ���� � -��������, ������� ����� ���������������� ������ ����� ��������� ����� Ethernet -� ������������� PPP-�����������. -<itemizedlist> - -<listitem> -<para>������� IP-����� FreeBSD-�������, 192.168.1.1, � ���� "���� �� ���������". -</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������������� DNS:</emphasis></para> - -<para>� ������ ����������� ���������������, ��� ��� ��������-��������� -����������� ��� ������ �������� �������� ���� (��� DNS-��������), ������� �� -������ ������������. ���� �� �� ������� ��������� DNS-������ �� ����� -��������� FreeBSD-�������, ���������� � ������� 6, "���������� ��� -�������������� ���������". ���� ������ ������� ��� ������� ���. -<itemizedlist> - -<listitem> -<para>������� ������ "DNS".</para> -</listitem> - -<listitem> -<para>� ���� "��� ����������" ������� ��� ������� Windows for Workgropus. � -����� �������: "Moe".</para> -</listitem> - -<listitem> -<para>� ���� "�����" ������� ��� ����� ��������� ����. � ����� �������: -"my.domain"</para> -</listitem> - -<listitem> -<para>� ������ "������� ��������� �������� DNS", ������� IP-����� DNS-�������, -�������(�) ��������� ��� ��� ��������-��������� � ������� ������ "��������". -��������� ��� ��������� ������� ���, ������� ���������� ��� ����� ���� ������� -DNS-�������� ������ ����������.</para> -</listitem> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� � ����������� DNS. -</para> -</listitem> - -</itemizedlist> -</para> - -<para><emphasis remap="bf">���������� �������� ����������������:</emphasis> -<itemizedlist> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� ������� TCP/IP.</para> -</listitem> - -<listitem> -<para>������� ������ "OK", ����� ������� ���� ��������� ����.</para> -</listitem> - -<listitem> -<para>������������� ���������, ���� ��� ����� ����������. </para> -</listitem> - -</itemizedlist> -</para> - -<para>��� ���!</para> - -</sect1> -</chapter> - -<chapter id="testing-the-network"> -<title>������������ ����</title> - -<para> ��� ������ �� ��������� ��� ��������� ���� ����� ����������������, �� -�������� ��������� ��������������� PPP-���� � ��������.</para> - - -<sect1> -<title>������������ ����������� ��������� ����������:</title> - -<para>������, ��� ���������� ��������������, - ����������, �������������� ����� -������� � ��������-�����������.</para> - -</sect1> - -<sect1> -<title>������������ ��������� Ethernet-����</title> - -<para> *** TBD ***</para> - -</sect1> -</chapter> - -<chapter> -<title>���������� ��� �������������� ���������</title> - - -<sect1> -<title>�������� �������� DNS-�������</title> - -<para>� �� ����� ��� ���������� ��������� DNS ����� ���� �������� ������� -���������, ��� �� ���������� ����������� ��������� ����-DNS-������ �� ����� -FreeBSD-�������, ������� � ���� �� ������������� � �������� ����� � ������ -��������-����������.</para> - -<para>����������� �� ������ �������� <filename>/etc/namedb</filename>, ������� -��� ���������� �������� ��������� ������� FreeBSD, ����� ��������� ������� -������ ����, ������� ����� ������������ � ������������ ��� ����� ��������� ����, -������������ � ���� �����������, � "�������� ������" � ����������� DNS ���� -��������.</para> - -<para>��� ���� ����������� ������������ DNS, ���������� ������ ��� �����: -<informalexample> -<screen>/etc/namedb/named.boot -/etc/namedb/named.root -/etc/namedb/mydomain.db</screen> -</informalexample> -</para> - -<para>���� <filename>/etc/namedb/named.root</filename> ������������� -��������������� ��� ����� ������� ��������� ������� FreeBSD. ��������� ��� -����� ������ ���� ������� �������.</para> - - -<sect2> -<title>���� <filename>/etc/namedb/named.boot</filename></title> - -<para>���� <filename>/etc/namedb/named.boot</filename> ��������� ����������� -������� DNS-������� � �������� ����������, ������� ���������� ����� ����� -������� ����, � ������: -<orderedlist> - -<listitem> -<para>��� ������ ���������������� �����,</para> -</listitem> - -<listitem> -<para>�� ����� "�������� �����" �� �������� �</para> -</listitem> - -<listitem> -<para>��� ������ ������ DNS-�������.</para> -</listitem> - -</orderedlist> -</para> - -<para>��������� �������� '<emphasis remap="tt">ee</emphasis>', �������� ���� -<filename>/etc/namedb/named.boot</filename> ���������� ���������: -<informalexample> -<screen>; ����������� ���� ��� ����-������� ���� - -directory /etc/namedb - -; type domain source host/file backup file - -cache . named.root -primary my.domain. mydomain.db</screen> -</informalexample> -</para> - -<para>������, ������������ � ������� ";" �������� ������������. ������, -������� ����� ����� ������������ ���������� � ���� ����� ��������� ����: -<itemizedlist> - -<listitem> -<para><command>directory /etc/namedb</command> -</para> - -<para>�������� ������� ���� � ���, ��� ��������� ���������������� �����, �� -������� ������� ������ � ��������� ������� ����� -'<filename>/etc/namedb/named.boot</filename>'.</para> -</listitem> - -<listitem> -<para><emphasis remap="tt">cache . named.root</emphasis> -</para> - -<para>�������� ������� ���� � ���, ��� ������ �������� DNS-�������� �������� -��������� � ����� '<filename>named.root</filename>'. (���� ���� ������� � -������� ��������� FreeBSD � ��� ���������� �� ����������� � ���� �����������.) -</para> -</listitem> - -<listitem> -<para><emphasis remap="tt">primary my.domain. mydomain.db</emphasis> -</para> - -<para>�������� ������� ���� � ���, ��� �� �������� "������������" ��� ������ -"my.domain" � ��� ������ ���� � IP-������� ������ ������ "my.domain" (��������� ����) -��������� � ����� '<filename>mydomain.db</filename>'.</para> -</listitem> - -</itemizedlist> -</para> - -<para>����� ����, ��� ���� <filename>/etc/namedb/named.boot</filename> ����� -������ � ��������, ���������� � ���������� ������� ��� �������� ����� -<filename>/etc/namedb/mydomain.db</filename>.</para> - -</sect2> - -<sect2> -<title>���� <filename>/etc/namedb/mydomain.db</filename></title> - -<para>���� <filename>/etc/namedb/mydomain.db</filename> �������� ����� � -IP-������ <emphasis>������</emphasis> ������� � ����� ��������� ����.</para> - -<para><emphasis>�� ����� ��������� ����������� �� ����������, ������������ � -���� ����� ����������� � man-�������� ����������� ����������� �� -<emphasis remap="tt">named</emphasis>.</emphasis></para> - -<para>���� <filename>/etc/namedb/mydomain.db</filename> ��� ������ ���������� -DNS-������� �������� ���������: -<informalexample> -<screen>@ IN SOA my.domain. root.my.domain. ( - 961230 ; Serial - 3600 ; Refresh - 300 ; Retry - 3600000 ; Expire - 3600 ) ; Minimum - IN NS curly.my.domain. - -curly.my.domain. IN A 192.168.1.1 # The FreeBSD box -larry.my.domain. IN A 192.168.1.2 # The Win'95 box -moe.my.domain. IN A 192.168.1.3 # The WfW box -shemp.my.domain. IN A 192.168.1.4 # The Windows NT box - -$ORIGIN 1.168.192.IN-ADDR.ARPA - IN NS curly.my.domain. -1 IN PTR curly.my.domain. -2 IN PTR larry.my.domain. -3 IN PTR moe.my.domain. -4 IN PTR shemp.my.domain. - -$ORIGIN 0.0.127.IN-ADDR.ARPA - IN NS curly.my.domain. -1 IN PTR localhost.my.domain.</screen> -</informalexample> -</para> - -<para>�������� �������, ���� ���� ���������, ��� ��������� DNS-������: -<itemizedlist> - -<listitem> -<para>����� ���������� ("SOA") �� ����� � ������ 'my.domain',</para> -</listitem> - -<listitem> -<para>�������� �������� ���� ("NS") ��� ������ 'my.domain',</para> -</listitem> - -<listitem> -<para>�������� ������������� �� �������� �������������� ��� ���� IP-�������, -������� ���������� � '192.168.1.' � '127.0.0.' ("$ORIGIN ...")</para> -</listitem> - -</itemizedlist> -</para> - -<para>�������� ���������� � ����� ������� ������� � ���� ����, �� ������ -��������� ��� ������ ��� ���� �������: ����, � ������� ������, ������� �������� -�� �������������� ����� ������� � ��������-����� ("IN A"), � ������, �������, -��������, ����������� ����� � ��� ����, � ������ <filename>$ORIGIN -1.168.192.IN-ADDR.ARPA</filename>.</para> - -</sect2> - -<sect2> -<title>������ DNS-�������</title> - -<para>�� ��������� DNS-������ ('<filename>/usr/sbin/named</filename>') �� -����������� ��� �������� �������. ������, �� ������ ���� �������� ������� -��������� DNS-������, ������� ���� ������������ ������ � ����� -'<filename>/etc/rc.conf</filename>':</para> - -<para>��������� �������� '<emphasis remap="tt">ee</emphasis>', ��������� ���� -<filename>/etc/rc.conf</filename>. �������� ������ �������� �� 40 ����� ���� � -�� �������� ������, ������� �������� ��� �������� ����: -<informalexample> -<screen>--- -named_enable="NO" # Run named, the DNS server (or NO). -named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled). ----</screen> -</informalexample> - -�������� ��� ������ ��� �������� ����: -<informalexample> -<screen>--- -named_enable="YES" # Run named, the DNS server (or NO). -named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled). ----</screen> -</informalexample> - -��������� ���� � ������������� �������.</para> - -<para>�������������� ������: ��������� ����� ������� ����, ����� ��������� -�������: -<informalexample> -<screen># named -b /etc/namedb/named.boot</screen> -</informalexample> -</para> - -<para>����� �� ��������� �� �� ����������� � ����� �� ������ �������� -<filename>/etc/namedb</filename>, ��� ���������� �������� ���������� ������� -����, ��� ����, ����� ��������� �������� � ����. ��� ����������� � ������� -��������� ��������� �������: -<informalexample> -<screen># kill -HUP `cat /var/run/named.pid`</screen> -</informalexample> -</para> - -</sect2> -</sect1> - -<sect1> -<title>������������� PPP-��������</title> - -<para>��������� PPP ����� ����������� ��������� ������� ���������� ������� ��� -�������� �������, ������� ��� ��������������. �������� �� ��, ��� ��� ������� -��������� ������ �� ��� ��� ������� ����������, ��� ������������ ��������� -�������� ������� �� ���� ����, ��� ������������ ����������.</para> - -<para>(����������� '<emphasis remap="tt">man ipfw</emphasis>' ��� ��������� ����� -��������� ���������� �� ��������� ������� ������������ ��� FreeBSD-������.) -</para> - -<para>����� ������ ������������ �� ��������� �������� � �������� ��� PPP �� -������ ��������, ���������������� man-��������� ����������� ����������� �� PPP. -</para> - -<para>���������� 4 �������� ������ ������, ������� ����� �������������� -���������� PPP: -<itemizedlist> - -<listitem> -<para><emphasis>alive</emphasis>-������� - ������� "������� �������" -(��� "��������� �����������") -</para> - -<para>��� ������� ���������� ��������� ���������, ������� ����� �������������� -���������� <literal>set timeout=</literal> � ���������������� �����.</para> -</listitem> - -<listitem> -<para><emphasis>dial</emphasis>-������� - ������� ������� -</para> - -<para>��� ������� ���������� ��������� ���������, ������� ����� �������������� -� ������ "������ ��� �������������" ��������� PPP.</para> -</listitem> - -<listitem> -<para><emphasis>in</emphasis>-������� - ������� ������� -</para> - -<para>������������ �������� ������: ����� �� ��� ��������� � ������� ��� -��������� ��������.</para> -</listitem> - -<listitem> -<para><emphasis>out</emphasis>-������� - �������� ������� -</para> - -<para>������������ ��������� ������: ����� �� ��� ��������� ��� ��������� -��������.</para> -</listitem> - -</itemizedlist> -</para> - -<para>���� ��������� "�������" �� ������������ �������, ������� ������������ -������� ������ ��� "����������" ������ � ��������, �������� PPP "�����������" -<emphasis>���</emphasis> ������ ����� ������������� ����������. ������� -����������� ��������� ������ ������� �������: -<informalexample> -<screen># -# �������, �������������� ���������� -# �� ������������ ���������� �������� ICMP,DNS � RIP -# - set filter alive 0 deny icmp - set filter alive 1 deny udp src eq 53 - set filter alive 2 deny udp dst eq 53 - set filter alive 3 deny udp src eq 520 - set filter alive 4 deny udp dst eq 520 - set filter alive 5 permit 0/0 0/0 -# -# ������� �������: -# ����������: ICMP ����� ����������� ������ � ���� ������������! -# - set filter dial 0 permit 0/0 0/0 -# -# ��������� ���������� ������ -# - set filter in 0 permit tcp dst eq 113 - set filter out 0 permit tcp src eq 113 -# -# ��������� telnet-����������� � �������� -# - set filter in 1 permit tcp src eq 23 estab - set filter out 1 permit tcp dst eq 23 -# -# ��������� ������ � �������� �� ftp -# - set filter in 2 permit tcp src eq 21 estab - set filter out 2 permit tcp dst eq 21 - set filter in 3 permit tcp src eq 20 dst gt 1023 - set filter out 3 permit tcp dst eq 20 -# -# ��������� ������ � ������ � DNS -# - set filter in 4 permit udp src eq 53 - set filter out 4 permit udp dst eq 53 -# -# ��������� �������� ���� DNS -# - set filter in 5 permit tcp src eq 53 - set filter out 5 permit tcp dst eq 53 -# -# ��������� ������ ������ ��������� ���� -# - set filter in 6 permit 0/0 192.168.1.0/24 - set filter out 6 permit 192.168.1.0/24 0/0 -# -# ��������� ������ ping � traceroute -# - set filter in 7 permit icmp - set filter out 7 permit icmp - set filter in 8 permit udp dst gt 33433 - set filter out 9 permit udp dst gt 33433 -# -# ��������� cvsup -# - set filter in 9 permit tcp src eq 5998 - set filter out 9 permit tcp dst eq 5998 - set filter in 10 permit tcp src eq 5999 - set filter out 10 permit tcp dst eq 5999 -# -# ��������� �������� NTP ��� ������������� ������� -# - set filter in 11 permit tcp src eq 123 dst eq 123 - set filter out 11 permit tcp src eq 123 dst eq 123 - set filter in 12 permit udp src eq 123 dst eq 123 - set filter out 12 permit udp src eq 123 dst eq 123 -# -# SMTP - ����� �������! -# - set filter in 13 permit tcp src eq 25 - set filter out 13 permit tcp dst eq 25 -# -# -# �� ����� ���������� `whois`, ������� �������� ��� -# - set filter in 14 permit tcp src eq 43 - set filter out 14 permit tcp dst eq 43 - set filter in 15 permit udp src eq 43 - set filter out 15 permit udp dst eq 43 -# -# ���� ����� �� ������������� �� ������ ���������� ���� �������, �� �� ����� -# ����������. -#-------</screen> -</informalexample> -</para> - -<para>� ������ ������ ������ ���������� ������� ����� ��������� �� 20 ����� -��������. ������� � ������ ������ ������������ ����� ���������������� ������ -�� 0 �� 20, <emphasis>�� �� ���� �� ������ ��� ����������� ������ �������� �� -�������� �������� �� ��� ���, ���� ����� ���������� ������� � ������� '0'! -</emphasis></para> - -<para>���� �� ������ <emphasis>��</emphasis> ������������ ������� ���������� -������� � ������������ PPP, �� � ���� ������ �� ����� ���������� � ����� -��������-����������� ����� ���� ������� ����� �������� <acronym>����</acronym> -�������� � ��������� ������.</para> - -<para>���� �� ������, ��� ��� ���������� ������������ ������� ���������� -�������, �������� ������, ��������� ���� � ��� ���� -<filename>/etc/ppp/ppp.conf</filename> � ���� �� ������ "�����������:", -"demand:" ��� "�������������:" (��� �� �� ���, �� ������ ����������).</para> - -</sect1> -</chapter> -</book>